CaptivePortalLogin needs only the defintion in metrics_constants.proto. This will not need the jarjar_rules. Thus, remove the unnecessary rule to fix the build warning. Test: make CaptivePortalLogin and no warning Bug: 123717273 Change-Id: I5bb3ee61be769989d02a2762a7747d4dafd7bd71
31 lines
715 B
Plaintext
31 lines
715 B
Plaintext
java_library_static {
|
|
name: "framework-protos",
|
|
host_supported: true,
|
|
proto: {
|
|
type: "nano",
|
|
},
|
|
srcs: ["src/**/*.proto"],
|
|
no_framework_libs: true,
|
|
// Pin java_version until jarjar is certified to support later versions. http://b/72703434
|
|
java_version: "1.8",
|
|
target: {
|
|
android: {
|
|
jarjar_rules: "jarjar-rules.txt",
|
|
},
|
|
host: {
|
|
static_libs: ["libprotobuf-java-nano"],
|
|
},
|
|
},
|
|
}
|
|
|
|
java_library_static {
|
|
name: "metrics-constants-protos",
|
|
host_supported: true,
|
|
proto: {
|
|
type: "nano",
|
|
},
|
|
srcs: ["src/metrics_constants.proto"],
|
|
no_framework_libs: true,
|
|
sdk_version: "system_current",
|
|
}
|