mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2024-12-28 17:51:50 +01:00
505839c84a
update compile sdk to 34 update kotlin version to 1.9.0
91 lines
2.5 KiB
Groovy
91 lines
2.5 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
|
|
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
|
def keystoreProperties = new Properties()
|
|
if (keystorePropertiesFile.exists()) {
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
}
|
|
|
|
android {
|
|
namespace "com.simplemobiletools.filemanager.pro"
|
|
compileSdk 34
|
|
|
|
defaultConfig {
|
|
applicationId "com.simplemobiletools.filemanager.pro"
|
|
minSdk 23
|
|
targetSdk 34
|
|
versionCode 135
|
|
versionName "6.16.0"
|
|
multiDexEnabled true
|
|
setProperty("archivesBaseName", "file-manager")
|
|
vectorDrawables.useSupportLibrary = true
|
|
}
|
|
|
|
signingConfigs {
|
|
if (keystorePropertiesFile.exists()) {
|
|
release {
|
|
keyAlias keystoreProperties['keyAlias']
|
|
keyPassword keystoreProperties['keyPassword']
|
|
storeFile file(keystoreProperties['storeFile'])
|
|
storePassword keystoreProperties['storePassword']
|
|
}
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
buildConfig true
|
|
viewBinding true
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
applicationIdSuffix ".debug"
|
|
}
|
|
release {
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
if (keystorePropertiesFile.exists()) {
|
|
signingConfig signingConfigs.release
|
|
}
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = '17'
|
|
}
|
|
|
|
flavorDimensions = ["variants"]
|
|
productFlavors {
|
|
core {}
|
|
fdroid {}
|
|
prepaid {}
|
|
}
|
|
|
|
sourceSets {
|
|
main.java.srcDirs += 'src/main/kotlin'
|
|
}
|
|
|
|
lintOptions {
|
|
checkReleaseBuilds false
|
|
abortOnError false
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'com.github.fatihergin:Simple-Commons:fe7a01274a' // TODO: do not replace it with SimpleMobileTools
|
|
implementation 'com.github.tibbi:AndroidPdfViewer:e6a533125b'
|
|
implementation 'com.github.Stericson:RootTools:df729dcb13'
|
|
implementation 'com.github.Stericson:RootShell:1.6'
|
|
implementation 'com.alexvasilkov:gesture-views:2.5.2'
|
|
implementation 'androidx.documentfile:documentfile:1.0.1'
|
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
|
implementation 'me.grantland:autofittextview:0.2.1'
|
|
implementation 'net.lingala.zip4j:zip4j:2.11.5'
|
|
}
|