Skip to content

Commit

Permalink
Fix iOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
christiandeange committed Apr 26, 2024
1 parent bebfcbd commit 4346ff2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@ jobs:
check-latest: true

- name: Assemble iOS
run: ./gradlew clean :app:ios:iosSimulatorArm64MainKlibrary --no-daemon --stacktrace
uses: mxcl/xcodebuild@v1
with:
platform: iOS
action: build
scheme: ozone
configuration: debug
working-directory: app/iosApp/

assemble-js:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions app/iosApp/ozone/ContentView.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SwiftUI
import ios
import OzoneIos

struct ContentView: View {
var body: some View {
Expand All @@ -9,7 +9,7 @@ struct ContentView: View {

struct ComposeViewControllerToSwiftUI: UIViewControllerRepresentable {
func makeUIViewController(context: Context) -> UIViewController {
return ios.MainViewControllerKt.MainViewController()
return OzoneIos.MainViewControllerKt.MainViewController()
}

func updateUIViewController(_ uiViewController: UIViewController, context: Context) {
Expand Down
Empty file.
4 changes: 2 additions & 2 deletions app/iosApp/ozone/ozoneApp.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import SwiftUI
import ios
import OzoneIos

@main
struct ozoneApp: App {
init() {
ios.MainViewControllerKt.initialize()
OzoneIos.MainViewControllerKt.initialize()
}

var body: some Scene {
Expand Down

0 comments on commit 4346ff2

Please sign in to comment.