Skip to content

Commit 35260f0

Browse files
authored
Merge pull request #52 from ExNDY/#51-update-moko-resources
#51 update moko resources
2 parents 7b43153 + 2c354e4 commit 35260f0

File tree

19 files changed

+75
-40
lines changed

19 files changed

+75
-40
lines changed

.github/workflows/compilation-check.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,11 @@ jobs:
1111
runs-on: macOS-latest
1212

1313
steps:
14-
- uses: actions/checkout@v1
15-
- name: Set up JDK 11
16-
uses: actions/setup-java@v1
14+
- uses: actions/checkout@v4
15+
- name: Set up JDK 17
16+
uses: actions/setup-java@v4
1717
with:
18-
java-version: 11
19-
- name: Build and publish local
20-
run: ./gradlew build publishToMavenLocal syncMultiPlatformLibraryDebugFrameworkIosX64
21-
- name: Install pods
22-
run: cd sample/ios-app && pod install
23-
- name: Check iOS
24-
run: cd sample/ios-app && set -o pipefail && xcodebuild -scheme TestProj -workspace TestProj.xcworkspace -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
18+
java-version: 17
19+
distribution: zulu
20+
- name: Check
21+
run: ./local-check.sh

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ jobs:
2020
SIGNING_KEY: ${{ secrets.GPG_KEY_CONTENTS }}
2121

2222
steps:
23-
- uses: actions/checkout@v1
24-
- name: Set up JDK 11
25-
uses: actions/setup-java@v1
23+
- uses: actions/checkout@v4
24+
- name: Set up JDK 17
25+
uses: actions/setup-java@v4
2626
with:
27-
java-version: 11
27+
java-version: 17
28+
distribution: zulu
2829
- name: Publish
2930
run: ./gradlew publish
3031

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ on the platforms. Converts the exception class to an error object to display. Th
2727
`SelectorErrorPresenter` - for selecting error presenter by some custom condition.
2828

2929
## Requirements
30+
- Kotlin 1.9.0
3031
- Gradle version 6.8+
3132
- Android API 16+
3233
- iOS version 11.0+
@@ -44,7 +45,7 @@ allprojects {
4445
project build.gradle
4546
```groovy
4647
dependencies {
47-
commonMainApi("dev.icerock.moko:errors:0.6.0")
48+
commonMainApi("dev.icerock.moko:errors:0.8.0")
4849
}
4950
```
5051

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ allprojects {
2626
}
2727

2828
tasks.register("clean", Delete::class).configure {
29-
delete(rootProject.buildDir)
29+
delete(rootProject.layout.buildDirectory)
3030
}

errors/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dependencies {
3131
}
3232

3333
multiplatformResources {
34-
multiplatformResourcesPackage = "dev.icerock.moko.errors"
34+
resourcesPackage.set("dev.icerock.moko.errors")
3535
}
3636

3737
tasks.withType<GenerateMultiplatformResourcesTask>().configureEach {
File renamed without changes.
File renamed without changes.

errors/src/iosMain/kotlin/dev/icerock/moko/errors/handler/ExceptionHandlerBinder.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import dev.icerock.moko.errors.ErrorEventListener
88
import dev.icerock.moko.errors.presenters.ErrorPresenter
99
import dev.icerock.moko.mvvm.dispatcher.EventsDispatcher
1010
import platform.UIKit.UIViewController
11+
import kotlin.experimental.ExperimentalNativeApi
1112
import kotlin.native.ref.WeakReference
1213

1314
actual interface ExceptionHandlerBinder {
@@ -33,8 +34,10 @@ actual class ExceptionHandlerBinderImpl<T : Any> actual constructor(
3334
viewController: UIViewController,
3435
private val errorPresenter: ErrorPresenter<T>
3536
) : ErrorEventListener<T> {
37+
@OptIn(ExperimentalNativeApi::class)
3638
private val viewControllerRef = WeakReference(viewController)
3739

40+
@OptIn(ExperimentalNativeApi::class)
3841
override fun showError(throwable: Throwable, data: T) {
3942
val viewController = viewControllerRef.get() ?: return
4043

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
org.gradle.jvmargs=-Xmx4096m
22
org.gradle.configureondemand=false
33
org.gradle.parallel=true
4+
org.gradle.configuration-cache=true
45

56
kotlin.code.style=official
67
kotlin.mpp.androidSourceSetLayoutVersion=2

gradle/libs.versions.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[versions]
2-
kotlinVersion = "1.8.10"
2+
kotlinVersion = "1.9.25"
33
androidAppCompatVersion = "1.6.1"
44
materialDesignVersion = "1.8.0"
55
androidLifecycleVersion = "2.2.0"
66
androidCoreTestingVersion = "2.2.0"
77
coroutinesVersion = "1.6.4"
8-
mokoMvvmVersion = "0.16.0"
9-
mokoResourcesVersion = "0.21.2"
10-
mokoErrorsVersion = "0.7.0"
8+
mokoMvvmVersion = "0.16.1"
9+
mokoResourcesVersion = "0.24.1"
10+
mokoErrorsVersion = "0.8.0"
1111

1212
[libraries]
1313
# android
@@ -30,6 +30,6 @@ androidCoreTesting = { module = "androidx.arch.core:core-testing", version.ref =
3030

3131
# gradle plugins
3232
kotlinGradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlinVersion" }
33-
androidGradlePlugin = { module = "com.android.tools.build:gradle", version = "7.4.2" }
33+
androidGradlePlugin = { module = "com.android.tools.build:gradle", version = "8.3.2" }
3434
mokoResourcesGradlePlugin = { module = "dev.icerock.moko:resources-generator", version.ref = "mokoResourcesVersion" }
35-
mokoGradlePlugin = { module = "dev.icerock.moko:moko-gradle-plugin", version = "0.3.0" }
35+
mokoGradlePlugin = { module = "dev.icerock.moko:moko-gradle-plugin", version = "0.4.1" }

0 commit comments

Comments
 (0)