parameters: (apk, details)
docstring: Adds files to the apk.
  
    Args:
      apk: path to APK to add to.
      details: A list of file detail tuples (src_path, apk_path, compress,
      alignment) representing what and how files are added to the APK.
docstring_summary: Adds files to the apk.
docstring_tokens: Adds files to the apk .
function: def _AddFiles(apk, details):
    """Adds files to the apk.
  
    Args:
      apk: path to APK to add to.
      details: A list of file detail tuples (src_path, apk_path, compress,
      alignment) representing what and how files are added to the APK.
    """
    for apk_path, src_path, compress, alignment in details:
      # This check is only relevant for assets, but it should not matter if it is
      # checked for the whole list of files.
      try:
        apk.getinfo(apk_path)
        # Should never happen since write_build_config.py handles merging.
        raise Exception(
            'Multiple targets specified the asset path: %s' % apk_path)
      except KeyError:
        zipalign.AddToZipHermetic(
            apk,
            apk_path,
            src_path=src_path,
            compress=compress,
            alignment=alignment)
function_tokens: def _AddFiles ( apk , details ) : for apk_path , src_path , compress , alignment in details : # This check is only relevant for assets, but it should not matter if it is # checked for the whole list of files. try : apk . getinfo ( apk_path ) # Should never happen since write_build_config.py handles merging. raise Exception ( 'Multiple targets specified the asset path: %s' % apk_path ) except KeyError : zipalign . AddToZipHermetic ( apk , apk_path , src_path = src_path , compress = compress , alignment = alignment )