2020-07-10 02:33:24 +02:00
|
|
|
//
|
2023-03-02 18:33:29 +01:00
|
|
|
// SPDX-FileCopyrightText: 2020 The Calyx Institute
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2020-07-10 02:33:24 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
android_app {
|
|
|
|
name: "Seedvault",
|
|
|
|
srcs: [
|
|
|
|
"app/src/main/java/**/*.kt",
|
|
|
|
"app/src/main/java/**/*.java",
|
2024-07-11 22:37:11 +02:00
|
|
|
"app/src/main/proto/*.proto",
|
2020-07-10 02:33:24 +02:00
|
|
|
],
|
|
|
|
resource_dirs: [
|
|
|
|
"app/src/main/res",
|
|
|
|
],
|
2024-07-11 22:37:11 +02:00
|
|
|
proto: {
|
|
|
|
type: "lite",
|
|
|
|
local_include_dirs: ["app/src/main/proto"],
|
|
|
|
},
|
2020-07-10 02:33:24 +02:00
|
|
|
static_libs: [
|
2020-09-11 19:32:45 +02:00
|
|
|
"kotlin-stdlib-jdk8",
|
2024-08-30 23:16:59 +02:00
|
|
|
"libprotobuf-java-lite",
|
2020-09-11 19:32:45 +02:00
|
|
|
"androidx.core_core-ktx",
|
2022-09-02 09:23:55 +02:00
|
|
|
"androidx.fragment_fragment-ktx",
|
|
|
|
"androidx.activity_activity-ktx",
|
2020-07-10 02:33:24 +02:00
|
|
|
"androidx.preference_preference",
|
2021-10-07 18:44:55 +02:00
|
|
|
"androidx.documentfile_documentfile",
|
2024-02-01 18:12:47 +01:00
|
|
|
"androidx.work_work-runtime-ktx",
|
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",
|
2022-08-19 10:15:48 +02:00
|
|
|
"kotlinx-coroutines-android",
|
|
|
|
"kotlinx-coroutines-core",
|
2024-09-06 14:09:35 +02:00
|
|
|
// app backup related libs
|
|
|
|
"seedvault-lib-kotlin-logging-jvm",
|
|
|
|
"seedvault-lib-chunker",
|
2024-08-30 22:54:58 +02:00
|
|
|
"seedvault-lib-zstd-jni",
|
2024-08-28 22:08:40 +02:00
|
|
|
// our own gradle module libs
|
|
|
|
"seedvault-lib-core",
|
2021-10-08 16:17:40 +02:00
|
|
|
"seedvault-lib-storage",
|
2021-01-19 13:14:52 +01:00
|
|
|
// 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",
|
2024-02-13 20:08:51 +01:00
|
|
|
// WebDAV
|
|
|
|
"seedvault-lib-dav4jvm",
|
|
|
|
"seedvault-lib-okhttp",
|
2020-07-10 02:33:24 +02:00
|
|
|
],
|
2024-08-30 22:54:58 +02:00
|
|
|
use_embedded_native_libs: true,
|
2020-07-10 02:33:24 +02:00
|
|
|
manifest: "app/src/main/AndroidManifest.xml",
|
|
|
|
|
|
|
|
platform_apis: true,
|
2021-11-14 20:51:38 +01:00
|
|
|
system_ext_specific: true,
|
2020-07-10 02:33:24 +02:00
|
|
|
certificate: "platform",
|
|
|
|
privileged: true,
|
|
|
|
required: [
|
2020-09-18 17:04:18 +02:00
|
|
|
"LocalContactsBackup",
|
2022-09-13 18:13:41 +02:00
|
|
|
"com.stevesoltys.backup_allowlist",
|
2022-09-13 18:18:25 +02:00
|
|
|
"com.stevesoltys.backup_default-permissions",
|
2022-09-13 18:13:41 +02:00
|
|
|
"com.stevesoltys.backup_privapp_allowlist"
|
2020-09-15 18:53:10 +02:00
|
|
|
],
|
|
|
|
optimize: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
2020-07-10 02:33:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
prebuilt_etc {
|
2022-09-13 18:13:41 +02:00
|
|
|
name: "com.stevesoltys.backup_allowlist",
|
2021-11-14 20:51:38 +01:00
|
|
|
system_ext_specific: true,
|
2022-09-13 18:13:41 +02:00
|
|
|
sub_dir: "sysconfig",
|
|
|
|
src: "allowlist_com.stevesoltys.seedvault.xml",
|
2020-07-10 02:33:24 +02:00
|
|
|
filename_from_src: true,
|
|
|
|
}
|
|
|
|
|
2022-09-13 18:18:25 +02: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 02:33:24 +02:00
|
|
|
prebuilt_etc {
|
2022-09-13 18:13:41 +02:00
|
|
|
name: "com.stevesoltys.backup_privapp_allowlist",
|
2021-11-14 20:51:38 +01:00
|
|
|
system_ext_specific: true,
|
2022-09-13 18:13:41 +02:00
|
|
|
sub_dir: "permissions",
|
|
|
|
src: "permissions_com.stevesoltys.seedvault.xml",
|
2020-07-10 02:33:24 +02:00
|
|
|
filename_from_src: true,
|
|
|
|
}
|