Add a nano proto version of aconfig protos
Framework already has nano protos, and reusing them won't introduce extra dependencies for the apps This is setting up the resources flagging in the framework Bug: 297373084 Test: Built with related changes Change-Id: I518bd56f56c42e0adef0002e95f8948e0904fb43
This commit is contained in:
committed by
Yurii Zubrytskyi
parent
b63973dfc2
commit
5529e36e88
@@ -17,7 +17,22 @@ java_library {
|
||||
apex_available: [
|
||||
"com.android.configinfrastructure",
|
||||
"//apex_available:platform",
|
||||
]
|
||||
],
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "libaconfig_java_proto_nano",
|
||||
srcs: ["protos/aconfig.proto"],
|
||||
static_libs: ["libprotobuf-java-nano"],
|
||||
proto: {
|
||||
type: "nano",
|
||||
},
|
||||
sdk_version: "current",
|
||||
min_sdk_version: "UpsideDownCake",
|
||||
apex_available: [
|
||||
"//apex_available:platform",
|
||||
],
|
||||
jarjar_rules: "jarjar-nano-rules.txt",
|
||||
}
|
||||
|
||||
java_library_host {
|
||||
@@ -58,7 +73,7 @@ rust_defaults {
|
||||
],
|
||||
proc_macros: [
|
||||
"libpaste",
|
||||
]
|
||||
],
|
||||
}
|
||||
|
||||
rust_library {
|
||||
|
1
tools/aconfig/aconfig_protos/jarjar-nano-rules.txt
Normal file
1
tools/aconfig/aconfig_protos/jarjar-nano-rules.txt
Normal file
@@ -0,0 +1 @@
|
||||
rule com.google.protobuf.** android.internal.framework.protobuf.@1
|
Reference in New Issue
Block a user