at main 1.8 kB view raw
1plugins { 2 id("com.android.application") 3 id("kotlin-android") 4 // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. 5 id("dev.flutter.flutter-gradle-plugin") 6} 7 8android { 9 namespace = "social.coves" 10 compileSdk = flutter.compileSdkVersion 11 ndkVersion = "27.0.12077973" 12 13 compileOptions { 14 sourceCompatibility = JavaVersion.VERSION_11 15 targetCompatibility = JavaVersion.VERSION_11 16 } 17 18 kotlinOptions { 19 jvmTarget = JavaVersion.VERSION_11.toString() 20 } 21 22 defaultConfig { 23 // Base application ID - flavors will add suffixes 24 applicationId = "social.coves" 25 // You can update the following values to match your application needs. 26 // For more information, see: https://flutter.dev/to/review-gradle-config. 27 minSdk = flutter.minSdkVersion 28 targetSdk = flutter.targetSdkVersion 29 versionCode = flutter.versionCode 30 versionName = flutter.versionName 31 } 32 33 // Flutter flavors for side-by-side installation 34 flavorDimensions += "environment" 35 productFlavors { 36 create("prod") { 37 dimension = "environment" 38 applicationIdSuffix = "" 39 resValue("string", "app_name", "Coves") 40 } 41 create("dev") { 42 dimension = "environment" 43 applicationIdSuffix = ".dev" 44 resValue("string", "app_name", "Coves Dev") 45 } 46 } 47 48 buildTypes { 49 release { 50 // TODO: Add your own signing config for the release build. 51 // Signing with the debug keys for now, so `flutter run --release` works. 52 signingConfig = signingConfigs.getByName("debug") 53 } 54 } 55} 56 57flutter { 58 source = "../.." 59}