Skip to content

Commit 4412df6

Browse files
authored
Merge pull request #14 from anton6tak/#13-update-to-kotlin-1.5.20-and-gradle-0.7.2
#13 update to kotlin 1.5.20 and gradle 0.7.2
2 parents f259dc7 + 42aa455 commit 4412df6

26 files changed

+354
-327
lines changed

.github/workflows/compilation-check.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,15 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v1
15-
- name: Set up JDK 1.8
15+
- name: Set up JDK 11
1616
uses: actions/setup-java@v1
1717
with:
18-
java-version: 1.8
18+
java-version: 11
1919
- name: Cocoapods install
2020
run: (cd sample/ios-app && pod install)
21-
- name: Build K/N cache
22-
run: ./gradlew :crash-reporting-core:runCommonizer
2321
- name: Check library
2422
run: ./gradlew build publishToMavenLocal syncMultiPlatformLibraryDebugFrameworkIosX64
2523
- name: Install pods with kotlin
2624
run: cd sample/ios-app && pod install
2725
- name: build ios sample
28-
run: cd sample/ios-app && xcodebuild -scheme TestProj -workspace TestProj.xcworkspace -configuration Debug build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
26+
run: cd sample/ios-app && xcodebuild -scheme TestProj -workspace TestProj.xcworkspace -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v1
24-
- name: Set up JDK 1.8
24+
- name: Set up JDK 11
2525
uses: actions/setup-java@v1
2626
with:
27-
java-version: 1.8
27+
java-version: 11
2828
- name: Cocoapods install
2929
run: (cd sample/ios-app && pod install)
3030
- name: Publish library
@@ -42,6 +42,6 @@ jobs:
4242
with:
4343
commitish: ${{ github.ref }}
4444
tag_name: release/${{ github.event.inputs.version }}
45-
release_name: Release ${{ github.event.inputs.version }}
45+
release_name: ${{ github.event.inputs.version }}
4646
body: "Will be filled later"
4747
draft: true

