Skip to content

Commit

Permalink
build: speedup sample app installing local SDK (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
levibostian authored Aug 31, 2023
1 parent 77b60d7 commit ba04fd8
Show file tree
Hide file tree
Showing 10 changed files with 78 additions and 13,724 deletions.
3 changes: 3 additions & 0 deletions Apps/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Because the sample apps install the RN SDK from a local file path, every time that someone makes a change to the RN SDK source code, all sample app lock files will be changed. This can make git commits noisey. To avoid this, we ignore all lock files in the sample apps. This is not recommended for production apps.
package-lock.json

# Config files
#
env.js
Expand Down
20 changes: 8 additions & 12 deletions Apps/APN/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,8 @@ PODS:
- React-jsinspector (0.72.4)
- React-logger (0.72.4):
- glog
- react-native-safe-area-context (4.5.3):
- RCT-Folly
- RCTRequired
- RCTTypeSafety
- react-native-safe-area-context (4.7.1):
- React-Core
- ReactCommon/turbomodule/core
- React-NativeModulesApple (0.72.4):
- hermes-engine
- React-callinvoker
Expand Down Expand Up @@ -462,15 +458,15 @@ PODS:
- React-jsi (= 0.72.4)
- React-logger (= 0.72.4)
- React-perflogger (= 0.72.4)
- RNCAsyncStorage (1.18.2):
- RNCAsyncStorage (1.19.3):
- React-Core
- RNCClipboard (1.11.2):
- React-Core
- RNCPushNotificationIOS (1.11.0):
- React-Core
- RNDeviceInfo (10.7.0):
- RNDeviceInfo (10.8.0):
- React-Core
- RNGestureHandler (1.10.3):
- RNGestureHandler (2.12.1):
- React-Core
- RNReanimated (3.2.0):
- DoubleConversion
Expand Down Expand Up @@ -708,7 +704,7 @@ SPEC CHECKSUMS:
React-jsiexecutor: c7f826e40fa9cab5d37cab6130b1af237332b594
React-jsinspector: aaed4cf551c4a1c98092436518c2d267b13a673f
React-logger: da1ebe05ae06eb6db4b162202faeafac4b435e77
react-native-safe-area-context: b8979f5eda6ed5903d4dbc885be3846ea3daa753
react-native-safe-area-context: 9697629f7b2cda43cf52169bb7e0767d330648c2
React-NativeModulesApple: edb5ace14f73f4969df6e7b1f3e41bef0012740f
React-perflogger: 496a1a3dc6737f964107cb3ddae7f9e265ddda58
React-RCTActionSheet: 02904b932b50e680f4e26e7a686b33ebf7ef3c00
Expand All @@ -726,11 +722,11 @@ SPEC CHECKSUMS:
React-runtimescheduler: 4941cc1b3cf08b792fbf666342c9fc95f1969035
React-utils: b79f2411931f9d3ea5781404dcbb2fa8a837e13a
ReactCommon: 4b2bdcb50a3543e1c2b2849ad44533686610826d
RNCAsyncStorage: ddc4ee162bfd41b0d2c68bf2d95acd81dd7f1f93
RNCAsyncStorage: c913ede1fa163a71cea118ed4670bbaaa4b511bb
RNCClipboard: 3f0451a8100393908bea5c5c5b16f96d45f30bfc
RNCPushNotificationIOS: 64218f3c776c03d7408284a819b2abfda1834bc8
RNDeviceInfo: 25d818c85db769cc0e7083d39efaa01a6f450df3
RNGestureHandler: a479ebd5ed4221a810967000735517df0d2db211
RNDeviceInfo: 5795b418ed3451ebcaf39384e6cf51f60cb931c9
RNGestureHandler: c0d04458598fcb26052494ae23dda8f8f5162b13
RNReanimated: ede9ef73159ec1d4db04290f4ffc4a36c5fc1156
RNScreens: b21dc57dfa2b710c30ec600786a3fc223b1b92e7
RNSnackbar: 3727b42bf6c4314a53c18185b5203e915a4ab020
Expand Down
9 changes: 6 additions & 3 deletions Apps/APN/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,24 @@
"bundle:ios": "react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios",
"clean-install": "./scripts/clean-install-dependencies.sh",
"clean-install-android": "./scripts/clean-run-android.sh",
"clean-install-ios": "./scripts/clean-run-ios.sh"
"clean-install-ios": "./scripts/clean-run-ios.sh",
"dev:update": "../../scripts/dev:update.sh",
"postinstall": "pod update --project-directory=ios",
"preinstall": "npm run dev:update"
},
"dependencies": {
"@react-native-async-storage/async-storage": "^1.17.11",
"@react-native-clipboard/clipboard": "^1.11.2",
"@react-native-community/push-notification-ios": "^1.10.1",
"@react-navigation/native": "^6.0.10",
"@react-navigation/native-stack": "^6.6.2",
"customerio-reactnative": "../..",
"customerio-reactnative": "file:../../customerio-reactnative.tgz",
"expo": "~42.0.1",
"expo-splash-screen": "~0.11.2",
"expo-status-bar": "~1.0.4",
"expo-updates": "~0.8.1",
"react": "18.2.0",
"react-dom": "16.13.1",
"react-dom": "^18.2.0",
"react-native": "0.72.4",
"react-native-device-info": "^10.7.0",
"react-native-gesture-handler": "^2.12.1",
Expand Down
7,663 changes: 0 additions & 7,663 deletions Apps/APN/yarn.lock

This file was deleted.

24 changes: 12 additions & 12 deletions Apps/FCM/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,18 @@ PODS:
- React-Core (= 0.72.4)
- React-jsi (= 0.72.4)
- ReactCommon/turbomodule/core (= 0.72.4)
- FirebaseCore (10.13.0):
- FirebaseCore (10.14.0):
- FirebaseCoreInternal (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/Logger (~> 7.8)
- FirebaseCoreInternal (10.13.0):
- FirebaseCoreInternal (10.14.0):
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- FirebaseInstallations (10.13.0):
- FirebaseInstallations (10.14.0):
- FirebaseCore (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
- PromisesObjC (~> 2.1)
- FirebaseMessaging (10.13.0):
- FirebaseMessaging (10.14.0):
- FirebaseCore (~> 10.0)
- FirebaseInstallations (~> 10.0)
- GoogleDataTransport (~> 9.2)
Expand Down Expand Up @@ -506,11 +506,11 @@ PODS:
- React-jsi (= 0.72.4)
- React-logger (= 0.72.4)
- React-perflogger (= 0.72.4)
- RNCAsyncStorage (1.19.1):
- RNCAsyncStorage (1.19.3):
- React-Core
- RNCClipboard (1.11.2):
- React-Core
- RNDeviceInfo (10.8.0):
- RNDeviceInfo (10.9.0):
- React-Core
- RNGestureHandler (2.12.1):
- React-Core
Expand Down Expand Up @@ -707,10 +707,10 @@ SPEC CHECKSUMS:
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
FBLazyVector: 5d4a3b7f411219a45a6d952f77d2c0a6c9989da5
FBReactNativeSpec: 3fc2d478e1c4b08276f9dd9128f80ec6d5d85c1f
FirebaseCore: 9948a31ff2c6cf323f9b040068201a95d271b68d
FirebaseCoreInternal: b342e37cd4f5b4454ec34308f073420e7920858e
FirebaseInstallations: b28af1b9f997f1a799efe818c94695a3728c352f
FirebaseMessaging: c2b782a6af3058b6e53ac2a6eaab84c5786200c8
FirebaseCore: 6fc17ac9f03509d51c131298aacb3ee5698b4f02
FirebaseCoreInternal: d558159ee6cc4b823c2296ecc193de9f6d9a5bb3
FirebaseInstallations: f672b1eda64e6381c21d424a2f680a943fd83f3b
FirebaseMessaging: 1077a4499f0c0a140b9a2e34fe08a1acc806b36d
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
GoogleDataTransport: 54dee9d48d14580407f8f5fbf2f496e92437a2f2
Expand Down Expand Up @@ -752,9 +752,9 @@ SPEC CHECKSUMS:
React-runtimescheduler: 4941cc1b3cf08b792fbf666342c9fc95f1969035
React-utils: b79f2411931f9d3ea5781404dcbb2fa8a837e13a
ReactCommon: 4b2bdcb50a3543e1c2b2849ad44533686610826d
RNCAsyncStorage: f47fe18526970a69c34b548883e1aeceb115e3e1
RNCAsyncStorage: c913ede1fa163a71cea118ed4670bbaaa4b511bb
RNCClipboard: 3f0451a8100393908bea5c5c5b16f96d45f30bfc
RNDeviceInfo: 5795b418ed3451ebcaf39384e6cf51f60cb931c9
RNDeviceInfo: 02ea8b23e2280fa18e00a06d7e62804d74028579
RNGestureHandler: c0d04458598fcb26052494ae23dda8f8f5162b13
RNScreens: b21dc57dfa2b710c30ec600786a3fc223b1b92e7
RNSnackbar: 3727b42bf6c4314a53c18185b5203e915a4ab020
Expand Down
7 changes: 5 additions & 2 deletions Apps/FCM/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint .",
"start": "react-native start"
"start": "react-native start",
"dev:update": "../../scripts/dev:update.sh",
"postinstall": "pod update --project-directory=ios",
"preinstall": "npm run dev:update"
},
"dependencies": {
"@react-native-async-storage/async-storage": "^1.19.1",
"@react-native-clipboard/clipboard": "^1.11.2",
"@react-navigation/native": "^6.1.7",
"@react-navigation/native-stack": "^6.9.13",
"customerio-reactnative": "../..",
"customerio-reactnative": "file:../../customerio-reactnative.tgz",
"react": "18.2.0",
"react-native": "0.72.4",
"react-native-device-info": "^10.8.0",
Expand Down
Loading

0 comments on commit ba04fd8

Please sign in to comment.