aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/protobuf/apk_manifest.proto
diff options
context:
space:
mode:
authorGravatar Alex Humesky <ahumesky@google.com>2016-05-16 17:18:16 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2016-05-17 16:11:58 +0000
commit57b49df12334b6386290ea5399f1349b73357c87 (patch)
treef2bef738031cd0596699020dff9f889aafd68e0a /src/main/protobuf/apk_manifest.proto
parent74f24c1cee9e0522b3a0fdcfe40e47191f3c3973 (diff)
Adds information about resources referenced from AndroidManifest.xml to
the apk manifest. -- MOS_MIGRATED_REVID=122431761
Diffstat (limited to 'src/main/protobuf/apk_manifest.proto')
-rw-r--r--src/main/protobuf/apk_manifest.proto33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/main/protobuf/apk_manifest.proto b/src/main/protobuf/apk_manifest.proto
index 919d82647d..3c47516699 100644
--- a/src/main/protobuf/apk_manifest.proto
+++ b/src/main/protobuf/apk_manifest.proto
@@ -48,15 +48,48 @@ message AndroidSdk {
string build_tools_version = 17; // assume latest if not set
}
+// Information about a resource referenced from AndroidManifest.xml.
+message AndroidManifestResource {
+
+ message ValueHash {
+
+ // The qualifier for the value of the resource, e.g. for localization or
+ // device properties like hdpi, xhdpi, etc.
+ string qualifier = 1;
+
+ // A hash of the value of the resource (e.g. the hash of the string value
+ // of a resource if it's a string), or if the resource points to a file, a
+ // hash of the file (e.g. if the resource is an image, then a hash of the
+ // image file).
+ bytes hash = 2;
+ }
+
+ // The name of the resource, e.g. "app_name" in "@string/app_name".
+ string name = 1;
+
+ // The type of the resource, e.g. "string" in "@string/app_name".
+ string type = 2;
+
+ repeated ValueHash value_hashes = 3;
+}
+
message ApkManifest {
+
// Information about the AndroidSdk
AndroidSdk android_sdk = 1;
+
// All the jars containing the classes that would be dex and go into the APK
repeated Artifact jars = 2;
+
// The .ap_ that contains the resources that go into the APK
Artifact resource_apk = 3;
+
// The native library files that go into the APK
repeated NativeLib native_lib = 4;
+
// The final merged AndroidManifest.xml file (in text, i.e. non-binary, XML)
Artifact android_manifest = 5;
+
+ // Information about resources referenced from AndroidManifest.xml.
+ repeated AndroidManifestResource android_manifest_resources = 6;
}