Michael Bestas | 239b831 | 2020-07-10 03:33:24 +0300 | [diff] [blame] | 1 | // |
| 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 | |
| 17 | android_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 Grote | 6cde6be | 2020-09-11 14:32:45 -0300 | [diff] [blame] | 27 | "kotlin-stdlib-jdk8", |
| 28 | "androidx.core_core-ktx", |
Michael Bestas | 525a198 | 2022-09-02 10:23:55 +0300 | [diff] [blame] | 29 | "androidx.fragment_fragment-ktx", |
| 30 | "androidx.activity_activity-ktx", |
Michael Bestas | 239b831 | 2020-07-10 03:33:24 +0300 | [diff] [blame] | 31 | "androidx.preference_preference", |
Torsten Grote | 7f4b565 | 2021-10-07 13:44:55 -0300 | [diff] [blame] | 32 | "androidx.documentfile_documentfile", |
Torsten Grote | 6cde6be | 2020-09-11 14:32:45 -0300 | [diff] [blame] | 33 | "androidx.lifecycle_lifecycle-viewmodel-ktx", |
| 34 | "androidx.lifecycle_lifecycle-livedata-ktx", |
Michael Bestas | 239b831 | 2020-07-10 03:33:24 +0300 | [diff] [blame] | 35 | "androidx-constraintlayout_constraintlayout", |
Torsten Grote | 6cde6be | 2020-09-11 14:32:45 -0300 | [diff] [blame] | 36 | "com.google.android.material_material", |
Aayush Gupta | f0a3acf | 2022-08-19 13:45:48 +0530 | [diff] [blame] | 37 | "kotlinx-coroutines-android", |
| 38 | "kotlinx-coroutines-core", |
Torsten Grote | 97398f1 | 2021-10-08 11:17:40 -0300 | [diff] [blame] | 39 | // storage backup lib |
| 40 | "seedvault-lib-storage", |
Torsten Grote | 6c633b7 | 2021-01-19 09:14:52 -0300 | [diff] [blame] | 41 | // koin |
Torsten Grote | 7f4b565 | 2021-10-07 13:44:55 -0300 | [diff] [blame] | 42 | "seedvault-lib-koin-core-jvm", // did not manage to add this as transitive dependency |
Michael Bestas | 239b831 | 2020-07-10 03:33:24 +0300 | [diff] [blame] | 43 | "seedvault-lib-koin-android", |
Torsten Grote | 6c633b7 | 2021-01-19 09:14:52 -0300 | [diff] [blame] | 44 | // bip39 |
Torsten Grote | 05640eb | 2021-07-02 16:46:55 -0300 | [diff] [blame] | 45 | "seedvault-lib-kotlin-bip39", |
Michael Bestas | 239b831 | 2020-07-10 03:33:24 +0300 | [diff] [blame] | 46 | ], |
| 47 | manifest: "app/src/main/AndroidManifest.xml", |
| 48 | |
| 49 | platform_apis: true, |
Michael Bestas | dfec39e | 2021-11-14 21:51:38 +0200 | [diff] [blame] | 50 | system_ext_specific: true, |
Michael Bestas | 239b831 | 2020-07-10 03:33:24 +0300 | [diff] [blame] | 51 | certificate: "platform", |
| 52 | privileged: true, |
| 53 | required: [ |
Torsten Grote | 0272a09 | 2020-09-18 12:04:18 -0300 | [diff] [blame] | 54 | "LocalContactsBackup", |
Michael Bestas | e78094e | 2022-09-13 19:13:41 +0300 | [diff] [blame] | 55 | "com.stevesoltys.backup_allowlist", |
Michael Bestas | a0ec8a5 | 2022-09-13 19:18:25 +0300 | [diff] [blame] | 56 | "com.stevesoltys.backup_default-permissions", |
Michael Bestas | e78094e | 2022-09-13 19:13:41 +0300 | [diff] [blame] | 57 | "com.stevesoltys.backup_privapp_allowlist" |
Torsten Grote | 2a176a9 | 2020-09-15 13:53:10 -0300 | [diff] [blame] | 58 | ], |
| 59 | optimize: { |
| 60 | enabled: false, |
| 61 | }, |
Michael Bestas | 239b831 | 2020-07-10 03:33:24 +0300 | [diff] [blame] | 62 | } |
| 63 | |
| 64 | prebuilt_etc { |
Michael Bestas | e78094e | 2022-09-13 19:13:41 +0300 | [diff] [blame] | 65 | name: "com.stevesoltys.backup_allowlist", |
Michael Bestas | dfec39e | 2021-11-14 21:51:38 +0200 | [diff] [blame] | 66 | system_ext_specific: true, |
Michael Bestas | e78094e | 2022-09-13 19:13:41 +0300 | [diff] [blame] | 67 | sub_dir: "sysconfig", |
| 68 | src: "allowlist_com.stevesoltys.seedvault.xml", |
Michael Bestas | 239b831 | 2020-07-10 03:33:24 +0300 | [diff] [blame] | 69 | filename_from_src: true, |
| 70 | } |
| 71 | |
| 72 | prebuilt_etc { |
Michael Bestas | a0ec8a5 | 2022-09-13 19:18:25 +0300 | [diff] [blame] | 73 | 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 | |
| 80 | prebuilt_etc { |
Michael Bestas | e78094e | 2022-09-13 19:13:41 +0300 | [diff] [blame] | 81 | name: "com.stevesoltys.backup_privapp_allowlist", |
Michael Bestas | dfec39e | 2021-11-14 21:51:38 +0200 | [diff] [blame] | 82 | system_ext_specific: true, |
Michael Bestas | e78094e | 2022-09-13 19:13:41 +0300 | [diff] [blame] | 83 | sub_dir: "permissions", |
| 84 | src: "permissions_com.stevesoltys.seedvault.xml", |
Michael Bestas | 239b831 | 2020-07-10 03:33:24 +0300 | [diff] [blame] | 85 | filename_from_src: true, |
| 86 | } |