diff options
author | 2018-10-29 23:14:58 -0700 | |
---|---|---|
committer | 2018-10-31 14:39:16 +0000 | |
commit | f623721c08bb95e2c333e43a41be3c8e27ff1f8f (patch) | |
tree | 6aa1eb113697df8da686370d1d4e4d8d331dd8f5 /java/app.go | |
parent | 724c854f6a28a73191cd8ce1b1c0e5df4797decb (diff) |
Create bundle modules suitable for bundletool
Create a bundle module in addition to creating an APK, which can
then optionally be merged with bundle modules from builds for
other architectures and then be passed to bundletool to create an
app bundle.
Bug: 117295826
Test: tapas RecoveryLocalizer && m dist
Change-Id: I98a17d7407dc56823ece9ec88c087780185a6555
Diffstat (limited to 'java/app.go')
-rw-r--r-- | java/app.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java/app.go b/java/app.go index 7ca20cee6..392ad3fc8 100644 --- a/java/app.go +++ b/java/app.go @@ -83,6 +83,8 @@ type AndroidApp struct { extraLinkFlags []string installJniLibs []jniLib + + bundleFile android.Path } func (a *AndroidApp) ExportedProguardFlagFiles() android.Paths { @@ -277,6 +279,10 @@ func (a *AndroidApp) generateAndroidBuildActions(ctx android.ModuleContext) { CreateAppPackage(ctx, packageFile, a.exportPackage, jniJarFile, dexJarFile, certificates) a.outputFile = packageFile + bundleFile := android.PathForModuleOut(ctx, "base.zip") + BuildBundleModule(ctx, bundleFile, a.exportPackage, jniJarFile, dexJarFile) + a.bundleFile = bundleFile + if ctx.ModuleName() == "framework-res" { // framework-res.apk is installed as system/framework/framework-res.apk ctx.InstallFile(android.PathForModuleInstall(ctx, "framework"), ctx.ModuleName()+".apk", a.outputFile) |