Added android plugin, need to sort out shared jvm code next
This commit is contained in:
parent
92058a7ba5
commit
f060d2298d
@ -25,10 +25,12 @@ repositories {
|
||||
maven ("https://dl.bintray.com/kotlin/kotlin-eap")
|
||||
maven("https://dl.bintray.com/kotlin/kotlin-dev")
|
||||
jcenter()
|
||||
google()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.0-rc")
|
||||
implementation("com.android.tools.build:gradle:4.0.1")
|
||||
}
|
||||
|
||||
System.setProperty("PROJECT_PATH", project.projectDir.parentFile.toString())
|
||||
|
@ -107,5 +107,7 @@ object PluginsDeps {
|
||||
val signing = "signing"
|
||||
val dokka = "org.jetbrains.dokka"
|
||||
val taskTree = "com.dorongold.task-tree"
|
||||
val androidLibrary = "com.android.library"
|
||||
val kotlinAndroidExtensions = "kotlin-android-extensions"
|
||||
}
|
||||
|
||||
|
@ -23,3 +23,5 @@ kotlin.js.compiler=ir
|
||||
kotlin.native.disableCompilerDaemon=true
|
||||
|
||||
org.gradle.jvmargs=-Xmx4g -XX:MaxPermSize=4096m
|
||||
|
||||
android.useAndroidX=true
|
||||
|
@ -28,6 +28,9 @@ plugins {
|
||||
id(PluginsDeps.node) version Versions.nodePlugin
|
||||
id(PluginsDeps.dokka)
|
||||
id(PluginsDeps.taskTree) version Versions.taskTreePlugin
|
||||
id(PluginsDeps.androidLibrary)
|
||||
id(PluginsDeps.kotlinAndroidExtensions)
|
||||
|
||||
}
|
||||
|
||||
val sonatypeStaging = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
|
||||
@ -51,13 +54,27 @@ version = ReleaseInfo.version
|
||||
val ideaActive = isInIdea()
|
||||
println("Idea active: $ideaActive")
|
||||
|
||||
|
||||
android {
|
||||
compileSdkVersion(29)
|
||||
defaultConfig {
|
||||
minSdkVersion(24)
|
||||
targetSdkVersion(29)
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
}
|
||||
buildTypes {
|
||||
getByName("release") {
|
||||
isMinifyEnabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
kotlin {
|
||||
val hostOsName = getHostOsName()
|
||||
runningOnLinuxx86_64 {
|
||||
println("Configuring Linux X86-64 targets")
|
||||
jvm()
|
||||
android()
|
||||
js {
|
||||
browser {
|
||||
testTask {
|
||||
@ -428,6 +445,12 @@ kotlin {
|
||||
implementation(kotlin(Deps.Jvm.reflection))
|
||||
}
|
||||
}
|
||||
val androidMain by getting {
|
||||
dependencies {
|
||||
implementation("androidx.core:core-ktx:1.2.0")
|
||||
}
|
||||
}
|
||||
|
||||
val jsMain by getting {
|
||||
dependencies {
|
||||
implementation(kotlin(Deps.Js.stdLib))
|
||||
|
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.ionspin.android"/>
|
Loading…
x
Reference in New Issue
Block a user