Skip to content

Commit

Permalink
Rename the multiplatform framework (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
gchristov authored Mar 24, 2024
1 parent 41d48db commit 0b044e9
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 12 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,11 @@ jobs:
- name: Set up Xcode version
run: sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }}.app
- name: Set up Xcode
uses: mikehardy/buildcache-action@v2
- name: Compile iOS app
uses: irgaly/xcode-cache@v1
with:
key: ios-check-build-${{ github.workflow }}-${{ github.sha }}
restore-keys: ios-check-build-${{ github.workflow }}-
- name: Compile iOS appp
run: |
cd ios &&
set -o pipefail &&
Expand All @@ -102,8 +105,8 @@ jobs:
name: iOS Build
path: |
ios/xcodebuild.log
~/Library/**/app.app
~/Library/**/app.app.dSYM
~/Library/Developer/Xcode/DerivedData/**/*.app
~/Library/Developer/Xcode/DerivedData/**/*.app.dSYM
**/build
**/secrets.properties
Expand Down Expand Up @@ -134,7 +137,10 @@ jobs:
- name: Set up Xcode version
run: sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }}.app
- name: Set up Xcode
uses: mikehardy/buildcache-action@v2
uses: irgaly/xcode-cache@v1
with:
key: ios-check-test-${{ github.workflow }}-${{ github.sha }}
restore-keys: ios-check-test-${{ github.workflow }}-
- name: iOS tests
run: |
cd ios &&
Expand Down
2 changes: 1 addition & 1 deletion ios/app/NewsfeedApp.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import SwiftUI
import CommonSwiftUi
import Feed
import KmmShared
import NewsfeedMultiplatform

/**
Entry point of the app.
Expand Down
2 changes: 1 addition & 1 deletion ios/feed/feed/FeedScreen.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SwiftUI
import KmmShared
import NewsfeedMultiplatform
import Post
import CommonSwiftUi

Expand Down
2 changes: 1 addition & 1 deletion ios/feed/tests/FeedTestHostApp.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import SwiftUI
import CommonSwiftUi
import Feed
import KmmShared
import NewsfeedMultiplatform

/*
App to setup and run the UI tests for this module using a launch environment
Expand Down
2 changes: 1 addition & 1 deletion ios/post/post/PostScreen.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SwiftUI
import KmmShared
import NewsfeedMultiplatform
import CommonSwiftUi

public struct PostScreen: View {
Expand Down
2 changes: 1 addition & 1 deletion ios/post/tests/PostTestHostApp.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import SwiftUI
import CommonSwiftUi
import Post
import KmmShared
import NewsfeedMultiplatform

/*
App to setup and run the UI tests for this module using a launch environment
Expand Down
4 changes: 2 additions & 2 deletions multiplatform/umbrella/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ kotlin {
iosSimulatorArm64()
).forEach {
it.binaries.framework {
baseName = "KmmShared"
baseName = "NewsfeedMultiplatform"
// Both dynamic frameworks and -lsqlite3 are required for SQLDelight, otherwise we get linker errors
// TODO: Adding -lsqlite3 to Other Linked Flags in Xcode fixes the issue and we can use a static lib then
freeCompilerArgs = freeCompilerArgs + arrayOf("-linker-options", "-lsqlite3")
linkerOpts("-lsqlite3")
isStatic = false
exportedDependencies.forEach { dependency -> export(dependency) }
}
Expand Down

0 comments on commit 0b044e9

Please sign in to comment.