app sign pt2
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
import java.util.Properties
|
||||||
|
import java.io.FileInputStream
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("com.android.application")
|
id("com.android.application")
|
||||||
id("kotlin-android")
|
id("kotlin-android")
|
||||||
@@ -5,6 +8,12 @@ plugins {
|
|||||||
id("dev.flutter.flutter-gradle-plugin")
|
id("dev.flutter.flutter-gradle-plugin")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val keystoreProperties = Properties()
|
||||||
|
val keystorePropertiesFile = rootProject.file("key.properties")
|
||||||
|
if (keystorePropertiesFile.exists()) {
|
||||||
|
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
|
||||||
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "za.co.mzansiinnovationhub.mih"
|
namespace = "za.co.mzansiinnovationhub.mih"
|
||||||
compileSdk = 35
|
compileSdk = 35
|
||||||
@@ -16,31 +25,26 @@ android {
|
|||||||
targetCompatibility = JavaVersion.VERSION_11
|
targetCompatibility = JavaVersion.VERSION_11
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() }
|
kotlinOptions {
|
||||||
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
||||||
|
}
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
// TODO: Specify your own unique Application ID
|
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||||
// (https://developer.android.com/studio/build/application-id.html).
|
|
||||||
applicationId = "za.co.mzansiinnovationhub.mih"
|
applicationId = "za.co.mzansiinnovationhub.mih"
|
||||||
// You can update the following values to match your application needs.
|
// You can update the following values to match your application needs.
|
||||||
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
||||||
minSdk = 23
|
minSdk = 23
|
||||||
// minSdk = flutter.minSdkVersion
|
//minSdk = flutter.minSdkVersion
|
||||||
targetSdk = flutter.targetSdkVersion
|
targetSdk = flutter.targetSdkVersion
|
||||||
versionCode = flutter.versionCode
|
versionCode = flutter.versionCode
|
||||||
versionName = flutter.versionName
|
versionName = flutter.versionName
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
signingConfigs {
|
||||||
release {
|
create("release") {
|
||||||
// TODO: Add your own signing config for the release build.
|
keyAlias = keystoreProperties["keyAlias"] as String
|
||||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
keyPassword = keystoreProperties["keyPassword"] as String
|
||||||
signingConfig = signingConfigs.getByName("debug")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
flutter { source = "../.." }
|
|
||||||
storeFile = keystoreProperties["storeFile"]?.let { file(it) }
|
storeFile = keystoreProperties["storeFile"]?.let { file(it) }
|
||||||
storePassword = keystoreProperties["storePassword"] as String
|
storePassword = keystoreProperties["storePassword"] as String
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user