@@ -22,29 +22,38 @@ if (flutterVersionName == null) {
2222}
2323
2424apply plugin : ' com.android.application'
25+ apply plugin : ' kotlin-android'
2526apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
2627
2728android {
28- compileSdkVersion 33
29+ compileSdkVersion flutter. compileSdkVersion
30+ ndkVersion flutter. ndkVersion
2931
30- lintOptions {
31- disable ' InvalidPackage'
32+ compileOptions {
33+ sourceCompatibility JavaVersion . VERSION_1_8
34+ targetCompatibility JavaVersion . VERSION_1_8
3235 }
3336
37+ kotlinOptions {
38+ jvmTarget = ' 1.8'
39+ }
40+
41+ sourceSets {
42+ main. java. srcDirs + = ' src/main/kotlin'
43+ }
3444 defaultConfig {
3545 // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3646 applicationId " io.openinstall.openinstall_flutter_plugin_example"
37- minSdkVersion 16
38- targetSdkVersion 33
47+ // You can update the following values to match your application needs.
48+ // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
49+ minSdkVersion flutter. minSdkVersion
50+ targetSdkVersion flutter. targetSdkVersion
3951 versionCode flutterVersionCode. toInteger()
4052 versionName flutterVersionName
41- testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
42-
4353
4454 manifestPlaceholders = [
4555 OPENINSTALL_APPKEY : " ufp21n" ,
4656 ]
47-
4857 }
4958
5059 buildTypes {
@@ -61,8 +70,7 @@ flutter {
6170}
6271
6372dependencies {
64- testImplementation ' junit:junit:4.12'
65- androidTestImplementation ' com.android.support.test:runner:1.0.2'
66- androidTestImplementation ' com.android.support.test.espresso:espresso-core:3.0.2'
67-
73+ implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
6874}
75+
76+
0 commit comments