Skip to content

Commit bbd5f2a

Browse files
committed
chore: rework turbo repo config
1 parent 15b08f4 commit bbd5f2a

18 files changed

Lines changed: 123 additions & 40 deletions

File tree

apps/AndroidApp/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "@callstack/brownfield-example-android-app",
3+
"version": "0.0.1",
4+
"private": true,
5+
"scripts": {
6+
"build:example:android-consumer": "./gradlew assembleDebug"
7+
}
8+
}

apps/AndroidApp/turbo.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build:example:android-consumer": {
6+
"inputs": [
7+
"apps/AndroidApp/app",
8+
"apps/AndroidApp/build.gradle",
9+
"apps/AndroidApp/settings.gradle",
10+
"~/.m2/repository/com/rnapp/brownfieldlib/**/*.aar"
11+
],
12+
"outputs": ["app/build"]
13+
}
14+
}
15+
}

apps/RNApp/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"scripts": {
66
"android": "react-native run-android",
77
"ios": "react-native run-ios",
8-
"build:android": "react-native build-android",
9-
"build:ios": "react-native build-ios",
8+
"build:example:android-rn": "react-native build-android",
9+
"build:example:ios-rn": "react-native build-ios",
1010
"lint": "eslint .",
1111
"start": "react-native start",
1212
"test": "jest"

apps/RNApp/turbo.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://turbo.build/schema.json",
33
"extends": ["//"],
44
"tasks": {
5-
"build:android": {
5+
"build:example:android-rn": {
66
"dependsOn": ["build:brownfield"],
77
"env": ["JAVA_HOME", "ANDROID_NDK", "ANDROID_SDK", "ANDROID_HOME"],
88
"inputs": [
@@ -14,7 +14,7 @@
1414
],
1515
"outputs": []
1616
},
17-
"build:ios": {
17+
"build:example:ios-rn": {
1818
"dependsOn": ["build:brownfield"],
1919
"env": ["RCT_NEW_ARCH_ENABLED"],
2020
"inputs": [

apps/iOSApp/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build

apps/iOSApp/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "@callstack/brownfield-example-ios-app",
3+
"version": "0.0.1",
4+
"private": true,
5+
"scripts": {
6+
"build:consumer:ios": "xcodebuild -project \"Brownfield iOS App.xcodeproj\" -scheme \"Brownfield iOS App\" -configuration Release -sdk iphonesimulator build CODE_SIGNING_ALLOWED=NO -derivedDataPath ./build"
7+
}
8+
}

apps/iOSApp/turbo.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build:consumer:ios": {
6+
"inputs": [
7+
"apps/iOSApp/Brownfield iOS App",
8+
"apps/iOSApp/Brownfield iOS App.xcodeproj",
9+
"apps/RNApp/ios/out/Release/*.xcframework"
10+
],
11+
"outputs": ["build"]
12+
}
13+
}
14+
}

apps/tester-integrated/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
!.yarn/releases
55
!.yarn/sdks
66
!.yarn/versions
7+
8+
build

apps/tester-integrated/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {
6-
"start": "react-native start"
6+
"start": "react-native start",
7+
"build:tester-integrated:android": "cd kotlin && ./gradlew assembleDebug",
8+
"build:tester-integrated:ios": "cd swift && xcodebuild -workspace SwiftExample.xcworkspace -scheme SwiftExample -configuration Release -sdk iphonesimulator build CODE_SIGNING_ALLOWED=NO -derivedDataPath ./build"
79
},
810
"dependencies": {
911
"@callstack/react-native-brownfield": "*",

apps/tester-integrated/swift/Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2438,7 +2438,7 @@ PODS:
24382438
- React-perflogger (= 0.82.1)
24392439
- React-utils (= 0.82.1)
24402440
- SocketRocket
2441-
- RNScreens (4.18.0):
2441+
- RNScreens (4.19.0):
24422442
- boost
24432443
- DoubleConversion
24442444
- fast_float
@@ -2465,10 +2465,10 @@ PODS:
24652465
- ReactCodegen
24662466
- ReactCommon/turbomodule/bridging
24672467
- ReactCommon/turbomodule/core
2468-
- RNScreens/common (= 4.18.0)
2468+
- RNScreens/common (= 4.19.0)
24692469
- SocketRocket
24702470
- Yoga
2471-
- RNScreens/common (4.18.0):
2471+
- RNScreens/common (4.19.0):
24722472
- boost
24732473
- DoubleConversion
24742474
- fast_float
@@ -2814,9 +2814,9 @@ SPEC CHECKSUMS:
28142814
ReactBrownfield: 10f9f7370cd8bd6ef30eb9c736d774f9d17565f7
28152815
ReactCodegen: 878add6c7d8ff8cea87697c44d29c03b79b6f2d9
28162816
ReactCommon: 804dc80944fa90b86800b43c871742ec005ca424
2817-
RNScreens: d821082c6dd1cb397cc0c98b026eeafaa68be479
2817+
RNScreens: ffbb0296608eb3560de641a711bbdb663ed1f6b4
28182818
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
2819-
Yoga: 689c8e04277f3ad631e60fe2a08e41d411daf8eb
2819+
Yoga: 8e01cef9947ca77f0477a098f0b32848a8e448c6
28202820

28212821
PODFILE CHECKSUM: c4add71d30d7b14523f41a732fbf4937f4edbe0f
28222822

0 commit comments

Comments
 (0)