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 | 239b831 | 2020-07-10 03:33:24 +0300 | [diff] [blame] | 29 | "androidx.preference_preference", |
Torsten Grote | 6cde6be | 2020-09-11 14:32:45 -0300 | [diff] [blame] | 30 | "androidx.lifecycle_lifecycle-viewmodel-ktx", |
| 31 | "androidx.lifecycle_lifecycle-livedata-ktx", |
Michael Bestas | 239b831 | 2020-07-10 03:33:24 +0300 | [diff] [blame] | 32 | "androidx-constraintlayout_constraintlayout", |
Torsten Grote | 6cde6be | 2020-09-11 14:32:45 -0300 | [diff] [blame] | 33 | "com.google.android.material_material", |
Torsten Grote | 6c633b7 | 2021-01-19 09:14:52 -0300 | [diff] [blame^] | 34 | // storage |
| 35 | "seedvault-lib-storage", // did not manage to add this as transitive dependency |
| 36 | "seedvault-lib-tink-android", |
| 37 | "androidx.room_room-runtime", |
| 38 | "libprotobuf-java-lite", |
| 39 | // koin |
Torsten Grote | ceac5fc | 2020-09-11 15:42:10 -0300 | [diff] [blame] | 40 | "seedvault-lib-koin-core", // did not manage to add this as transitive dependency |
Michael Bestas | 239b831 | 2020-07-10 03:33:24 +0300 | [diff] [blame] | 41 | "seedvault-lib-koin-android", |
| 42 | "seedvault-lib-koin-androidx-viewmodel", |
Torsten Grote | 6c633b7 | 2021-01-19 09:14:52 -0300 | [diff] [blame^] | 43 | // bip39 |
Michael Bestas | 239b831 | 2020-07-10 03:33:24 +0300 | [diff] [blame] | 44 | "seedvault-lib-novacrypto-bip39", |
Michael Bestas | 239b831 | 2020-07-10 03:33:24 +0300 | [diff] [blame] | 45 | ], |
| 46 | manifest: "app/src/main/AndroidManifest.xml", |
| 47 | |
| 48 | platform_apis: true, |
| 49 | certificate: "platform", |
| 50 | privileged: true, |
| 51 | required: [ |
Torsten Grote | 0272a09 | 2020-09-18 12:04:18 -0300 | [diff] [blame] | 52 | "LocalContactsBackup", |
Michael Bestas | 239b831 | 2020-07-10 03:33:24 +0300 | [diff] [blame] | 53 | "privapp_whitelist_com.stevesoltys.backup", |
| 54 | "com.stevesoltys.backup_whitelist" |
Torsten Grote | 2a176a9 | 2020-09-15 13:53:10 -0300 | [diff] [blame] | 55 | ], |
| 56 | optimize: { |
| 57 | enabled: false, |
| 58 | }, |
Michael Bestas | 239b831 | 2020-07-10 03:33:24 +0300 | [diff] [blame] | 59 | } |
| 60 | |
| 61 | prebuilt_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 | |
| 68 | prebuilt_etc { |
| 69 | name: "com.stevesoltys.backup_whitelist", |
| 70 | sub_dir: "sysconfig", |
| 71 | src: "whitelist_com.stevesoltys.seedvault.xml", |
| 72 | filename_from_src: true, |
| 73 | } |