Upload platform compat config generated from framework target.

Add compat-changeid-annotation-processor and upload the generated compat
config using the platform_compat_config rule.
Make both libcore and framework compat configs required for framework to
make sure they get onto the device. Libcore will be removed once the
config is uploaded to APEX.

Test: flashed device locally, config files found and read by
com.android.server.compat.CompatConfig.
Bug: 138222363

Change-Id: Ie04fde8b4b18e7e34d95257f5ef8ca78d5076b4f
This commit is contained in:
atrost
2019-08-05 12:22:18 +01:00
parent 4a532813df
commit b9c3450355

View File

@@ -752,14 +752,26 @@ java_library {
name: "framework",
defaults: ["framework-defaults"],
javac_shard_size: 150,
required: [
"framework-platform-compat-config",
"libcore-platform-compat-config",
],
}
java_library {
name: "framework-annotation-proc",
defaults: ["framework-defaults"],
installable: false,
// Use UsedByApps annotation processor
plugins: ["unsupportedappusage-annotation-processor"],
plugins: [
"unsupportedappusage-annotation-processor",
"compat-changeid-annotation-processor",
],
}
platform_compat_config {
name: "framework-platform-compat-config",
prefix: "framework",
src: ":framework-annotation-proc",
}
// A library including just UnsupportedAppUsage.java classes.