| 
 | 1 | +plugins {  | 
 | 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 | + | 
 | 8 | +def localProperties = new Properties()  | 
 | 9 | +def localPropertiesFile = rootProject.file("local.properties")  | 
 | 10 | +if (localPropertiesFile.exists()) {  | 
 | 11 | +    localPropertiesFile.withReader("UTF-8") { reader ->  | 
 | 12 | +        localProperties.load(reader)  | 
 | 13 | +    }  | 
 | 14 | +}  | 
 | 15 | + | 
 | 16 | +def flutterVersionCode = localProperties.getProperty("flutter.versionCode")  | 
 | 17 | +if (flutterVersionCode == null) {  | 
 | 18 | +    flutterVersionCode = "1"  | 
 | 19 | +}  | 
 | 20 | + | 
 | 21 | +def flutterVersionName = localProperties.getProperty("flutter.versionName")  | 
 | 22 | +if (flutterVersionName == null) {  | 
 | 23 | +    flutterVersionName = "1.0"  | 
 | 24 | +}  | 
 | 25 | + | 
 | 26 | +android {  | 
 | 27 | +    namespace = "com.example.integrationtestapp"  | 
 | 28 | +    compileSdk = 34  | 
 | 29 | +    ndkVersion = 34  | 
 | 30 | + | 
 | 31 | +    compileOptions {  | 
 | 32 | +        sourceCompatibility = JavaVersion.VERSION_1_8  | 
 | 33 | +        targetCompatibility = JavaVersion.VERSION_1_8  | 
 | 34 | +    }  | 
 | 35 | + | 
 | 36 | +    defaultConfig {  | 
 | 37 | +        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).  | 
 | 38 | +        applicationId = "com.example.integrationtestapp"  | 
 | 39 | +        // You can update the following values to match your application needs.  | 
 | 40 | +        // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.  | 
 | 41 | +        minSdk = 33  | 
 | 42 | +        targetSdk = 34  | 
 | 43 | +        versionCode = flutterVersionCode.toInteger()  | 
 | 44 | +        versionName = flutterVersionName  | 
 | 45 | +    }  | 
 | 46 | + | 
 | 47 | +    buildTypes {  | 
 | 48 | +        release {  | 
 | 49 | +            // TODO: Add your own signing config for the release build.  | 
 | 50 | +            // Signing with the debug keys for now, so `flutter run --release` works.  | 
 | 51 | +            signingConfig = signingConfigs.debug  | 
 | 52 | +        }  | 
 | 53 | +    }  | 
 | 54 | +}  | 
 | 55 | + | 
 | 56 | +flutter {  | 
 | 57 | +    source = "../.."  | 
 | 58 | +}  | 
0 commit comments