xref: /aosp_15_r20/external/bazelbuild-rules_android/src/tools/ak/proto/sync.proto (revision 9e965d6fece27a77de5377433c2f7e6999b8cc0b)
1syntax = "proto3";
2
3package tools.android.ak.proto;
4
5// A Sync message can be used to bring one or multiple applications up to date.
6message Sync {
7  // Absolute path to the source root directory.
8  string src_root = 1;
9  // Absolute path to the destination root directory.
10  string dst_root = 2;
11  // List of Applications to sync to destination.
12  repeated Application apps = 3;
13}
14
15// Application describes an entire Android application.
16message Application {
17  // Target from the build system
18  string target = 1;
19  // Android application identifier.
20  string app_id = 2;
21  // Specifies the base APK, from which all split APKs must be based off.
22  // If no split_apks are specified, this is a single APK.
23  File base_apk = 3;
24  // Potentially one or more split APKs for each feature/config split.
25  repeated File split_apks = 4;
26  // Additional files, that are required at runtime.
27  repeated File files = 5;
28}
29
30// File contains relative source and destination path, plus hash of content.
31message File {
32  // Relative path to the file source.
33  string src = 1;
34  // Relative path to the file destination.
35  string dst = 2;
36  // The hash value of the file content.
37  string hash = 3;
38}
39