From f6141fd410855a82b9bbaa02a0b2634ed137843c Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 14 Aug 2019 16:54:11 +0200 Subject: rename library->akono --- akono/build.gradle.kts | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 akono/build.gradle.kts (limited to 'akono/build.gradle.kts') 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)) +} -- cgit v1.2.3