| // The Android Gradle Plugin builds the native code with the Android NDK. |
| |
| group 'com.example.kotlin_plugin' |
| version '1.0' |
| |
| rootProject.allprojects { |
| repositories { |
| google() |
| mavenCentral() |
| } |
| } |
| |
| apply plugin: 'com.android.library' |
| apply plugin: 'kotlin-android' |
| |
| android { |
| namespace 'com.example.kotlin_plugin' |
| |
| compileSdk flutter.compileSdkVersion |
| ndkVersion flutter.ndkVersion |
| |
| sourceSets { |
| main.java.srcDirs += 'src/main/kotlin' |
| } |
| |
| kotlinOptions { |
| jvmTarget = '11' |
| } |
| |
| compileOptions { |
| sourceCompatibility JavaVersion.VERSION_11 |
| targetCompatibility JavaVersion.VERSION_11 |
| } |
| |
| defaultConfig { |
| minSdkVersion 16 |
| } |
| } |