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