diff --git a/ios/patching/001-social-app-ios-config.patch b/ios/patching/001-social-app-ios-config.patch index fbaa58e..e43a47a 100644 --- a/ios/patching/001-social-app-ios-config.patch +++ b/ios/patching/001-social-app-ios-config.patch @@ -1,5 +1,5 @@ diff --git a/app.config.js b/app.config.js -index 246d8abd3..349aefb3d 100644 +index 246d8abd3..add9ddd5e 100644 --- a/app.config.js +++ b/app.config.js @@ -18,10 +18,7 @@ module.exports = function (_config) { @@ -14,7 +14,7 @@ index 246d8abd3..349aefb3d 100644 // When testing local services, enter an ngrok (et al) domain here. It must use a standard HTTP/HTTPS port. ...(IS_DEV || IS_TESTFLIGHT ? [] : []), ] -@@ -33,27 +30,24 @@ module.exports = function (_config) { +@@ -33,9 +30,9 @@ module.exports = function (_config) { return { expo: { version: VERSION, @@ -27,11 +27,7 @@ index 246d8abd3..349aefb3d 100644 owner: 'blueskysocial', runtimeVersion: { policy: 'appVersion', - }, -- icon: './assets/app-icons/ios_icon_default_next.png', -+ icon: './assets/icon.png', - userInterfaceStyle: 'automatic', - primaryColor: '#1083fe', +@@ -46,7 +43,7 @@ module.exports = function (_config) { newArchEnabled: false, ios: { supportsTablet: false, @@ -40,15 +36,7 @@ index 246d8abd3..349aefb3d 100644 config: { usesNonExemptEncryption: false, }, -- icon: -- PLATFORM === 'web' // web build doesn't like .icon files -- ? './assets/app-icons/ios_icon_default_next.png' -- : './assets/app-icons/ios_icon_default.icon', -+ icon: './assets/icon.png', - infoPlist: { - UIBackgroundModes: ['remote-notification'], - NSCameraUsageDescription: -@@ -113,7 +107,7 @@ module.exports = function (_config) { +@@ -113,7 +110,7 @@ module.exports = function (_config) { entitlements: { 'com.apple.developer.kernel.increased-memory-limit': true, 'com.apple.developer.kernel.extended-virtual-addressing': true, @@ -57,15 +45,7 @@ index 246d8abd3..349aefb3d 100644 }, privacyManifests: { NSPrivacyCollectedDataTypes: [ -@@ -175,14 +169,14 @@ module.exports = function (_config) { - barStyle: 'light-content', - }, - android: { -- icon: './assets/app-icons/android_icon_default_next.png', -+ icon: './assets/icon.png', - adaptiveIcon: { - foregroundImage: './assets/icon-android-foreground.png', - monochromeImage: './assets/icon-android-monochrome.png', +@@ -182,7 +179,7 @@ module.exports = function (_config) { backgroundColor: '#006AFF', }, googleServicesFile: './google-services.json', @@ -74,7 +54,7 @@ index 246d8abd3..349aefb3d 100644 intentFilters: [ { action: 'VIEW', -@@ -190,7 +184,7 @@ module.exports = function (_config) { +@@ -190,7 +187,7 @@ module.exports = function (_config) { data: [ { scheme: 'https', @@ -83,7 +63,7 @@ index 246d8abd3..349aefb3d 100644 }, IS_DEV && { scheme: 'http', -@@ -213,9 +207,9 @@ module.exports = function (_config) { +@@ -213,9 +210,9 @@ module.exports = function (_config) { : undefined, codeSigningMetadata: UPDATES_ENABLED ? { @@ -96,7 +76,7 @@ index 246d8abd3..349aefb3d 100644 : undefined, checkAutomatically: 'NEVER', }, -@@ -225,7 +219,7 @@ module.exports = function (_config) { +@@ -225,7 +222,7 @@ module.exports = function (_config) { 'expo-web-browser', [ 'react-native-edge-to-edge', @@ -105,7 +85,7 @@ index 246d8abd3..349aefb3d 100644 ], USE_SENTRY && [ '@sentry/react-native/expo', -@@ -386,7 +380,7 @@ module.exports = function (_config) { +@@ -386,7 +383,7 @@ module.exports = function (_config) { }, }, ], @@ -114,34 +94,35 @@ index 246d8abd3..349aefb3d 100644 ['expo-location'], ].filter(Boolean), extra: { -@@ -397,26 +391,22 @@ module.exports = function (_config) { - appExtensions: [ - { - targetName: 'Share-with-Bluesky', +@@ -394,30 +391,7 @@ module.exports = function (_config) { + build: { + experimental: { + ios: { +- appExtensions: [ +- { +- targetName: 'Share-with-Bluesky', - bundleIdentifier: 'xyz.blueskyweb.app.Share-with-Bluesky', -+ bundleIdentifier: 'ai.syui.at.Share-with-Bluesky', - entitlements: { - 'com.apple.security.application-groups': [ +- entitlements: { +- 'com.apple.security.application-groups': [ - 'group.app.bsky', -+ 'group.ai.syui.at', - ], - }, - }, - { - targetName: 'BlueskyNSE', +- ], +- }, +- }, +- { +- targetName: 'BlueskyNSE', - bundleIdentifier: 'xyz.blueskyweb.app.BlueskyNSE', -+ bundleIdentifier: 'ai.syui.at.BlueskyNSE', - entitlements: { - 'com.apple.security.application-groups': [ +- entitlements: { +- 'com.apple.security.application-groups': [ - 'group.app.bsky', -+ 'group.ai.syui.at', - ], - }, - }, +- ], +- }, +- }, - { - targetName: 'BlueskyClip', - bundleIdentifier: 'xyz.blueskyweb.app.AppClip', - }, - ], +- ], ++ appExtensions: [], }, }, + },