1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- plugins {
- id "com.android.application"
- id "kotlin-android"
-
- id "dev.flutter.flutter-gradle-plugin"
- }
- def localProperties = new Properties()
- def localPropertiesFile = rootProject.file("local.properties")
- if (localPropertiesFile.exists()) {
- localPropertiesFile.withReader("UTF-8") { reader ->
- localProperties.load(reader)
- }
- }
- def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
- if (flutterVersionCode == null) {
- flutterVersionCode = "1"
- }
- def flutterVersionName = localProperties.getProperty("flutter.versionName")
- if (flutterVersionName == null) {
- flutterVersionName = "1.0"
- }
- android {
- namespace = "com.zaojiao.battle"
- compileSdk = flutter.compileSdkVersion
- ndkVersion = flutter.ndkVersion
- compileOptions {
- sourceCompatibility = JavaVersion.VERSION_11
- targetCompatibility = JavaVersion.VERSION_11
- }
- defaultConfig {
-
- applicationId = "com.zaojiao.battle"
-
-
- minSdk = 28
- targetSdk = flutter.targetSdkVersion
- versionCode = flutterVersionCode.toInteger()
- versionName = flutterVersionName
- }
- signingConfigs {
- release {
- storeFile file("../key/zaojiao.jks")
- storePassword "asdfg12345"
- keyAlias "key0"
- keyPassword "asdfg12345"
- v1SigningEnabled true
- v2SigningEnabled true
- }
- }
- buildTypes {
- release {
- signingConfig signingConfigs.release
- }
- }
- }
- flutter {
- source = "../.."
- }
|