apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' def keystorePropertiesFile = rootProject.file("keystore.properties") def keystoreProperties = new Properties() if (keystorePropertiesFile.exists()) { keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) } android { compileSdkVersion 31 defaultConfig { applicationId "com.simplemobiletools.camera" minSdkVersion 29 targetSdkVersion 31 versionCode 77 versionName "5.3.1" setProperty("archivesBaseName", "camera") vectorDrawables.useSupportLibrary = true } signingConfigs { if (keystorePropertiesFile.exists()) { release { keyAlias keystoreProperties['keyAlias'] keyPassword keystoreProperties['keyPassword'] storeFile file(keystoreProperties['storeFile']) storePassword keystoreProperties['storePassword'] } } } buildTypes { debug { applicationIdSuffix ".debug" } release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' if (keystorePropertiesFile.exists()) { signingConfig signingConfigs.release } } } flavorDimensions "variants" productFlavors { core {} fdroid {} prepaid {} } sourceSets { main.java.srcDirs += 'src/main/kotlin' } lintOptions { checkReleaseBuilds false abortOnError false } } dependencies { implementation 'com.github.SimpleMobileTools:Simple-Commons:7c48da6bef' implementation 'androidx.documentfile:documentfile:1.0.1' implementation "androidx.exifinterface:exifinterface:1.3.3" implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.5.0" implementation 'androidx.window:window:1.1.0-alpha02' def camerax_version = '1.1.0' 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" }