blob: 951547cd78deee450bebafcd6f86ddd5489896e9 [file] [log] [blame]
Michael Bestas239b8312020-07-10 03:33:24 +03001//
2// Copyright (C) 2018 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17android_app {
18 name: "Seedvault",
19 srcs: [
20 "app/src/main/java/**/*.kt",
21 "app/src/main/java/**/*.java",
22 ],
23 resource_dirs: [
24 "app/src/main/res",
25 ],
26 static_libs: [
Torsten Grote6cde6be2020-09-11 14:32:45 -030027 "kotlin-stdlib-jdk8",
28 "androidx.core_core-ktx",
Michael Bestas239b8312020-07-10 03:33:24 +030029 "androidx.preference_preference",
Torsten Grote7f4b5652021-10-07 13:44:55 -030030 "androidx.documentfile_documentfile",
Torsten Grote6cde6be2020-09-11 14:32:45 -030031 "androidx.lifecycle_lifecycle-viewmodel-ktx",
32 "androidx.lifecycle_lifecycle-livedata-ktx",
Michael Bestas239b8312020-07-10 03:33:24 +030033 "androidx-constraintlayout_constraintlayout",
Torsten Grote6cde6be2020-09-11 14:32:45 -030034 "com.google.android.material_material",
Aayush Guptaf0a3acf2022-08-19 13:45:48 +053035 "kotlinx-coroutines-android",
36 "kotlinx-coroutines-core",
Torsten Grote97398f12021-10-08 11:17:40 -030037 // storage backup lib
38 "seedvault-lib-storage",
Torsten Grote6c633b72021-01-19 09:14:52 -030039 // koin
Torsten Grote7f4b5652021-10-07 13:44:55 -030040 "seedvault-lib-koin-core-jvm", // did not manage to add this as transitive dependency
Michael Bestas239b8312020-07-10 03:33:24 +030041 "seedvault-lib-koin-android",
Torsten Grote6c633b72021-01-19 09:14:52 -030042 // bip39
Torsten Grote05640eb2021-07-02 16:46:55 -030043 "seedvault-lib-kotlin-bip39",
Michael Bestas239b8312020-07-10 03:33:24 +030044 ],
45 manifest: "app/src/main/AndroidManifest.xml",
46
47 platform_apis: true,
Michael Bestasdfec39e2021-11-14 21:51:38 +020048 system_ext_specific: true,
Michael Bestas239b8312020-07-10 03:33:24 +030049 certificate: "platform",
50 privileged: true,
51 required: [
Torsten Grote0272a092020-09-18 12:04:18 -030052 "LocalContactsBackup",
Michael Bestas239b8312020-07-10 03:33:24 +030053 "privapp_whitelist_com.stevesoltys.backup",
54 "com.stevesoltys.backup_whitelist"
Torsten Grote2a176a92020-09-15 13:53:10 -030055 ],
56 optimize: {
57 enabled: false,
58 },
Michael Bestas239b8312020-07-10 03:33:24 +030059}
60
61prebuilt_etc {
62 name: "privapp_whitelist_com.stevesoltys.backup",
Michael Bestasdfec39e2021-11-14 21:51:38 +020063 system_ext_specific: true,
Michael Bestas239b8312020-07-10 03:33:24 +030064 sub_dir: "permissions",
65 src: "permissions_com.stevesoltys.seedvault.xml",
66 filename_from_src: true,
67}
68
69prebuilt_etc {
70 name: "com.stevesoltys.backup_whitelist",
Michael Bestasdfec39e2021-11-14 21:51:38 +020071 system_ext_specific: true,
Michael Bestas239b8312020-07-10 03:33:24 +030072 sub_dir: "sysconfig",
73 src: "whitelist_com.stevesoltys.seedvault.xml",
74 filename_from_src: true,
75}