From c73cb1461529fc885d627ed758fd3f362d216dec Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 9 Nov 2020 22:49:06 +0600 Subject: [PATCH] temporal version --- extensions.gradle | 1 + gradle.properties | 7 +++++++ mppAndroidProject | 27 +++++++++++++++++++++++++++ repos/android/db/build.gradle | 24 ++++++++++++++++++++++++ settings.gradle | 1 + 5 files changed, 60 insertions(+) create mode 100644 mppAndroidProject create mode 100644 repos/android/db/build.gradle diff --git a/extensions.gradle b/extensions.gradle index f71cff3286a..8a736a982cb 100644 --- a/extensions.gradle +++ b/extensions.gradle @@ -21,6 +21,7 @@ allprojects { mppProjectWithSerializationPresetPath = "${rootProject.projectDir.absolutePath}/mppProjectWithSerialization" mppJavaProjectPresetPath = "${rootProject.projectDir.absolutePath}/mppJavaProject" + mppAndroidProjectPresetPath = "${rootProject.projectDir.absolutePath}/mppAndroidProject" publishGradlePath = "${rootProject.projectDir.absolutePath}/publish.gradle" publishMavenPath = "${rootProject.projectDir.absolutePath}/maven.publish.gradle" diff --git a/gradle.properties b/gradle.properties index 91268ed5b33..33eff1cfb61 100644 --- a/gradle.properties +++ b/gradle.properties @@ -18,5 +18,12 @@ github_release_plugin_version=2.2.12 uuidVersion=0.2.2 +# ANDROID + +android_compileSdkVersion=30 +android_buildToolsVersion=30.0.2 +dexcount_version=2.0.0-RC1 + group=dev.inmo version=0.3.1 +android_code_version=1 diff --git a/mppAndroidProject b/mppAndroidProject new file mode 100644 index 00000000000..66abaf339f4 --- /dev/null +++ b/mppAndroidProject @@ -0,0 +1,27 @@ +project.version = "$version" +project.group = "$group" + +apply from: "$publishGradlePath" + +kotlin { + + sourceSets { + commonMain { + dependencies { + implementation kotlin('stdlib') + } + } + commonTest { + dependencies { + implementation kotlin('test-common') + implementation kotlin('test-annotations-common') + } + } + + jvmTest { + dependencies { + implementation kotlin('test-junit') + } + } + } +} diff --git a/repos/android/db/build.gradle b/repos/android/db/build.gradle new file mode 100644 index 00000000000..fd1f782dfe7 --- /dev/null +++ b/repos/android/db/build.gradle @@ -0,0 +1,24 @@ +buildscript { + repositories { + jcenter() + google() + mavenCentral() + mavenLocal() + maven { url "https://plugins.gradle.org/m2/" } + } + + dependencies { + classpath 'com.android.tools.build:gradle:4.1.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath "com.getkeepsafe.dexcount:dexcount-gradle-plugin:$dexcount_version" + } +} + +plugins { + id "org.jetbrains.kotlin.multiplatform" + id "org.jetbrains.kotlin.plugin.serialization" +} + +apply plugin: 'com.android.library' + +apply from: "$mppAndroidProjectPresetPath" diff --git a/settings.gradle b/settings.gradle index 92804fc0013..e833e2820ac 100644 --- a/settings.gradle +++ b/settings.gradle @@ -13,6 +13,7 @@ String[] includes = [ ":repos:ktor:client", ":repos:ktor:common", ":repos:ktor:server", + ":repos:android:db", ":ktor:server", ":ktor:common", ":ktor:client",