/ android / app / build.gradle.kts
build.gradle.kts
 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  android {
 9      namespace = "com.example.funit_converter"
10      compileSdk = flutter.compileSdkVersion
11      ndkVersion = flutter.ndkVersion
12  
13      compileOptions {
14          sourceCompatibility = JavaVersion.VERSION_17
15          targetCompatibility = JavaVersion.VERSION_17
16      }
17  
18      kotlinOptions {
19          jvmTarget = JavaVersion.VERSION_17.toString()
20      }
21  
22      defaultConfig {
23          // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
24          applicationId = "com.example.funit_converter"
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      buildTypes {
34          release {
35              // TODO: Add your own signing config for the release build.
36              // Signing with the debug keys for now, so `flutter run --release` works.
37              signingConfig = signingConfigs.getByName("debug")
38          }
39      }
40  }
41  
42  flutter {
43      source = "../.."
44  }