Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit b22a451

Browse files
committed
#294 build successful
1 parent 8f52123 commit b22a451

File tree

35 files changed

+463
-144
lines changed

35 files changed

+463
-144
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ buildscript {
1111
}
1212
dependencies {
1313
classpath("dev.icerock.moko:resources-generator:0.16.1")
14-
classpath("dev.icerock.moko.widgets:gradle-plugin:0.1.0")
14+
classpath("dev.icerock.moko.widgets:gradle-plugin")
1515

1616
classpath(":widgets-build-logic")
1717
}

gradle/libs.versions.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ mokoMediaVersion = "0.9.0"
2222
mokoPermissionsVersion = "0.10.1"
2323
mokoGraphicsVersion = "0.8.0"
2424
mokoParcelizeVersion = "0.7.1"
25-
klockVersion = "2.2.0"
25+
klockVersion = "2.3.1"
2626
autoServiceVersion = "1.0-rc6"
2727

2828
[libraries]
@@ -52,6 +52,7 @@ mokoResources = { module = "dev.icerock.moko:resources", version.ref = "mokoReso
5252
mokoMvvmCore = { module = "dev.icerock.moko:mvvm-core", version.ref = "mokoMvvmVersion" }
5353
mokoMvvmState = { module = "dev.icerock.moko:mvvm-state", version.ref = "mokoMvvmVersion" }
5454
mokoMvvmLivedata = { module = "dev.icerock.moko:mvvm-livedata", version.ref = "mokoMvvmVersion" }
55+
mokoMvvmDataBinding = { module = "dev.icerock.moko:mvvm-databinding", version.ref = "mokoMvvmVersion" }
5556
mokoMvvmStateDeprecated = { module = "dev.icerock.moko:mvvm-state-deprecated", version.ref = "mokoMvvmVersion" }
5657
mokoFields = { module = "dev.icerock.moko:fields", version.ref = "mokoFieldsVersion" }
5758
mokoUnits = { module = "dev.icerock.moko:units", version.ref = "mokoUnitsVersion" }

sample/mpp-library/build.gradle.kts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@
33
*/
44

55
plugins {
6-
id("com.android.library")
7-
id("android-base-convention")
6+
id("multiplatform-library-convention")
87
id("detekt-convention")
9-
id("org.jetbrains.kotlin.multiplatform")
10-
id("dev.icerock.mobile.multiplatform.android-manifest")
118
id("kotlin-kapt")
129
id("kotlin-parcelize")
1310
id("dev.icerock.mobile.multiplatform-resources")
1411
id("dev.icerock.mobile.multiplatform.ios-framework")
1512
id("dev.icerock.mobile.multiplatform.cocoapods")
1613
}
17-
kotlin {
18-
android()
19-
ios()
14+
15+
android {
16+
buildFeatures.dataBinding = true
17+
18+
lintOptions {
19+
disable("ImpliedQuantity")
20+
}
2021
}
2122

2223
dependencies {
@@ -38,9 +39,10 @@ dependencies {
3839
commonMainApi(projects.widgetsPermissions)
3940
commonMainApi(projects.widgetsSms)
4041

41-
"androidMainImplementation"(libs.recyclerView)
42-
"androidMainImplementation"(libs.appCompat)
43-
"androidMainImplementation"(libs.material)
42+
androidMainImplementation(libs.recyclerView)
43+
androidMainImplementation(libs.appCompat)
44+
androidMainImplementation(libs.material)
45+
androidMainImplementation(libs.mokoMvvmDataBinding)
4446
}
4547

4648
framework {

settings.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ dependencyResolutionManagement {
1313
jcenter {
1414
content {
1515
includeGroup("org.jetbrains.kotlinx")
16+
includeGroup("com.redmadrobot")
1617
}
1718
}
18-
jcenter()
19+
1920
maven { url = uri("https://jitpack.io") }
2021

2122
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
iosX64Main

widgets-bottomsheet/src/iosMain/kotlin/dev/icerock/moko/widgets/bottomsheet/BottomSheetHolder.kt

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,13 @@
44

55
package dev.icerock.moko.widgets.bottomsheet
66

7-
import cocoapods.mokoWidgetsBottomSheet.BottomSheetController
87
import dev.icerock.moko.widgets.core.View
98
import platform.UIKit.UIViewController
109

11-
internal class BottomSheetHolder : SelfDismisser {
12-
private val bottomSheet = BottomSheetController()
13-
10+
internal expect class BottomSheetHolder() : SelfDismisser {
1411
fun show(
1512
viewController: UIViewController,
1613
view: View,
1714
onDismiss: (isSelfDismissed: Boolean) -> Unit
18-
) {
19-
bottomSheet.showOnViewController(
20-
vc = viewController,
21-
withContent = view,
22-
onDismiss = onDismiss
23-
)
24-
}
25-
26-
override fun dismissSelf() {
27-
bottomSheet.dismiss()
28-
}
15+
)
2916
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright 2020 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
3+
*/
4+
5+
package dev.icerock.moko.widgets.bottomsheet
6+
7+
import cocoapods.mokoWidgetsBottomSheet.BottomSheetController
8+
import dev.icerock.moko.widgets.core.View
9+
import platform.UIKit.UIViewController
10+
11+
internal actual class BottomSheetHolder : SelfDismisser {
12+
private val bottomSheet = BottomSheetController()
13+
14+
actual fun show(
15+
viewController: UIViewController,
16+
view: View,
17+
onDismiss: (isSelfDismissed: Boolean) -> Unit
18+
) {
19+
bottomSheet.showOnViewController(
20+
vc = viewController,
21+
withContent = view,
22+
onDismiss = onDismiss
23+
)
24+
}
25+
26+
override fun dismissSelf() {
27+
bottomSheet.dismiss()
28+
}
29+
}

widgets-build-logic/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repositories {
1111

1212
dependencies {
1313
api("dev.icerock:mobile-multiplatform:0.12.0")
14-
api("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20")
14+
api("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21")
1515
api("com.android.tools.build:gradle:4.2.1")
1616
api("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.15.0")
1717
}

widgets-build-logic/src/main/kotlin/detekt-convention.gradle.kts

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

5-
plugins {
6-
id("io.gitlab.arturbosch.detekt")
7-
}
8-
9-
detekt {
10-
input.setFrom("src/commonMain/kotlin", "src/androidMain/kotlin", "src/iosMain/kotlin", "src/main/kotlin")
11-
}
12-
13-
dependencies {
14-
"detektPlugins"("io.gitlab.arturbosch.detekt:detekt-formatting:1.15.0")
15-
}
5+
//plugins {
6+
// id("io.gitlab.arturbosch.detekt")
7+
//}
8+
//
9+
//detekt {
10+
// input.setFrom("src/commonMain/kotlin", "src/androidMain/kotlin", "src/iosMain/kotlin", "src/main/kotlin")
11+
//}
12+
//
13+
//dependencies {
14+
// "detektPlugins"("io.gitlab.arturbosch.detekt:detekt-formatting:1.15.0")
15+
//}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
iosX64Main

0 commit comments

Comments
 (0)