aboutsummaryrefslogtreecommitdiffstats
path: root/java/android_manifest.go
Commit message (Collapse)AuthorAgeFilesLines
* Add support for use_embedded_dex in SoongColin Cross2019-02-081-1/+5
| | | | | | | | | When use_embedded_dex is set, store the dex uncompressed in the APK and set the android:useEmbeddedDex="true" attribute in the manifest. Test: m checkbuild Change-Id: Iea6e7ed19599830ac72392ef93f9c98957df1cce
* Make manifest and APK agree on uncompressed native libsColin Cross2019-02-081-2/+14
| | | | | | | | | | | Only put uncompressed native libs in an APK if the min_sdk_version supports it (>= 23, Marshmallow), and set android:extractNativeLibs="false" in the AndroidManifest.xml so that the platform won't extract them anyways. Bug: 117618214 Test: m checkbuild Change-Id: I760017e48bf3c6b618aabde0982df45995765d48
* Support setting target_sdk_version separately from sdk_versionDan Willemsen2018-10-311-1/+1
| | | | | | | | | | | | Before this change, if targetSdkVersion wasn't set in the AndroidManifest.xml, we'd set it to the sdk_version from the Android.bp. But there are cases where you want to compile against a later SDK, but target an earlier one (especially if you depend on libraries that need to be compiled against more recent SDKs, like androidx). Test: build APK with different target_sdk_version. Change-Id: Iaed36b522955a374a049ef331158cc8fc5798ad2
* Make manifest_fixer.py keep targetSdkVersion high with min_sdk_versionColin Cross2018-09-101-4/+9
| | | | | | | | | targetSdkVersion should stay as "current" when min_sdk_version is set but sdk_version is not. Bug: 112438448 Test: atest CtsTelecomTestCases Change-Id: I11dc27eccd31200d1ce27c7e332106bb825651b4
* Fix manifest merging flagsJason Monk2018-08-281-1/+1
| | | | | | | | | | library manifests were just being dropped on the ground. Bug: 112467584 Test: build Change-Id: I61c2efca37aa3fdb9c944260f4a276d1d3c26f6c Merged-In: I61c2efca37aa3fdb9c944260f4a276d1d3c26f6c (cherry picked from commit b7c147efec90707532f97b6cc7ff9e82095772fc)
* Set targetSdkVersion in manifest_fixerColin Cross2018-07-261-3/+10
| | | | | | | | | | | | | | | If targetSdkVersion is not set in the manifest, set it to the value it was implicitly using before changing minSdkVersion. Requires passing --library to manifest_fixer.py to distinguish between apps, where the implicit value was set by aapt2 to current, or libraries where the implicit value was 1. Fixes cases where the manifest does not specify targetSdkVersion and was inheriting the minSdkVersion value until manifest merger started merging a lower targetSdkVersion value from a library. Bug: 111347801 Test: manifest_fixer_test.py Change-Id: I8fcf0c5f452707565ba1808f6fe552ffed055c47
* Use manifest merger in SoongColin Cross2018-07-111-0/+71
Move the manifest merger config to Soong, and use it to merge manifests of static dependencies of android_library and android_app modules. Bug: 110848854 Test: m checkbuild Change-Id: Ib89e1f1a52a8b76157e4e0348baf42800412df0d Merged-In: Ib89e1f1a52a8b76157e4e0348baf42800412df0d Merged-In: I5d055ce63b8371db500f8868fb73ab3604b8c24a