1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- 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"
- }
- 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 {
- // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
- applicationId = "com.zaojiao.battle"
- // You can update the following values to match your application needs.
- // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
- 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 = "../.."
- }
|