blob: cf5d6f519839a11f3117851f2c5e8201d9d78cef [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",
Torsten Grote6c633b72021-01-19 09:14:52 -030035 // storage
36 "seedvault-lib-storage", // did not manage to add this as transitive dependency
37 "seedvault-lib-tink-android",
38 "androidx.room_room-runtime",
39 "libprotobuf-java-lite",
40 // koin
Torsten Grote7f4b5652021-10-07 13:44:55 -030041 "seedvault-lib-koin-core-jvm", // did not manage to add this as transitive dependency
Michael Bestas239b8312020-07-10 03:33:24 +030042 "seedvault-lib-koin-android",
Torsten Grote6c633b72021-01-19 09:14:52 -030043 // bip39
Torsten Grote05640eb2021-07-02 16:46:55 -030044 "seedvault-lib-kotlin-bip39",
Michael Bestas239b8312020-07-10 03:33:24 +030045 ],
46 manifest: "app/src/main/AndroidManifest.xml",
47
48 platform_apis: true,
49 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",
63 sub_dir: "permissions",
64 src: "permissions_com.stevesoltys.seedvault.xml",
65 filename_from_src: true,
66}
67
68prebuilt_etc {
69 name: "com.stevesoltys.backup_whitelist",
70 sub_dir: "sysconfig",
71 src: "whitelist_com.stevesoltys.seedvault.xml",
72 filename_from_src: true,
73}