mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Fix iOS build
This commit is contained in:
@@ -10,6 +10,7 @@ json = "1.7.1"
|
||||
composeGradle = "1.6.11"
|
||||
|
||||
# Compose Libraries
|
||||
parcelize = "0.9.0"
|
||||
voyager = "1.0.0"
|
||||
accompanist = "0.30.1"
|
||||
googleAccompanist = "0.30.1"
|
||||
@@ -163,6 +164,7 @@ korge-foundation = { module = "com.soywiz.korge:korge-foundation", version.ref =
|
||||
# Localization
|
||||
moko-core = { module = "dev.icerock.moko:resources", version.ref = "moko" }
|
||||
moko-compose = { module = "dev.icerock.moko:resources-compose", version.ref = "moko" }
|
||||
moko-parcelize = { module = "dev.icerock.moko:parcelize", version.ref = "parcelize" }
|
||||
|
||||
# Optimizer
|
||||
proguard = { module = "com.guardsquare:proguard-gradle", version.ref = "proguard" }
|
||||
|
||||
@@ -53,6 +53,12 @@ kotlin {
|
||||
implementation(kotlin("test-annotations-common"))
|
||||
}
|
||||
}
|
||||
|
||||
getByName("iosMain") {
|
||||
dependencies {
|
||||
implementation(libs.moko.parcelize)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -134,3 +134,5 @@ dependencies {
|
||||
buildkonfig {
|
||||
packageName = "ca.gosyer.jui.ios.build"
|
||||
}
|
||||
|
||||
tasks.register("kspCommonMainKotlinMetadata")
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
package ca.gosyer.jui.ios
|
||||
|
||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||
|
||||
actual fun create(context: ContextWrapper): AppComponent {
|
||||
return AppComponent.create(context)
|
||||
}
|
||||
@@ -42,3 +42,5 @@ abstract class AppComponent(
|
||||
.also { appComponentInstance = it }
|
||||
}
|
||||
}
|
||||
|
||||
expect fun create(context: ContextWrapper): AppComponent
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
package ca.gosyer.jui.ios
|
||||
|
||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||
|
||||
actual fun create(context: ContextWrapper): AppComponent {
|
||||
return AppComponent.create(context)
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
package ca.gosyer.jui.ios
|
||||
|
||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||
|
||||
actual fun create(context: ContextWrapper): AppComponent {
|
||||
return AppComponent.create(context)
|
||||
}
|
||||
@@ -19,7 +19,7 @@ actual fun getLicenses(): Libs? {
|
||||
null,
|
||||
) {
|
||||
withIOContext {
|
||||
val json = MR.files.aboutlibraries.readText()
|
||||
val json = MR.files.aboutlibraries_json.readText()
|
||||
value = Libs.Builder().withJson(json).build()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import androidx.compose.ui.text.intl.Locale
|
||||
import platform.Foundation.NSString
|
||||
import platform.Foundation.localizedCaseInsensitiveCompare
|
||||
|
||||
actual class CollatorComparator : Comparator<String> {
|
||||
actual class CollatorComparator() : Comparator<String> {
|
||||
actual constructor(locale: Locale) : this()
|
||||
|
||||
actual override fun compare(
|
||||
|
||||
Reference in New Issue
Block a user