-
Notifications
You must be signed in to change notification settings - Fork 6
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 #10 from icerockdev/develop
Release 0.2.0
- Loading branch information
Showing
23 changed files
with
293 additions
and
274 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
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
biometry-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
biometry-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
biometry-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
biometry-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
biometry-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
biometry-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()) | ||
} |
17 changes: 17 additions & 0 deletions
17
biometry-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,17 @@ | ||
/* | ||
* 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 { | ||
android { | ||
publishLibraryVariants("release", "debug") | ||
} | ||
ios() | ||
} |
75 changes: 75 additions & 0 deletions
75
biometry-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,75 @@ | ||
/* | ||
* 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 biometry") | ||
description.set("Biometry authentication with Touch ID, Face ID from common code with Kotlin Multiplatform Mobile") | ||
url.set("https://github.com/icerockdev/moko-biometry") | ||
licenses { | ||
license { | ||
name.set("Apache-2.0") | ||
distribution.set("repo") | ||
url.set("https://github.com/icerockdev/moko-biometry/blob/master/LICENSE.md") | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id.set("Dorofeev") | ||
name.set("Andrey Dorofeev") | ||
email.set("[email protected]") | ||
} | ||
developer { | ||
id.set("kovalandrew") | ||
name.set("Andrey Kovalev") | ||
email.set("[email protected]") | ||
} | ||
developer { | ||
id.set("Alex009") | ||
name.set("Aleksey Mikhailov") | ||
email.set("[email protected]") | ||
} | ||
} | ||
|
||
scm { | ||
connection.set("scm:git:ssh://github.com/icerockdev/moko-biometry.git") | ||
developerConnection.set("scm:git:ssh://github.com/icerockdev/moko-biometry.git") | ||
url.set("https://github.com/icerockdev/moko-biometry") | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
||
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.