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
|
|
|
|
}
|
|
|
|
|
2023-04-19 16:11:54 +02:00
|
|
|
if (hasProperty("nosplits")) {
|
|
|
|
ext.splits = false
|
|
|
|
} else {
|
|
|
|
ext.splits = true
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2020-07-26 21:16:06 +02:00
|
|
|
compileOptions {
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
2020-07-17 16:35:39 +02:00
|
|
|
defaultConfig {
|
|
|
|
applicationId "sushi.hardcore.droidfs"
|
|
|
|
minSdkVersion 21
|
2023-04-18 14:59:05 +02:00
|
|
|
targetSdkVersion 32
|
2023-04-18 19:47:44 +02:00
|
|
|
versionCode 30
|
|
|
|
versionName "2.0.0"
|
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
|
|
|
}
|
|
|
|
|
2023-04-19 16:11:54 +02:00
|
|
|
if (project.ext.splits) {
|
2021-10-20 18:54:29 +02:00
|
|
|
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')
|
|
|
|
}
|
|
|
|
}
|
2023-04-17 15:52:20 +02:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
java {
|
|
|
|
exclude 'androidx/camera/video/originals/**'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-07-17 16:35:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-02-18 15:53:48 +01:00
|
|
|
implementation project(":libpdfviewer:app")
|
2021-01-21 12:46:30 +01:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
2023-04-17 17:06:51 +02:00
|
|
|
implementation 'androidx.core:core-ktx:1.10.0'
|
2023-03-07 23:25:17 +01:00
|
|
|
implementation "androidx.appcompat:appcompat:1.6.1"
|
2022-09-23 12:09:22 +02:00
|
|
|
implementation "androidx.constraintlayout:constraintlayout:2.1.4"
|
2023-04-17 17:06:51 +02:00
|
|
|
def lifecycle_version = "2.6.1"
|
2023-03-07 23:25:17 +01:00
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-process:$lifecycle_version"
|
2020-08-05 14:06:54 +02:00
|
|
|
|
2023-04-17 17:06:51 +02:00
|
|
|
implementation "androidx.sqlite:sqlite-ktx:2.3.1"
|
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"
|
2023-02-01 19:08:14 +01:00
|
|
|
implementation 'com.google.android.material:material:1.8.0'
|
2022-09-23 12:09:22 +02:00
|
|
|
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
|
|
|
|
2023-04-17 17:06:51 +02:00
|
|
|
def exoplayer_version = "2.18.5"
|
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"
|
|
|
|
|
2023-04-17 17:06:51 +02:00
|
|
|
def camerax_version = "1.3.0-alpha05"
|
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"
|
2023-04-17 15:52:20 +02:00
|
|
|
|
|
|
|
def autoValueVersion = "1.10.1"
|
|
|
|
implementation "com.google.auto.value:auto-value-annotations:$autoValueVersion"
|
|
|
|
annotationProcessor "com.google.auto.value:auto-value:$autoValueVersion"
|
2020-07-17 16:35:39 +02:00
|
|
|
}
|