File tree Expand file tree Collapse file tree 4 files changed +64
-0
lines changed
kmp-observableviewmodel-annotations
src/commonMain/kotlin/com/rickclephas/kmp/observableviewmodel Expand file tree Collapse file tree 4 files changed +64
-0
lines changed Original file line number Diff line number Diff line change 1+ import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
2+
3+ plugins {
4+ id(" kmp-observableviewmodel-kotlin-multiplatform" )
5+ id(" kmp-observableviewmodel-publish" )
6+ }
7+
8+ kotlin {
9+ explicitApi()
10+ jvmToolchain(11 )
11+
12+
13+ macosX64()
14+ macosArm64()
15+ iosArm64()
16+ iosX64()
17+ iosSimulatorArm64()
18+ watchosArm32()
19+ watchosArm64()
20+ watchosX64()
21+ watchosSimulatorArm64()
22+ watchosDeviceArm64()
23+ tvosArm64()
24+ tvosX64()
25+ tvosSimulatorArm64()
26+ jvm()
27+ js {
28+ browser()
29+ nodejs()
30+ }
31+ linuxArm64()
32+ linuxX64()
33+ mingwX64()
34+ @OptIn(ExperimentalWasmDsl ::class )
35+ wasmJs {
36+ browser()
37+ nodejs()
38+ d8()
39+ }
40+ }
Original file line number Diff line number Diff line change 1+ package com.rickclephas.kmp.observableviewmodel
2+
3+ import kotlin.experimental.ExperimentalObjCRefinement
4+ import kotlin.native.HidesFromObjC
5+
6+ /* *
7+ * Identifies observable `StateFlow` properties.
8+ */
9+ @Target(AnnotationTarget .PROPERTY )
10+ @Retention(AnnotationRetention .BINARY )
11+ @MustBeDocumented
12+ @OptIn(ExperimentalObjCRefinement ::class )
13+ @HidesFromObjC
14+ public annotation class ObservableState
Original file line number Diff line number Diff line change 1+ package com.rickclephas.kmp.observableviewmodel
2+
3+ /* *
4+ * Identifies observable `ViewModel`s.
5+ */
6+ @Target(AnnotationTarget .CLASS )
7+ @Retention(AnnotationRetention .BINARY )
8+ @MustBeDocumented
9+ public annotation class ObservableViewModel
Original file line number Diff line number Diff line change @@ -17,5 +17,6 @@ dependencyResolutionManagement {
1717
1818rootProject.name = " kmp-observableviewmodel"
1919
20+ include(" :kmp-observableviewmodel-annotations" )
2021include(" :kmp-observableviewmodel-core" )
2122include(" :kmp-observableviewmodel-properties" )
You can’t perform that action at this time.
0 commit comments