blob: 74168260d6bdf67664f1bca1e25f687e87d88994 [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",
56 "com.stevesoltys.backup_privapp_allowlist"
Torsten Grote2a176a92020-09-15 13:53:10 -030057 ],
58 optimize: {
59 enabled: false,
60 },
Michael Bestas239b8312020-07-10 03:33:24 +030061}
62
63prebuilt_etc {
Michael Bestase78094e2022-09-13 19:13:41 +030064 name: "com.stevesoltys.backup_allowlist",
Michael Bestasdfec39e2021-11-14 21:51:38 +020065 system_ext_specific: true,
Michael Bestase78094e2022-09-13 19:13:41 +030066 sub_dir: "sysconfig",
67 src: "allowlist_com.stevesoltys.seedvault.xml",
Michael Bestas239b8312020-07-10 03:33:24 +030068 filename_from_src: true,
69}
70
71prebuilt_etc {
Michael Bestase78094e2022-09-13 19:13:41 +030072 name: "com.stevesoltys.backup_privapp_allowlist",
Michael Bestasdfec39e2021-11-14 21:51:38 +020073 system_ext_specific: true,
Michael Bestase78094e2022-09-13 19:13:41 +030074 sub_dir: "permissions",
75 src: "permissions_com.stevesoltys.seedvault.xml",
Michael Bestas239b8312020-07-10 03:33:24 +030076 filename_from_src: true,
77}