Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add iOS frontend for Counter sample. #16

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ out/

local.properties

### Xcode ###
xcuserdata/

### vim ###
*.swp

Expand Down
9 changes: 8 additions & 1 deletion samples/counter/core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ repositories {
kotlin {
js()
jvm()
iosX64("ios")
iosX64("ios") {
binaries {
framework("CounterCore") {
export(project(":oolong"))
transitiveExport = true
}
}
}
linuxX64("linux")
macosX64("macOS")
mingwX64("windows")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package counter

import oolong.Dispose
import oolong.Init
import oolong.Oolong
import oolong.Render
import oolong.Update
import oolong.View
import oolong.util.effect.withoutEffects
Expand Down Expand Up @@ -41,4 +44,8 @@ object Counter {
)
}

}
fun runtime(render: Render<Props>): Dispose {
return Oolong.runtime(init, update, view, render)
}

}
Loading