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 7873c4d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
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
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 7873c4d

Please sign in to comment.