apply plugin: 'com.android.library'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-android'
android {
    compileSdkVersion 31
//    buildToolsVersion "27.0.3"

    defaultConfig {
        minSdkVersion 15
        targetSdkVersion 23
    }

//    task ndkBuild(type: Exec) {
//        description "builds JNI libs from source. " +
//                "This requires the Android NDK and is optional as precompiled libs are provided."
//
//        workingDir = "./src/main"
//        def ndkDir = android.ndkDirectory
//
//        //Need to start cmd first on windows systems, otherwise these are the same
//        if (System.properties["os.name"].toLowerCase().contains("windows")) {
//            commandLine "cmd", "/c", "$ndkDir${File.separator}ndk-build " +
//                    "NDK_APPLICATION_MK=./jniSources/Application.mk " +
//                    "NDK_LIBS_OUT=./jniLibs"
//        } else {
//            commandLine "$ndkDir${File.separator}ndk-build " +
//                    "NDK_APPLICATION_MK=./jniSources/Application.mk " +
//                    "NDK_LIBS_OUT=./jniLibs"
//        }
//
//    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    ndkVersion '26.1.10909125'
}
dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
repositories {
    mavenCentral()
}