blob: 04c3cc128b16d4aa271e7215cc748b6ff1312643 [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 Bestas525a1982022-09-02 10:23:55 +030029 "androidx.fragment_fragment-ktx",
30 "androidx.activity_activity-ktx",
Michael Bestas239b8312020-07-10 03:33:24 +030031 "androidx.preference_preference",
Torsten Grote7f4b5652021-10-07 13:44:55 -030032 "androidx.documentfile_documentfile",
Torsten Grote6cde6be2020-09-11 14:32:45 -030033 "androidx.lifecycle_lifecycle-viewmodel-ktx",
34 "androidx.lifecycle_lifecycle-livedata-ktx",
Michael Bestas239b8312020-07-10 03:33:24 +030035 "androidx-constraintlayout_constraintlayout",
Torsten Grote6cde6be2020-09-11 14:32:45 -030036 "com.google.android.material_material",
Aayush Guptaf0a3acf2022-08-19 13:45:48 +053037 "kotlinx-coroutines-android",
38 "kotlinx-coroutines-core",
Torsten Grote97398f12021-10-08 11:17:40 -030039 // storage backup lib
40 "seedvault-lib-storage",
Torsten Grote6c633b72021-01-19 09:14:52 -030041 // koin
Torsten Grote7f4b5652021-10-07 13:44:55 -030042 "seedvault-lib-koin-core-jvm", // did not manage to add this as transitive dependency
Michael Bestas239b8312020-07-10 03:33:24 +030043 "seedvault-lib-koin-android",
Torsten Grote6c633b72021-01-19 09:14:52 -030044 // bip39
Torsten Grote05640eb2021-07-02 16:46:55 -030045 "seedvault-lib-kotlin-bip39",
Michael Bestas239b8312020-07-10 03:33:24 +030046 ],
47 manifest: "app/src/main/AndroidManifest.xml",
48
49 platform_apis: true,
Michael Bestasdfec39e2021-11-14 21:51:38 +020050 system_ext_specific: true,
Michael Bestas239b8312020-07-10 03:33:24 +030051 certificate: "platform",
52 privileged: true,
53 required: [
Torsten Grote0272a092020-09-18 12:04:18 -030054 "LocalContactsBackup",
Michael Bestase78094e2022-09-13 19:13:41 +030055 "com.stevesoltys.backup_allowlist",
Michael Bestasa0ec8a52022-09-13 19:18:25 +030056 "com.stevesoltys.backup_default-permissions",
Michael Bestase78094e2022-09-13 19:13:41 +030057 "com.stevesoltys.backup_privapp_allowlist"
Torsten Grote2a176a92020-09-15 13:53:10 -030058 ],
59 optimize: {
60 enabled: false,
61 },
Michael Bestas239b8312020-07-10 03:33:24 +030062}
63
64prebuilt_etc {
Michael Bestase78094e2022-09-13 19:13:41 +030065 name: "com.stevesoltys.backup_allowlist",
Michael Bestasdfec39e2021-11-14 21:51:38 +020066 system_ext_specific: true,
Michael Bestase78094e2022-09-13 19:13:41 +030067 sub_dir: "sysconfig",
68 src: "allowlist_com.stevesoltys.seedvault.xml",
Michael Bestas239b8312020-07-10 03:33:24 +030069 filename_from_src: true,
70}
71
72prebuilt_etc {
Michael Bestasa0ec8a52022-09-13 19:18:25 +030073 name: "com.stevesoltys.backup_default-permissions",
74 system_ext_specific: true,
75 sub_dir: "default-permissions",
76 src: "default-permissions_com.stevesoltys.seedvault.xml",
77 filename_from_src: true,
78}
79
80prebuilt_etc {
Michael Bestase78094e2022-09-13 19:13:41 +030081 name: "com.stevesoltys.backup_privapp_allowlist",
Michael Bestasdfec39e2021-11-14 21:51:38 +020082 system_ext_specific: true,
Michael Bestase78094e2022-09-13 19:13:41 +030083 sub_dir: "permissions",
84 src: "permissions_com.stevesoltys.seedvault.xml",
Michael Bestas239b8312020-07-10 03:33:24 +030085 filename_from_src: true,
86}