blob: 5d1eff72b4b841d32901c746d2ba14e22794a204 [file] [log] [blame] [edit]
// 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
}
}