README.md

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
![moko-crash-reporting](https://user-images.githubusercontent.com/701307/98647965-37858400-2368-11eb-98e8-6e62d75fa6af.png)
2-
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0) [![Download](https://img.shields.io/maven-central/v/dev.icerock.moko/crash-reporting-core) ](https://repo1.maven.org/maven2/dev/icerock/moko/crash-reporting-core) ![kotlin-version](https://img.shields.io/badge/kotlin-1.4.31-orange)
2+
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0) [![Download](https://img.shields.io/maven-central/v/dev.icerock.moko/crash-reporting-core) ](https://repo1.maven.org/maven2/dev/icerock/moko/crash-reporting-core) ![kotlin-version](https://kotlin-version.aws.icerock.dev/kotlin-version?group=dev.icerock.moko&name=crash-reporting-core)
33

44
# Mobile Kotlin crash report
55

@@ -8,7 +8,6 @@ This is a Kotlin MultiPlatform library that provides reporting fatal and non-fat
88
## Table of Contents
99
- [Features](#features)
1010
- [Requirements](#requirements)
11-
- [Versions](#versions)
1211
- [Installation](#installation)
1312
- [Usage](#usage)
1413
- [Samples](#samples)
@@ -21,19 +20,9 @@ This is a Kotlin MultiPlatform library that provides reporting fatal and non-fat
2120
- **CrashReportingAntilog** can be used for **Napier** logger to log messages and errors by **ExceptionLogger**
2221

2322
## Requirements
24-
- Gradle version 6.0+
23+
- Gradle version 6.8+
2524
- Android API 16+
26-
- iOS version 9.0+
27-
28-
## Versions
29-
### Bintray
30-
- kotlin 1.4.10
31-
- 0.1.0
32-
- kotlin 1.4.21
33-
- 0.1.1
34-
### mavenCentral
35-
- kotlin 1.4.31
36-
- 0.1.2
25+
- iOS version 11.0+
3726

3827
## Installation
3928
root build.gradle
@@ -48,8 +37,8 @@ allprojects {
4837
project build.gradle
4938
```groovy
5039
dependencies {
51-
commonMainImplementation("dev.icerock.moko:crash-reporting-crashlytics:0.1.2") // for CrashlyticsLogger
52-
commonMainImplementation("dev.icerock.moko:crash-reporting-napier:0.1.2") // for CrashReportingAntilog
40+
commonMainImplementation("dev.icerock.moko:crash-reporting-crashlytics:2.0.0") // for CrashlyticsLogger
41+
commonMainImplementation("dev.icerock.moko:crash-reporting-napier:2.0.0") // for CrashReportingAntilog
5342
commonMainImplementation("com.github.aakira:napier:1.4.1") // for CrashReportingAntilog
5443
}
5544
```

build.gradle.kts

Lines changed: 9 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -2,132 +2,26 @@
22
* Copyright 2020 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5-
import java.util.Base64
6-
7-
plugins {
8-
plugin(Deps.Plugins.detekt) apply false
9-
}
10-
115
buildscript {
126
repositories {
137
mavenCentral()
148
google()
15-
16-
jcenter {
17-
content {
18-
includeGroup("org.jetbrains.trove4j")
19-
}
20-
}
21-
}
22-
dependencies {
23-
plugin(Deps.Plugins.googleServices)
24-
plugin(Deps.Plugins.firebaseCrashlytics)
25-
}
26-
}
27-
28-
allprojects {
29-
repositories {
30-
mavenCentral()
31-
google()
32-
33-
jcenter {
34-
content {
35-
includeGroup("org.jetbrains.trove4j")
36-
includeGroup("org.jetbrains.kotlinx")
37-
includeGroup("com.github.aakira")
38-
}
39-
}
40-
}
41-
42-
apply(plugin = Deps.Plugins.detekt.id)
43-
44-
configure<io.gitlab.arturbosch.detekt.extensions.DetektExtension> {
45-
input.setFrom("src/commonMain/kotlin", "src/androidMain/kotlin", "src/iosMain/kotlin")
9+
gradlePluginPortal()
10+
jcenter()
4611
}
4712

4813
dependencies {
49-
"detektPlugins"(Deps.Libs.Jvm.detektFormatting)
50-
}
51-
52-
plugins.withId(Deps.Plugins.androidLibrary.id) {
53-
configure<com.android.build.gradle.LibraryExtension> {
54-
compileSdkVersion(Deps.Android.compileSdk)
14+
classpath("com.google.gms:google-services:4.3.8")
15+
classpath("com.google.firebase:firebase-crashlytics-gradle:2.2.0")
5516

56-
defaultConfig {
57-
minSdkVersion(Deps.Android.minSdk)
58-
targetSdkVersion(Deps.Android.targetSdk)
59-
}
60-
}
17+
classpath(":crash-reporting-build-logic")
6118
}
19+
}
6220

63-
plugins.withId(Deps.Plugins.mavenPublish.id) {
21+
allprojects {
22+
plugins.withId("org.gradle.maven-publish") {
6423
group = "dev.icerock.moko"
65-
version = Deps.mokoCrashReportingVersion
66-
67-
val javadocJar by tasks.registering(Jar::class) {
68-
archiveClassifier.set("javadoc")
69-
}
70-
71-
configure<PublishingExtension> {
72-
repositories.maven("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") {
73-
name = "OSSRH"
74-
75-
credentials {
76-
username = System.getenv("OSSRH_USER")
77-
password = System.getenv("OSSRH_KEY")
78-
}
79-
}
80-
81-
publications.withType<MavenPublication> {
82-
// Stub javadoc.jar artifact
83-
artifact(javadocJar.get())
84-
85-
// Provide artifacts information requited by Maven Central
86-
pom {
87-
name.set("MOKO crash reporting")
88-
description.set("Fatal and Non-Fatal reporting to Crashlytics for Kotlin Multiplatform Mobile")
89-
url.set("https://github.com/icerockdev/moko-crash-reporting")
90-
licenses {
91-
license {
92-
url.set("https://github.com/icerockdev/moko-crash-reporting/blob/master/LICENSE.md")
93-
}
94-
}
95-
96-
developers {
97-
developer {
98-
id.set("Dorofeev")
99-
name.set("Andrey Dorofeev")
100-
email.set("adorofeev@icerockdev.com")
101-
}
102-
developer {
103-
id.set("Alex009")
104-
name.set("Aleksey Mikhailov")
105-
email.set("aleksey.mikhailov@icerockdev.com")
106-
}
107-
}
108-
109-
scm {
110-
connection.set("scm:git:ssh://github.com/icerockdev/moko-crash-reporting.git")
111-
developerConnection.set("scm:git:ssh://github.com/icerockdev/moko-crash-reporting.git")
112-
url.set("https://github.com/icerockdev/moko-crash-reporting")
113-
}
114-
}
115-
}
116-
117-
apply(plugin = Deps.Plugins.signing.id)
118-
119-
configure<SigningExtension> {
120-
val signingKeyId: String? = System.getenv("SIGNING_KEY_ID")
121-
val signingPassword: String? = System.getenv("SIGNING_PASSWORD")
122-
val signingKey: String? = System.getenv("SIGNING_KEY")?.let { base64Key ->
123-
String(Base64.getDecoder().decode(base64Key))
124-
}
125-
if (signingKeyId != null) {
126-
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
127-
sign(publications)
128-
}
129-
}
130-
}
24+
version = libs.versions.mokoCrashReportingVersion.get()
13125
}
13226
}
13327

buildSrc/build.gradle.kts

Lines changed: 0 additions & 24 deletions
This file was deleted.

buildSrc/src/main/kotlin/Deps.kt

Lines changed: 0 additions & 78 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
plugins {
2+
`kotlin-dsl`
3+
}
4+
5+
repositories {
6+
mavenCentral()
7+
google()
8+
9+
gradlePluginPortal()
10+
}
11+
12+
dependencies {
13+
api("dev.icerock:mobile-multiplatform:0.12.0")
14+
api("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20")
15+
api("com.android.tools.build:gradle:4.2.1")
16+
api("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.15.0")
17+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
3+
*/
4+
5+
plugins {
6+
id("com.android.application")
7+
id("android-base-convention")
8+
id("kotlin-android")
9+
}
10+
11+
android {
12+
dexOptions {
13+
javaMaxHeapSize = "2g"
14+
}
15+
16+
buildTypes {
17+
getByName("release") {
18+
isMinifyEnabled = true
19+
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
20+
}
21+
getByName("debug") {
22+
isDebuggable = true
23+
applicationIdSuffix = ".debug"
24+
}
25+
}
26+
27+
packagingOptions {
28+
exclude("META-INF/*.kotlin_module")
29+
exclude("META-INF/AL2.0")
30+
exclude("META-INF/LGPL2.1")
31+
}
32+
}

0 commit comments

Comments
 (0)