Skip to content

Commit 2e8ae49

Browse files
feat: add RockApp as hostAppName to ContentView pragma
1 parent 684db6b commit 2e8ae49

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

apps/AppleApp/Brownfield Apple App.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@
13081308
SDKROOT = auto;
13091309
STRING_CATALOG_GENERATE_SYMBOLS = YES;
13101310
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator";
1311-
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited)";
1311+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) USE_ROCK_HOST";
13121312
SWIFT_APPROACHABLE_CONCURRENCY = YES;
13131313
SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;
13141314
SWIFT_EMIT_LOC_STRINGS = YES;
@@ -1356,7 +1356,7 @@
13561356
SDKROOT = auto;
13571357
STRING_CATALOG_GENERATE_SYMBOLS = YES;
13581358
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator";
1359-
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited)";
1359+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) USE_ROCK_HOST";
13601360
SWIFT_APPROACHABLE_CONCURRENCY = YES;
13611361
SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;
13621362
SWIFT_EMIT_LOC_STRINGS = YES;

apps/AppleApp/Brownfield Apple App/components/ContentView.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,19 @@ let initialState = BrownfieldStore(
1616

1717
#if USE_EXPO_HOST
1818
private let hostAppName = "iOS Expo"
19+
#elseif USE_ROCK_HOST
20+
private let hostAppName = "iOS Rock"
1921
#else
2022
private let hostAppName = "iOS Vanilla"
2123
#endif
2224

2325
// The packaged brownfield example surface is registered under `RNApp`
2426
// for both the plain React Native and Expo example apps.
27+
#if USE_ROCK_HOST
28+
private let reactNativeModuleName = "RockApp"
29+
#else
2530
private let reactNativeModuleName = "RNApp"
31+
#endif
2632

2733
struct ContentView: View {
2834
var body: some View {

0 commit comments

Comments
 (0)