DroidFS/app/build.gradle

114 lines
3.4 KiB
Groovy
Raw Normal View History

2020-07-17 16:35:39 +02:00
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
2022-06-18 21:13:16 +02:00
if (hasProperty("disableCryFS")) {
ext.disableCryFS = getProperty("disableCryFS")
} else {
ext.disableCryFS = false
}
if (hasProperty("disableGocryptfs")) {
ext.disableGocryptfs = getProperty("disableGocryptfs")
} else {
ext.disableGocryptfs = false
}
2020-07-17 16:35:39 +02:00
android {
2022-09-23 12:09:22 +02:00
compileSdkVersion 33
buildToolsVersion "33.0.0"
ndkVersion "25.1.8937393"
namespace "sushi.hardcore.droidfs"
2020-07-17 16:35:39 +02:00
compileOptions {
targetCompatibility JavaVersion.VERSION_1_8
}
2020-07-17 16:35:39 +02:00
defaultConfig {
applicationId "sushi.hardcore.droidfs"
minSdkVersion 21
2022-02-18 16:24:28 +01:00
//noinspection ExpiredTargetSdkVersion
targetSdkVersion 29
versionCode 29
versionName "2.0.0-alpha2"
2020-07-17 16:35:39 +02:00
ndk {
2021-06-14 14:43:18 +02:00
abiFilters "x86", "x86_64", "armeabi-v7a", "arm64-v8a"
}
2022-06-18 21:13:16 +02:00
externalNativeBuild.cmake {
if (project.ext.disableGocryptfs) {
arguments "-DGOCRYPTFS=OFF"
}
if (project.ext.disableCryFS) {
arguments "-DCRYFS=OFF"
}
}
2021-06-14 14:43:18 +02:00
}
if (!file("fdroid").exists()) {
splits {
abi {
enable true
universalApk true
}
2020-07-17 16:35:39 +02:00
}
}
2020-10-15 18:31:49 +02:00
applicationVariants.all { variant ->
variant.resValue "string", "versionName", variant.versionName
2022-06-18 21:13:16 +02:00
buildConfigField "boolean", "CRYFS_DISABLED", "${project.ext.disableCryFS}"
buildConfigField "boolean", "GOCRYPTFS_DISABLED", "${project.ext.disableGocryptfs}"
2020-10-15 18:31:49 +02:00
}
2021-06-11 20:23:54 +02:00
buildFeatures {
viewBinding true
}
2020-07-17 16:35:39 +02:00
buildTypes {
release {
2022-06-18 21:13:16 +02:00
postprocessing {
removeUnusedCode true
removeUnusedResources true
obfuscate false
optimizeCode true
proguardFiles 'proguard-rules.pro'
}
2020-07-17 16:35:39 +02:00
}
}
externalNativeBuild {
cmake {
path file('CMakeLists.txt')
}
}
}
dependencies {
2022-02-18 15:53:48 +01:00
implementation project(":libpdfviewer:app")
2020-07-17 16:35:39 +02:00
implementation fileTree(dir: "libs", include: ["*.jar"])
2021-01-21 12:46:30 +01:00
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
2022-09-23 12:09:22 +02:00
implementation 'androidx.core:core-ktx:1.9.0'
implementation "androidx.appcompat:appcompat:1.5.1"
implementation "androidx.constraintlayout:constraintlayout:2.1.4"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1"
2020-08-05 14:06:54 +02:00
2021-12-20 14:44:58 +01:00
implementation "androidx.sqlite:sqlite-ktx:2.2.0"
2022-02-18 16:24:28 +01:00
implementation "androidx.preference:preference-ktx:1.2.0"
2020-08-05 14:06:54 +02:00
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
2022-09-23 12:09:22 +02:00
implementation 'com.google.android.material:material:1.6.1'
implementation "com.github.bumptech.glide:glide:4.13.2"
implementation "androidx.biometric:biometric-ktx:1.2.0-alpha05"
2020-12-19 19:55:54 +01:00
2022-09-23 12:09:22 +02:00
def exoplayer_version = "2.18.1"
2021-03-17 21:11:14 +01:00
implementation "com.google.android.exoplayer:exoplayer-core:$exoplayer_version"
implementation "com.google.android.exoplayer:exoplayer-ui:$exoplayer_version"
2021-10-03 14:36:06 +02:00
implementation "androidx.concurrent:concurrent-futures:1.1.0"
2022-09-23 12:09:22 +02:00
def camerax_version = "1.2.0-beta02"
2022-02-18 16:24:28 +01:00
implementation "androidx.camera:camera-camera2:$camerax_version"
implementation "androidx.camera:camera-lifecycle:$camerax_version"
implementation "androidx.camera:camera-view:$camerax_version"
implementation "androidx.camera:camera-extensions:$camerax_version"
2020-07-17 16:35:39 +02:00
}