Skip to content

Commit 71c27b4

Browse files
authored
Merge pull request #248 from Resgrid/develop
RU-T50 Trying to fix build issues
2 parents ac129f0 + 7aac8fa commit 71c27b4

7 files changed

Lines changed: 405 additions & 1046 deletions

File tree

app.config.ts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
4444
supportsTablet: true,
4545
bundleIdentifier: Env.BUNDLE_ID,
4646
requireFullScreen: true,
47-
googleServicesFile: 'GoogleService-Info.plist',
4847
infoPlist: {
4948
UIBackgroundModes: ['remote-notification', 'audio', 'bluetooth-central', 'voip'],
5049
ITSAppUsesNonExemptEncryption: false,
@@ -54,6 +53,10 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
5453
LSApplicationQueriesSchemes: ['resgridunit'],
5554
},
5655
entitlements: {
56+
// Required for APNs registration. Previously added by the expo-notifications
57+
// plugin; set explicitly so removing/swapping plugins can never silently drop
58+
// it (which previously broke ALL iOS push — see docs/ios-foreground-notifications-fix.md).
59+
'aps-environment': 'production',
5760
...((Env.APP_ENV === 'production' || Env.APP_ENV === 'internal') && {
5861
'com.apple.developer.usernotifications.critical-alerts': true,
5962
'com.apple.developer.usernotifications.time-sensitive': true,
@@ -169,13 +172,6 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
169172
},
170173
ios: {
171174
deploymentTarget: '18.1',
172-
useFrameworks: 'static',
173-
// Build React Native from source instead of the prebuilt
174-
// ReactNativeDependencies.xcframework. The prebuilt core does not
175-
// re-export RN's preprocessor macros (RCT_EXTERN, RCT_CONCAT) across
176-
// the static-framework module boundary, so RCT_EXPORT_MODULE() fails
177-
// to compile in third-party Obj-C modules like @react-native-firebase.
178-
buildReactNativeFromSource: true,
179175
},
180176
},
181177
],
@@ -223,12 +219,10 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
223219
'react-native-ble-manager',
224220
'@livekit/react-native-expo-plugin',
225221
'@config-plugins/react-native-webrtc',
226-
'./plugins/withWebRTCFrameworkFix.js',
227222
'@config-plugins/react-native-callkeep',
228-
'@react-native-firebase/app',
223+
'expo-notifications',
229224
'./customGradle.plugin.js',
230225
'./customManifest.plugin.js',
231-
'./plugins/withForegroundNotifications.js',
232226
'./plugins/withNotificationSounds.js',
233227
'./plugins/withMediaButtonModule.js',
234228
[

metro.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ config.resolver.resolveRequest = (context, moduleName, platform) => {
2727
// Native modules that need web shims
2828
const nativeModules = [
2929
'@notifee/react-native',
30-
'@react-native-firebase/messaging',
31-
'@react-native-firebase/app',
3230
'react-native-callkeep',
3331
'react-native-ble-manager',
3432
'@livekit/react-native',

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@
9898
"@notifee/react-native": "9.1.8",
9999
"@novu/react-native": "3.11.0",
100100
"@react-native-community/netinfo": "11.4.1",
101-
"@react-native-firebase/app": "23.5.0",
102-
"@react-native-firebase/messaging": "23.5.0",
103101
"@rnmapbox/maps": "10.2.10",
104102
"@semantic-release/git": "10.0.1",
105103
"@sentry/react-native": "8.10.0",
@@ -135,6 +133,7 @@
135133
"expo-localization": "17.0.8",
136134
"expo-location": "19.0.8",
137135
"expo-navigation-bar": "5.0.10",
136+
"expo-notifications": "0.32.16",
138137
"expo-router": "6.0.23",
139138
"expo-screen-orientation": "9.0.8",
140139
"expo-secure-store": "15.0.8",

0 commit comments

Comments
 (0)