-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from icerockdev/develop
Release 0.8.0
- Loading branch information
Showing
20 changed files
with
297 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
google() | ||
|
||
gradlePluginPortal() | ||
} | ||
|
||
dependencies { | ||
api("dev.icerock:mobile-multiplatform:0.12.0") | ||
api("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20") | ||
api("com.android.tools.build:gradle:4.2.1") | ||
api("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.15.0") | ||
} |
32 changes: 32 additions & 0 deletions
32
graphics-build-logic/src/main/kotlin/android-app-convention.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
plugins { | ||
id("com.android.application") | ||
id("android-base-convention") | ||
id("kotlin-android") | ||
} | ||
|
||
android { | ||
dexOptions { | ||
javaMaxHeapSize = "2g" | ||
} | ||
|
||
buildTypes { | ||
getByName("release") { | ||
isMinifyEnabled = true | ||
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro") | ||
} | ||
getByName("debug") { | ||
isDebuggable = true | ||
applicationIdSuffix = ".debug" | ||
} | ||
} | ||
|
||
packagingOptions { | ||
exclude("META-INF/*.kotlin_module") | ||
exclude("META-INF/AL2.0") | ||
exclude("META-INF/LGPL2.1") | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
graphics-build-logic/src/main/kotlin/android-base-convention.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
import com.android.build.gradle.BaseExtension | ||
|
||
configure<BaseExtension> { | ||
compileSdkVersion(30) | ||
|
||
defaultConfig { | ||
minSdkVersion(16) | ||
targetSdkVersion(30) | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
graphics-build-logic/src/main/kotlin/android-library-convention.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
plugins { | ||
id("com.android.library") | ||
id("kotlin-android") | ||
id("android-base-convention") | ||
} | ||
|
||
android { | ||
sourceSets.all { java.srcDir("src/$name/kotlin") } | ||
} |
15 changes: 15 additions & 0 deletions
15
graphics-build-logic/src/main/kotlin/android-publication-convention.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
plugins { | ||
id("publication-convention") | ||
} | ||
|
||
afterEvaluate { | ||
publishing.publications { | ||
create("release", MavenPublication::class.java) { | ||
from(components.getByName("release")) | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
graphics-build-logic/src/main/kotlin/detekt-convention.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
plugins { | ||
id("io.gitlab.arturbosch.detekt") | ||
} | ||
|
||
detekt { | ||
input.setFrom("src/commonMain/kotlin", "src/androidMain/kotlin", "src/iosMain/kotlin", "src/main/kotlin") | ||
} | ||
|
||
dependencies { | ||
"detektPlugins"("io.gitlab.arturbosch.detekt:detekt-formatting:1.15.0") | ||
} |
16 changes: 16 additions & 0 deletions
16
graphics-build-logic/src/main/kotlin/javadoc-stub-convention.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
plugins { | ||
id("org.gradle.maven-publish") | ||
} | ||
|
||
val javadocJar by tasks.registering(Jar::class) { | ||
archiveClassifier.set("javadoc") | ||
} | ||
|
||
publishing.publications.withType<MavenPublication> { | ||
// Stub javadoc.jar artifact | ||
artifact(javadocJar.get()) | ||
} |
41 changes: 41 additions & 0 deletions
41
graphics-build-logic/src/main/kotlin/multiplatform-library-convention.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
plugins { | ||
id("com.android.library") | ||
id("org.jetbrains.kotlin.multiplatform") | ||
id("android-base-convention") | ||
id("dev.icerock.mobile.multiplatform.android-manifest") | ||
} | ||
|
||
kotlin { | ||
ios() | ||
android { | ||
publishLibraryVariants("release", "debug") | ||
} | ||
macosX64() | ||
tvos() | ||
watchos() | ||
jvm() | ||
js(BOTH) { | ||
nodejs() | ||
browser() | ||
} | ||
linux() | ||
windows() | ||
wasm32() | ||
} | ||
|
||
fun org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension.linux() { | ||
linuxArm64() | ||
linuxArm32Hfp() | ||
linuxMips32() | ||
linuxMipsel32() | ||
linuxX64() | ||
} | ||
|
||
fun org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension.windows() { | ||
mingwX64() | ||
mingwX86() | ||
} |
70 changes: 70 additions & 0 deletions
70
graphics-build-logic/src/main/kotlin/publication-convention.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
import java.util.Base64 | ||
|
||
plugins { | ||
id("javadoc-stub-convention") | ||
id("org.gradle.maven-publish") | ||
id("signing") | ||
} | ||
|
||
publishing { | ||
repositories.maven("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") { | ||
name = "OSSRH" | ||
|
||
credentials { | ||
username = System.getenv("OSSRH_USER") | ||
password = System.getenv("OSSRH_KEY") | ||
} | ||
} | ||
|
||
publications.withType<MavenPublication> { | ||
// Provide artifacts information requited by Maven Central | ||
pom { | ||
name.set("MOKO graphics") | ||
description.set("Graphics primitives for mobile (android & ios) Kotlin Multiplatform development") | ||
url.set("https://github.com/icerockdev/moko-graphics") | ||
licenses { | ||
license { | ||
name.set("Apache-2.0") | ||
distribution.set("repo") | ||
url.set("https://github.com/icerockdev/moko-graphics/blob/master/LICENSE.md") | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id.set("Alex009") | ||
name.set("Aleksey Mikhailov") | ||
email.set("[email protected]") | ||
} | ||
developer { | ||
id.set("nrobi144") | ||
name.set("Nagy Robert") | ||
email.set("[email protected]") | ||
} | ||
} | ||
|
||
scm { | ||
connection.set("scm:git:ssh://github.com/icerockdev/moko-graphics.git") | ||
developerConnection.set("scm:git:ssh://github.com/icerockdev/moko-graphics.git") | ||
url.set("https://github.com/icerockdev/moko-graphics") | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
||
signing { | ||
val signingKeyId: String? = System.getenv("SIGNING_KEY_ID") | ||
val signingPassword: String? = System.getenv("SIGNING_PASSWORD") | ||
val signingKey: String? = System.getenv("SIGNING_KEY")?.let { base64Key -> | ||
String(Base64.getDecoder().decode(base64Key)) | ||
} | ||
if (signingKeyId != null) { | ||
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword) | ||
sign(publishing.publications) | ||
} | ||
} |
Oops, something went wrong.