Skip to content

Commit db1c5d5

Browse files
committed
feat: bootstrap and link with native apps
1 parent 41c2c31 commit db1c5d5

29 files changed

Lines changed: 1020 additions & 89 deletions

.changeset/config.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
"@callstack/brownfield-example-rn-app",
2525
"@callstack/brownfield-example-expo-app-54",
2626
"@callstack/brownfield-example-expo-app-55",
27+
"@callstack/brownfield-example-expo-app-56",
28+
"@callstack/brownfield-example-expo-app-57",
2729
"@callstack/brownfield-gradle-plugin-react"
2830
],
2931
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {

apps/AndroidApp/app/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ android {
3636
create("expo55") {
3737
dimension = "app"
3838
}
39+
create("expo57") {
40+
dimension = "app"
41+
}
3942
create("expo56") {
4043
dimension = "app"
4144
}
@@ -78,6 +81,7 @@ dependencies {
7881
implementation(libs.androidx.compose.ui.tooling.preview)
7982
implementation(libs.androidx.compose.material3)
8083
implementation(libs.androidx.appcompat)
84+
add("expo57Implementation", libs.brownfieldlib.expo57)
8185
add("expo55Implementation", libs.brownfieldlib.expo55)
8286
add("expo56Implementation", libs.brownfieldlib.expo56)
8387
add("expo54Implementation", libs.brownfieldlib.expo54)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package com.callstack.brownfield.android.example
2+
3+
typealias BrownfieldStore = com.callstack.rnbrownfield.demo.expoapp57.BrownfieldStore
4+
typealias User = com.callstack.rnbrownfield.demo.expoapp57.User
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.callstack.brownfield.android.example
2+
3+
object ReactNativeConstants {
4+
const val MAIN_MODULE_NAME = "main"
5+
const val APP_NAME = "Android (Expo 57)"
6+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package com.callstack.brownfield.android.example
2+
3+
typealias ReactNativeHostManager = com.callstack.rnbrownfield.demo.expoapp57.ReactNativeHostManager

apps/AndroidApp/gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ gson = "2.13.2"
1616

1717
[libraries]
1818
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
19+
brownfieldlib-expo57 = { module = "com.callstack.rnbrownfield.demo.expoapp57:brownfieldlib", version.ref = "brownfieldlib" }
1920
brownfieldlib-expo56 = { module = "com.callstack.rnbrownfield.demo.expoapp56:brownfieldlib", version.ref = "brownfieldlib" }
2021
brownfieldlib-expo55 = { module = "com.callstack.rnbrownfield.demo.expoapp55:brownfieldlib", version.ref = "brownfieldlib" }
2122
brownfieldlib-expobeta = { module = "com.callstack.rnbrownfield.demo.expobeta:brownfieldlib", version.ref = "brownfieldlib" }

apps/AndroidApp/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {
6-
"build:example:android-consumer:expo": "./gradlew assembleExpo56Release",
6+
"build:example:android-consumer:expo": "./gradlew assembleExpo57Release",
7+
"build:example:android-consumer:expo57": "./gradlew assembleExpo57Release",
78
"build:example:android-consumer:expo56": "./gradlew assembleExpo56Release",
89
"build:example:android-consumer:expo55": "./gradlew assembleExpo55Release",
910
"build:example:android-consumer:expobeta": "./gradlew assembleExpobetaRelease",

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

Lines changed: 338 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "2650"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES"
8+
buildArchitectures = "Automatic">
9+
<BuildActionEntries>
10+
<BuildActionEntry
11+
buildForTesting = "YES"
12+
buildForRunning = "YES"
13+
buildForProfiling = "YES"
14+
buildForArchiving = "YES"
15+
buildForAnalyzing = "YES">
16+
<BuildableReference
17+
BuildableIdentifier = "primary"
18+
BlueprintIdentifier = "617FBE102FF7AA9D00348DD8"
19+
BuildableName = "Brownfield Apple App (ExpoApp57).app"
20+
BlueprintName = "Brownfield Apple App (ExpoApp57)"
21+
ReferencedContainer = "container:Brownfield Apple App.xcodeproj">
22+
</BuildableReference>
23+
</BuildActionEntry>
24+
</BuildActionEntries>
25+
</BuildAction>
26+
<TestAction
27+
buildConfiguration = "Debug Expo"
28+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
29+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
30+
shouldUseLaunchSchemeArgsEnv = "YES"
31+
shouldAutocreateTestPlan = "YES">
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug Expo"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
allowLocationSimulation = "YES"
43+
queueDebuggingEnableBacktraceRecording = "Yes">
44+
<BuildableProductRunnable
45+
runnableDebuggingMode = "0">
46+
<BuildableReference
47+
BuildableIdentifier = "primary"
48+
BlueprintIdentifier = "617FBE102FF7AA9D00348DD8"
49+
BuildableName = "Brownfield Apple App (ExpoApp57).app"
50+
BlueprintName = "Brownfield Apple App (ExpoApp57)"
51+
ReferencedContainer = "container:Brownfield Apple App.xcodeproj">
52+
</BuildableReference>
53+
</BuildableProductRunnable>
54+
</LaunchAction>
55+
<ProfileAction
56+
buildConfiguration = "Release Expo"
57+
shouldUseLaunchSchemeArgsEnv = "YES"
58+
savedToolIdentifier = ""
59+
useCustomWorkingDirectory = "NO"
60+
debugDocumentVersioning = "YES">
61+
<BuildableProductRunnable
62+
runnableDebuggingMode = "0">
63+
<BuildableReference
64+
BuildableIdentifier = "primary"
65+
BlueprintIdentifier = "617FBE102FF7AA9D00348DD8"
66+
BuildableName = "Brownfield Apple App (ExpoApp57).app"
67+
BlueprintName = "Brownfield Apple App (ExpoApp57)"
68+
ReferencedContainer = "container:Brownfield Apple App.xcodeproj">
69+
</BuildableReference>
70+
</BuildableProductRunnable>
71+
</ProfileAction>
72+
<AnalyzeAction
73+
buildConfiguration = "Debug Expo">
74+
</AnalyzeAction>
75+
<ArchiveAction
76+
buildConfiguration = "Release Expo"
77+
revealArchiveInOrganizer = "YES">
78+
</ArchiveAction>
79+
</Scheme>

apps/AppleApp/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"build:example:ios-consumer:expo": "yarn build:example:ios-consumer:expo56",
7+
"build:example:ios-consumer:expo": "yarn build:example:ios-consumer:expo57",
8+
"build:example:ios-consumer:expo57": "node prepareXCFrameworks.js --appName ExpoApp57 && yarn internal::build::common -scheme \"Brownfield Apple App Expo 57\" -configuration Release",
89
"build:example:ios-consumer:expo56": "node prepareXCFrameworks.js --appName ExpoApp56 && yarn internal::build::common -scheme \"Brownfield Apple App Expo 56\" -configuration Release",
910
"build:example:ios-consumer:expo54": "node prepareXCFrameworks.js --appName ExpoApp54 && yarn internal::build::common -scheme \"Brownfield Apple App Expo 54\" -configuration Release",
1011
"build:example:ios-consumer:expo55": "node prepareXCFrameworks.js --appName ExpoApp55 && yarn internal::build::common -scheme \"Brownfield Apple App Expo 55\" -configuration Release",

0 commit comments

Comments
 (0)