Merge "Fix android_app_set documentation" am: 99e4fba932
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1324841 Change-Id: I35634c8ed1290b5848fb4a5a8278b65fbcbf0106
This commit is contained in:
19
java/app.go
19
java/app.go
@@ -158,10 +158,13 @@ func (as *AndroidAppSet) GenerateAndroidBuildActions(ctx android.ModuleContext)
|
||||
|
||||
// android_app_set extracts a set of APKs based on the target device
|
||||
// configuration and installs this set as "split APKs".
|
||||
// The set will always contain `base-master.apk` and every APK built
|
||||
// to the target device. All density-specific APK will be included, too,
|
||||
// unless PRODUCT_APPT_PREBUILT_DPI is defined (should contain comma-sepearated
|
||||
// list of density names (LDPI, MDPI, HDPI, etc.)
|
||||
// The extracted set always contains 'master' APK whose name is
|
||||
// _module_name_.apk and every split APK matching target device.
|
||||
// The extraction of the density-specific splits depends on
|
||||
// PRODUCT_AAPT_PREBUILT_DPI variable. If present (its value should
|
||||
// be a list density names: LDPI, MDPI, HDPI, etc.), only listed
|
||||
// splits will be extracted. Otherwise all density-specific splits
|
||||
// will be extracted.
|
||||
func AndroidApkSetFactory() android.Module {
|
||||
module := &AndroidAppSet{}
|
||||
module.AddProperties(&module.properties)
|
||||
@@ -1183,7 +1186,7 @@ type OverrideAndroidApp struct {
|
||||
android.OverrideModuleBase
|
||||
}
|
||||
|
||||
func (i *OverrideAndroidApp) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||
func (i *OverrideAndroidApp) GenerateAndroidBuildActions(_ android.ModuleContext) {
|
||||
// All the overrides happen in the base module.
|
||||
// TODO(jungjw): Check the base module type.
|
||||
}
|
||||
@@ -1204,7 +1207,7 @@ type OverrideAndroidTest struct {
|
||||
android.OverrideModuleBase
|
||||
}
|
||||
|
||||
func (i *OverrideAndroidTest) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||
func (i *OverrideAndroidTest) GenerateAndroidBuildActions(_ android.ModuleContext) {
|
||||
// All the overrides happen in the base module.
|
||||
// TODO(jungjw): Check the base module type.
|
||||
}
|
||||
@@ -1226,7 +1229,7 @@ type OverrideRuntimeResourceOverlay struct {
|
||||
android.OverrideModuleBase
|
||||
}
|
||||
|
||||
func (i *OverrideRuntimeResourceOverlay) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||
func (i *OverrideRuntimeResourceOverlay) GenerateAndroidBuildActions(_ android.ModuleContext) {
|
||||
// All the overrides happen in the base module.
|
||||
// TODO(jungjw): Check the base module type.
|
||||
}
|
||||
@@ -1549,7 +1552,7 @@ func (a *AndroidAppImport) Privileged() bool {
|
||||
return Bool(a.properties.Privileged)
|
||||
}
|
||||
|
||||
func (a *AndroidAppImport) DepIsInSameApex(ctx android.BaseModuleContext, dep android.Module) bool {
|
||||
func (a *AndroidAppImport) DepIsInSameApex(_ android.BaseModuleContext, _ android.Module) bool {
|
||||
// android_app_import might have extra dependencies via uses_libs property.
|
||||
// Don't track the dependency as we don't automatically add those libraries
|
||||
// to the classpath. It should be explicitly added to java_libs property of APEX
|
||||
|
Reference in New Issue
Block a user