2020-07-10 03:33:24 +03: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 14:32:45 -03:00
|
|
|
"kotlin-stdlib-jdk8",
|
|
|
|
"androidx.core_core-ktx",
|
2022-09-02 10:23:55 +03:00
|
|
|
"androidx.fragment_fragment-ktx",
|
|
|
|
"androidx.activity_activity-ktx",
|
2020-07-10 03:33:24 +03:00
|
|
|
"androidx.preference_preference",
|
2021-10-07 13:44:55 -03:00
|
|
|
"androidx.documentfile_documentfile",
|
2024-02-01 14:12:47 -03:00
|
|
|
"androidx.work_work-runtime-ktx",
|
2020-09-11 14:32:45 -03:00
|
|
|
"androidx.lifecycle_lifecycle-viewmodel-ktx",
|
|
|
|
"androidx.lifecycle_lifecycle-livedata-ktx",
|
2020-07-10 03:33:24 +03:00
|
|
|
"androidx-constraintlayout_constraintlayout",
|
2020-09-11 14:32:45 -03:00
|
|
|
"com.google.android.material_material",
|
2022-08-19 13:45:48 +05:30
|
|
|
"kotlinx-coroutines-android",
|
|
|
|
"kotlinx-coroutines-core",
|
2021-10-08 11:17:40 -03:00
|
|
|
// storage backup lib
|
|
|
|
"seedvault-lib-storage",
|
2021-01-19 09:14:52 -03:00
|
|
|
// koin
|
2021-10-07 13:44:55 -03:00
|
|
|
"seedvault-lib-koin-core-jvm", // did not manage to add this as transitive dependency
|
2020-07-10 03:33:24 +03:00
|
|
|
"seedvault-lib-koin-android",
|
2021-01-19 09:14:52 -03:00
|
|
|
// bip39
|
2021-07-02 16:46:55 -03:00
|
|
|
"seedvault-lib-kotlin-bip39",
|
2024-02-13 16:08:51 -03:00
|
|
|
// WebDAV
|
|
|
|
"seedvault-lib-dav4jvm",
|
|
|
|
"seedvault-lib-okhttp",
|
|
|
|
"seedvault-lib-okio",
|
2020-07-10 03:33:24 +03:00
|
|
|
],
|
|
|
|
manifest: "app/src/main/AndroidManifest.xml",
|
|
|
|
|
|
|
|
platform_apis: true,
|
2021-11-14 21:51:38 +02:00
|
|
|
system_ext_specific: true,
|
2020-07-10 03:33:24 +03:00
|
|
|
certificate: "platform",
|
|
|
|
privileged: true,
|
|
|
|
required: [
|
2020-09-18 12:04:18 -03:00
|
|
|
"LocalContactsBackup",
|
2022-09-13 19:13:41 +03:00
|
|
|
"com.stevesoltys.backup_allowlist",
|
2022-09-13 19:18:25 +03:00
|
|
|
"com.stevesoltys.backup_default-permissions",
|
2022-09-13 19:13:41 +03:00
|
|
|
"com.stevesoltys.backup_privapp_allowlist"
|
2020-09-15 13:53:10 -03:00
|
|
|
],
|
|
|
|
optimize: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
2020-07-10 03:33:24 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
prebuilt_etc {
|
2022-09-13 19:13:41 +03:00
|
|
|
name: "com.stevesoltys.backup_allowlist",
|
2021-11-14 21:51:38 +02:00
|
|
|
system_ext_specific: true,
|
2022-09-13 19:13:41 +03:00
|
|
|
sub_dir: "sysconfig",
|
|
|
|
src: "allowlist_com.stevesoltys.seedvault.xml",
|
2020-07-10 03:33:24 +03:00
|
|
|
filename_from_src: true,
|
|
|
|
}
|
|
|
|
|
2022-09-13 19:18:25 +03:00
|
|
|
prebuilt_etc {
|
|
|
|
name: "com.stevesoltys.backup_default-permissions",
|
|
|
|
system_ext_specific: true,
|
|
|
|
sub_dir: "default-permissions",
|
|
|
|
src: "default-permissions_com.stevesoltys.seedvault.xml",
|
|
|
|
filename_from_src: true,
|
|
|
|
}
|
|
|
|
|
2020-07-10 03:33:24 +03:00
|
|
|
prebuilt_etc {
|
2022-09-13 19:13:41 +03:00
|
|
|
name: "com.stevesoltys.backup_privapp_allowlist",
|
2021-11-14 21:51:38 +02:00
|
|
|
system_ext_specific: true,
|
2022-09-13 19:13:41 +03:00
|
|
|
sub_dir: "permissions",
|
|
|
|
src: "permissions_com.stevesoltys.seedvault.xml",
|
2020-07-10 03:33:24 +03:00
|
|
|
filename_from_src: true,
|
|
|
|
}
|