2016-04-12 22:35:40 +02:00
|
|
|
apply plugin: 'com.android.application'
|
2016-10-30 22:59:00 +01:00
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
2016-04-12 22:35:40 +02:00
|
|
|
|
2019-04-07 23:13:24 +02:00
|
|
|
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
|
|
|
def keystoreProperties = new Properties()
|
2019-12-19 22:02:48 +01:00
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
}
|
2019-04-07 23:13:24 +02:00
|
|
|
|
2016-04-12 22:35:40 +02:00
|
|
|
android {
|
2022-09-21 12:36:35 +02:00
|
|
|
compileSdkVersion 33
|
2016-04-12 22:35:40 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.simplemobiletools.camera"
|
2022-04-20 21:20:40 +02:00
|
|
|
minSdkVersion 29
|
2022-09-21 12:36:35 +02:00
|
|
|
targetSdkVersion 33
|
2022-10-11 09:59:16 +02:00
|
|
|
versionCode 78
|
|
|
|
versionName "5.4.0"
|
2017-11-21 15:54:30 +01:00
|
|
|
setProperty("archivesBaseName", "camera")
|
2019-09-02 22:27:57 +02:00
|
|
|
vectorDrawables.useSupportLibrary = true
|
2016-04-12 22:35:40 +02:00
|
|
|
}
|
2016-04-25 23:17:45 +02:00
|
|
|
|
|
|
|
signingConfigs {
|
2019-12-19 22:02:48 +01:00
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
release {
|
|
|
|
keyAlias keystoreProperties['keyAlias']
|
|
|
|
keyPassword keystoreProperties['keyPassword']
|
|
|
|
storeFile file(keystoreProperties['storeFile'])
|
|
|
|
storePassword keystoreProperties['storePassword']
|
|
|
|
}
|
2019-04-07 23:13:24 +02:00
|
|
|
}
|
2016-04-25 23:17:45 +02:00
|
|
|
}
|
|
|
|
|
2016-04-12 22:35:40 +02:00
|
|
|
buildTypes {
|
2018-01-30 22:04:59 +01:00
|
|
|
debug {
|
2022-07-13 17:57:24 +02:00
|
|
|
applicationIdSuffix ".debug"
|
2018-01-30 22:04:59 +01:00
|
|
|
}
|
2016-04-12 22:35:40 +02:00
|
|
|
release {
|
2016-04-25 23:17:45 +02:00
|
|
|
minifyEnabled true
|
2016-04-12 22:35:40 +02:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2019-12-22 22:56:21 +01:00
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
}
|
2016-04-12 22:35:40 +02:00
|
|
|
}
|
|
|
|
}
|
2016-10-30 22:25:13 +01:00
|
|
|
|
2022-04-20 21:25:55 +02:00
|
|
|
flavorDimensions "variants"
|
|
|
|
productFlavors {
|
|
|
|
core {}
|
|
|
|
fdroid {}
|
2022-07-04 22:48:52 +02:00
|
|
|
prepaid {}
|
2022-04-20 21:25:55 +02:00
|
|
|
}
|
|
|
|
|
2016-10-30 22:25:13 +01:00
|
|
|
sourceSets {
|
|
|
|
main.java.srcDirs += 'src/main/kotlin'
|
|
|
|
}
|
2017-09-20 23:18:20 +02:00
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
checkReleaseBuilds false
|
|
|
|
abortOnError false
|
|
|
|
}
|
2016-04-12 22:35:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-10-11 09:53:50 +02:00
|
|
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:78b27e9f16'
|
2020-09-19 18:00:02 +02:00
|
|
|
implementation 'androidx.documentfile:documentfile:1.0.1'
|
2022-10-08 04:07:42 +02:00
|
|
|
implementation "androidx.exifinterface:exifinterface:1.3.4"
|
2022-09-21 12:51:30 +02:00
|
|
|
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.5.1"
|
|
|
|
implementation 'androidx.window:window:1.1.0-alpha03'
|
2022-06-25 16:43:39 +02:00
|
|
|
|
2022-09-29 01:49:37 +02:00
|
|
|
def camerax_version = '1.2.0-beta02'
|
2022-06-25 16:43:39 +02:00
|
|
|
implementation "androidx.camera:camera-core:$camerax_version"
|
|
|
|
implementation "androidx.camera:camera-camera2:$camerax_version"
|
|
|
|
implementation "androidx.camera:camera-video:$camerax_version"
|
|
|
|
implementation "androidx.camera:camera-extensions:$camerax_version"
|
|
|
|
implementation "androidx.camera:camera-lifecycle:$camerax_version"
|
|
|
|
implementation "androidx.camera:camera-view:$camerax_version"
|
2016-04-12 22:35:40 +02:00
|
|
|
}
|