Class ApkBuilderStep

  • All Implemented Interfaces:
    Step

    public class ApkBuilderStep
    extends Object
    implements Step
    Merges resources into a final APK. This code is based off of the now deprecated apkbuilder tool: https://android.googlesource.com/platform/sdk/+/fd30096196e3747986bdf8a95cc7713dd6e0b239%5E/sdkmanager/libs/sdklib/src/main/java/com/android/sdklib/build/ApkBuilderMain.java
    • Constructor Detail

      • ApkBuilderStep

        public ApkBuilderStep​(ProjectFilesystem filesystem,
                              Path resourceApk,
                              Path pathToOutputApkFile,
                              Path dexFile,
                              com.google.common.collect.ImmutableSet<Path> assetDirectories,
                              com.google.common.collect.ImmutableSet<Path> nativeLibraryDirectories,
                              com.google.common.collect.ImmutableSet<Path> zipFiles,
                              com.google.common.collect.ImmutableSet<Path> jarFilesThatMayContainResources,
                              Path pathToKeystore,
                              java.util.function.Supplier<KeystoreProperties> keystorePropertiesSupplier,
                              boolean debugMode,
                              com.google.common.collect.ImmutableList<String> javaRuntimeLauncher,
                              AndroidSdkLocation androidSdkLocation)
        Parameters:
        resourceApk - Path to the Apk which only contains resources, no dex files.
        pathToOutputApkFile - Path to output our APK to.
        dexFile - Path to the classes.dex file.
        assetDirectories - List of paths to assets to be included in the apk.
        nativeLibraryDirectories - List of paths to native directories.
        zipFiles - List of paths to zipfiles to be included into the apk.
        debugMode - Whether or not to run ApkBuilder with debug mode turned on.