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:
Mark Punzalan
2024-05-15 06:12:49 +00:00
committed by Yurii Zubrytskyi
parent b63973dfc2
commit 5529e36e88
2 changed files with 18 additions and 2 deletions

View File

@@ -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 {

View File

@@ -0,0 +1 @@
rule com.google.protobuf.** android.internal.framework.protobuf.@1