Update build.gradle

This commit is contained in:
Yoshi 2024-10-05 22:23:21 +03:00
parent ddf7115579
commit 7a00917ca2

View file

@ -29,58 +29,54 @@ if (keystorePropertiesFile.exists()) {
} }
android { android {
namespace 'com.yoshi.rain' namespace = 'com.yoshi.rain'
compileSdkVersion 34 compileSdk = 34
ndkVersion flutter.ndkVersion ndkVersion = flutter.ndkVersion
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_17
} }
kotlinOptions { kotlinOptions {
jvmTarget = '1.8' jvmTarget = JavaVersion.VERSION_17
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
} }
defaultConfig { defaultConfig {
applicationId "com.yoshi.rain" applicationId = 'com.yoshi.rain'
minSdkVersion 23 minSdk = 23
targetSdkVersion flutter.targetSdkVersion targetSdk = flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger() versionCode = flutter.versionCode
versionName flutterVersionName versionName = flutter.versionName
} }
signingConfigs { signingConfigs {
release { release {
keyAlias keystoreProperties['keyAlias'] keyAlias = keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword'] keyPassword = keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null storeFile = keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword'] storePassword = keystoreProperties['storePassword']
} }
} }
buildTypes { buildTypes {
release { release {
signingConfig signingConfigs.release signingConfig = signingConfigs.release
} }
debug { debug {
signingConfig signingConfigs.debug signingConfig = signingConfigs.debug
minifyEnabled true minifyEnabled = true
} }
} }
buildFeatures { buildFeatures {
viewBinding true viewBinding = true
} }
} }
flutter { flutter {
source '../..' source = '../..'
} }
dependencies { dependencies {