2020-07-17 16:35:39 +02:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
|
|
|
|
android {
|
2021-10-03 14:36:06 +02:00
|
|
|
compileSdkVersion 31
|
|
|
|
buildToolsVersion "31"
|
2022-06-18 21:13:16 +02:00
|
|
|
ndkVersion "24.0.8215888"
|
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
|
2022-02-18 16:24:28 +01:00
|
|
|
//noinspection ExpiredTargetSdkVersion
|
2020-07-26 21:16:06 +02:00
|
|
|
targetSdkVersion 29
|
2022-04-22 12:12:57 +02:00
|
|
|
versionCode 27
|
|
|
|
versionName "1.10.1"
|
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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-20 18:54:29 +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
|
|
|
|
}
|
|
|
|
|
2021-06-11 20:23:54 +02:00
|
|
|
buildFeatures {
|
|
|
|
viewBinding true
|
|
|
|
}
|
|
|
|
|
2020-07-17 16:35:39 +02:00
|
|
|
buildTypes {
|
|
|
|
release {
|
2020-08-27 22:03:45 +02:00
|
|
|
minifyEnabled true
|
|
|
|
shrinkResources true
|
2020-07-17 16:35:39 +02:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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"
|
2021-11-07 12:55:39 +01:00
|
|
|
implementation 'androidx.core:core-ktx:1.7.0'
|
2022-02-18 16:24:28 +01:00
|
|
|
implementation "androidx.appcompat:appcompat:1.4.1"
|
|
|
|
implementation "androidx.constraintlayout:constraintlayout:2.1.3"
|
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-02-18 16:24:28 +01:00
|
|
|
implementation 'com.google.android.material:material:1.5.0'
|
2021-06-07 13:23:11 +02:00
|
|
|
implementation "com.github.bumptech.glide:glide:4.12.0"
|
2022-03-05 12:51:02 +01:00
|
|
|
implementation "androidx.biometric:biometric-ktx:1.2.0-alpha04"
|
2020-12-19 19:55:54 +01:00
|
|
|
|
2022-03-23 14:56:15 +01:00
|
|
|
def exoplayer_version = "2.17.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-04-12 16:09:56 +02:00
|
|
|
def camerax_version = "1.1.0-beta03"
|
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
|
|
|
}
|