Simple-Camera/app/build.gradle

79 lines
2.4 KiB
Groovy
Raw Normal View History

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()
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 {
compileSdkVersion 31
2016-04-12 22:35:40 +02:00
defaultConfig {
applicationId "com.simplemobiletools.camera"
minSdkVersion 29
targetSdkVersion 31
2021-04-19 09:27:10 +02:00
versionCode 77
versionName "5.3.1"
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 {
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 {
debug {
applicationIdSuffix ".debugcamerax"
}
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'
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 {}
}
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-06-22 23:32:14 +02:00
implementation 'com.github.SimpleMobileTools:Simple-Commons:d1d5402388'
2020-09-19 18:00:02 +02:00
implementation 'androidx.documentfile:documentfile:1.0.1'
implementation "androidx.exifinterface:exifinterface:1.3.3"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.4.1"
implementation 'androidx.window:window:1.1.0-alpha02'
2022-06-26 01:12:19 +02:00
def camerax_version = '1.1.0-rc02'
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
}