2025-05-01 15:59:35 +03:00
|
|
|
import java.util.Properties
|
|
|
|
import java.io.FileInputStream
|
|
|
|
|
2025-04-27 19:43:48 +03:00
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
id("kotlin-android")
|
|
|
|
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
|
|
|
|
id("dev.flutter.flutter-gradle-plugin")
|
|
|
|
}
|
|
|
|
|
2025-05-01 15:59:35 +03:00
|
|
|
val keystoreProperties = Properties()
|
|
|
|
val keystorePropertiesFile = rootProject.file("key.properties")
|
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
|
|
|
|
}
|
|
|
|
|
2025-04-27 19:43:48 +03:00
|
|
|
android {
|
|
|
|
namespace = "dev.mi6e4ka.openstore"
|
|
|
|
compileSdk = flutter.compileSdkVersion
|
2025-05-12 00:11:11 +03:00
|
|
|
// ndkVersion = flutter.ndkVersion
|
2025-05-12 18:14:49 +03:00
|
|
|
ndkVersion = "27.2.12479018"
|
2025-04-27 19:43:48 +03:00
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
|
|
|
applicationId = "dev.mi6e4ka.openstore"
|
|
|
|
// You can update the following values to match your application needs.
|
|
|
|
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
|
|
|
minSdk = flutter.minSdkVersion
|
|
|
|
targetSdk = flutter.targetSdkVersion
|
|
|
|
versionCode = flutter.versionCode
|
|
|
|
versionName = flutter.versionName
|
|
|
|
}
|
2025-05-01 15:59:35 +03:00
|
|
|
signingConfigs {
|
|
|
|
create("release") {
|
2025-05-11 23:57:58 +03:00
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
keyAlias = keystoreProperties["keyAlias"] as String
|
|
|
|
keyPassword = keystoreProperties["keyPassword"] as String
|
|
|
|
storeFile = keystoreProperties["storeFile"]?.let { file(it) }
|
|
|
|
storePassword = keystoreProperties["storePassword"] as String
|
|
|
|
}
|
2025-05-01 15:59:35 +03:00
|
|
|
}
|
|
|
|
}
|
2025-04-27 19:43:48 +03:00
|
|
|
buildTypes {
|
|
|
|
release {
|
2025-05-12 09:39:10 +00:00
|
|
|
signingConfig = null
|
|
|
|
isMinifyEnabled = true
|
|
|
|
isShrinkResources = true
|
2025-04-27 19:43:48 +03:00
|
|
|
}
|
|
|
|
}
|
2025-05-01 15:59:35 +03:00
|
|
|
dependenciesInfo {
|
|
|
|
// Disables dependency metadata when building APKs (for IzzyOnDroid/F-Droid)
|
|
|
|
includeInApk = false
|
|
|
|
// Disables dependency metadata when building Android App Bundles (for Google Play)
|
|
|
|
includeInBundle = false
|
|
|
|
}
|
2025-04-27 19:43:48 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
flutter {
|
|
|
|
source = "../.."
|
|
|
|
}
|