diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-08-14 16:54:11 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-08-14 16:54:11 +0200 |
commit | f6141fd410855a82b9bbaa02a0b2634ed137843c (patch) | |
tree | 396bca4167404f7673bdf76163fd83cba9dd4c0f /akono/build.gradle.kts | |
parent | 66eb46b1a40c088b1096ba2f294796404b1a530c (diff) | |
download | akono-f6141fd410855a82b9bbaa02a0b2634ed137843c.tar.gz akono-f6141fd410855a82b9bbaa02a0b2634ed137843c.tar.bz2 akono-f6141fd410855a82b9bbaa02a0b2634ed137843c.zip |
rename library->akono
Diffstat (limited to 'akono/build.gradle.kts')
-rw-r--r-- | akono/build.gradle.kts | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/akono/build.gradle.kts b/akono/build.gradle.kts new file mode 100644 index 00000000..b98510db --- /dev/null +++ b/akono/build.gradle.kts @@ -0,0 +1,79 @@ + +plugins { + id("com.android.library") + kotlin("android") + kotlin("android.extensions") +} + +android { + compileSdkVersion(28) + defaultConfig { + minSdkVersion(26) + targetSdkVersion(28) + + versionCode = 1 + versionName = "1.0" + + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + // Specifies the application ID for the test APK. + testApplicationId = "akono.test" + + ndk { + // Tells Gradle to build outputs for the following ABIs and package + // them into your APK. + abiFilters("armeabi-v7a"); + } + + externalNativeBuild { + cmake.arguments("-DANDROID_STL=c++_shared") + } + } + useLibrary("android.test.runner") + useLibrary("android.test.base") + useLibrary("android.test.mock") + + externalNativeBuild { + cmake { + setPath(file("src/main/cpp/CMakeLists.txt")) + } + } + + sourceSets { + named("main") { + jniLibs.srcDirs("../deps/compiled") + } + } +} + +val kotlin_version: String by rootProject.extra + +repositories { + jcenter() +} + +dependencies { + //implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.20") + //implementation(kotlin("stdlib")) + + // Use the Kotlin test library. + testImplementation("org.jetbrains.kotlin:kotlin-test:$kotlin_version") + + // Use the Kotlin JUnit integration. + testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version") + + androidTestImplementation("androidx.test:core:1.1.0") + androidTestImplementation("androidx.test:runner:1.1.1") + androidTestImplementation("androidx.test:rules:1.1.1") + + // Assertions + androidTestImplementation("androidx.test.ext:junit:1.1.0") + androidTestImplementation("androidx.test.ext:truth:1.1.0") + androidTestImplementation("com.google.truth:truth:0.44") + + // Use the Kotlin test library. + androidTestImplementation("org.jetbrains.kotlin:kotlin-test:$kotlin_version") + + // Use the Kotlin JUnit integration. + androidTestImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version") + implementation(kotlin("stdlib-jdk7", kotlin_version)) +} |