2020-07-10 02:33:24 +02:00
|
|
|
//
|
|
|
|
// Copyright (C) 2018 The Android Open Source Project
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
//
|
|
|
|
|
|
|
|
android_app {
|
|
|
|
name: "Seedvault",
|
|
|
|
srcs: [
|
|
|
|
"app/src/main/java/**/*.kt",
|
|
|
|
"app/src/main/java/**/*.java",
|
|
|
|
],
|
|
|
|
resource_dirs: [
|
|
|
|
"app/src/main/res",
|
|
|
|
],
|
|
|
|
static_libs: [
|
2020-09-11 19:32:45 +02:00
|
|
|
"kotlin-stdlib-jdk8",
|
|
|
|
"androidx.core_core-ktx",
|
2020-07-10 02:33:24 +02:00
|
|
|
"androidx.preference_preference",
|
2021-10-07 18:44:55 +02:00
|
|
|
"androidx.documentfile_documentfile",
|
2020-09-11 19:32:45 +02:00
|
|
|
"androidx.lifecycle_lifecycle-viewmodel-ktx",
|
|
|
|
"androidx.lifecycle_lifecycle-livedata-ktx",
|
2020-07-10 02:33:24 +02:00
|
|
|
"androidx-constraintlayout_constraintlayout",
|
2020-09-11 19:32:45 +02:00
|
|
|
"com.google.android.material_material",
|
2021-01-19 13:14:52 +01:00
|
|
|
// storage
|
|
|
|
"seedvault-lib-storage", // did not manage to add this as transitive dependency
|
|
|
|
"seedvault-lib-tink-android",
|
|
|
|
"androidx.room_room-runtime",
|
|
|
|
"libprotobuf-java-lite",
|
|
|
|
// koin
|
2021-10-07 18:44:55 +02:00
|
|
|
"seedvault-lib-koin-core-jvm", // did not manage to add this as transitive dependency
|
2020-07-10 02:33:24 +02:00
|
|
|
"seedvault-lib-koin-android",
|
2021-01-19 13:14:52 +01:00
|
|
|
// bip39
|
2021-07-02 21:46:55 +02:00
|
|
|
"seedvault-lib-kotlin-bip39",
|
2020-07-10 02:33:24 +02:00
|
|
|
],
|
|
|
|
manifest: "app/src/main/AndroidManifest.xml",
|
|
|
|
|
|
|
|
platform_apis: true,
|
|
|
|
certificate: "platform",
|
|
|
|
privileged: true,
|
|
|
|
required: [
|
2020-09-18 17:04:18 +02:00
|
|
|
"LocalContactsBackup",
|
2020-07-10 02:33:24 +02:00
|
|
|
"privapp_whitelist_com.stevesoltys.backup",
|
|
|
|
"com.stevesoltys.backup_whitelist"
|
2020-09-15 18:53:10 +02:00
|
|
|
],
|
|
|
|
optimize: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
2020-07-10 02:33:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
prebuilt_etc {
|
|
|
|
name: "privapp_whitelist_com.stevesoltys.backup",
|
|
|
|
sub_dir: "permissions",
|
|
|
|
src: "permissions_com.stevesoltys.seedvault.xml",
|
|
|
|
filename_from_src: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
prebuilt_etc {
|
|
|
|
name: "com.stevesoltys.backup_whitelist",
|
|
|
|
sub_dir: "sysconfig",
|
|
|
|
src: "whitelist_com.stevesoltys.seedvault.xml",
|
|
|
|
filename_from_src: true,
|
|
|
|
}
|