diff options
author | Jaewoong Jung <jungjw@google.com> | 2019-04-15 09:48:31 -0700 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2019-12-11 19:03:32 +0200 |
commit | 658828c00f17e8b8852f11a7a76da369b7ce21e6 (patch) | |
tree | 32d2055a6f968cc2fa49440bb55422696a85ba9b /java/dexpreopt.go | |
parent | 7081e8ebbaafcacbce79729e35b54032c276f516 (diff) | |
download | android_build_soong-658828c00f17e8b8852f11a7a76da369b7ce21e6.tar.gz android_build_soong-658828c00f17e8b8852f11a7a76da369b7ce21e6.tar.bz2 android_build_soong-658828c00f17e8b8852f11a7a76da369b7ce21e6.zip |
Add android_app_import.
This is an initial version that handles the most basic cases.
Bug: 128610294
Test: app_test.go + prebuilt webview.apk
Change-Id: Ic525559aad5612987e50aa75b326b77b23acb716
Diffstat (limited to 'java/dexpreopt.go')
-rw-r--r-- | java/dexpreopt.go | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/java/dexpreopt.go b/java/dexpreopt.go index 9141f9ef..088c12df 100644 --- a/java/dexpreopt.go +++ b/java/dexpreopt.go @@ -22,11 +22,12 @@ import ( type dexpreopter struct { dexpreoptProperties DexpreoptProperties - installPath android.OutputPath - uncompressedDex bool - isSDKLibrary bool - isTest bool - isInstallable bool + installPath android.OutputPath + uncompressedDex bool + isSDKLibrary bool + isTest bool + isInstallable bool + isPresignedPrebuilt bool builtInstalled string } @@ -177,6 +178,8 @@ func (d *dexpreopter) dexpreopt(ctx android.ModuleContext, dexJarFile android.Mo NoCreateAppImage: !BoolDefault(d.dexpreoptProperties.Dex_preopt.App_image, true), ForceCreateAppImage: BoolDefault(d.dexpreoptProperties.Dex_preopt.App_image, false), + PresignedPrebuilt: d.isPresignedPrebuilt, + NoStripping: Bool(d.dexpreoptProperties.Dex_preopt.No_stripping), StripInputPath: dexJarFile, StripOutputPath: strippedDexJarFile.OutputPath, |