seedvault/Android.bp

89 lines
2.5 KiB
Text
Raw Normal View History

//
2023-03-02 18:33:29 +01:00
// SPDX-FileCopyrightText: 2020 The Calyx Institute
// SPDX-License-Identifier: Apache-2.0
//
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",
],
resource_dirs: [
"app/src/main/res",
],
2024-07-11 22:37:11 +02:00
proto: {
type: "lite",
local_include_dirs: ["app/src/main/proto"],
},
static_libs: [
"kotlin-stdlib-jdk8",
"libprotobuf-java-lite",
"androidx.core_core-ktx",
"androidx.fragment_fragment-ktx",
"androidx.activity_activity-ktx",
"androidx.preference_preference",
2021-10-07 18:44:55 +02:00
"androidx.documentfile_documentfile",
"androidx.work_work-runtime-ktx",
"androidx.lifecycle_lifecycle-viewmodel-ktx",
"androidx.lifecycle_lifecycle-livedata-ktx",
"androidx-constraintlayout_constraintlayout",
"com.google.android.material_material",
"kotlinx-coroutines-android",
"kotlinx-coroutines-core",
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",
"seedvault-lib-storage",
// koin
2021-10-07 18:44:55 +02:00
"seedvault-lib-koin-core-jvm", // did not manage to add this as transitive dependency
"seedvault-lib-koin-android",
// bip39
"seedvault-lib-kotlin-bip39",
// WebDAV
"seedvault-lib-dav4jvm",
"seedvault-lib-okhttp",
],
2024-08-30 22:54:58 +02:00
use_embedded_native_libs: true,
manifest: "app/src/main/AndroidManifest.xml",
platform_apis: true,
system_ext_specific: true,
certificate: "platform",
privileged: true,
required: [
"LocalContactsBackup",
2022-09-13 18:13:41 +02:00
"com.stevesoltys.backup_allowlist",
"com.stevesoltys.backup_default-permissions",
2022-09-13 18:13:41 +02:00
"com.stevesoltys.backup_privapp_allowlist"
],
optimize: {
enabled: false,
},
}
prebuilt_etc {
2022-09-13 18:13:41 +02:00
name: "com.stevesoltys.backup_allowlist",
system_ext_specific: true,
2022-09-13 18:13:41 +02:00
sub_dir: "sysconfig",
src: "allowlist_com.stevesoltys.seedvault.xml",
filename_from_src: true,
}
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,
}
prebuilt_etc {
2022-09-13 18:13:41 +02:00
name: "com.stevesoltys.backup_privapp_allowlist",
system_ext_specific: true,
2022-09-13 18:13:41 +02:00
sub_dir: "permissions",
src: "permissions_com.stevesoltys.seedvault.xml",
filename_from_src: true,
}