diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml index 8b397eb..433a6e0 100644 --- a/android/app/src/main/res/values/strings.xml +++ b/android/app/src/main/res/values/strings.xml @@ -4,8 +4,6 @@ false automatic 1.0.0 - - Alerte Secours nécessite la localisation en arrière-plan pour les alertes de proximité. Autorisation requise \ No newline at end of file diff --git a/app.config.js b/app.config.js index f70682c..78b583e 100644 --- a/app.config.js +++ b/app.config.js @@ -131,12 +131,12 @@ let config = { "tel", "telprompt", ], + BGTaskSchedulerPermittedIdentifiers: [ + "com.transistorsoft.fetch", + "com.transistorsoft.customtask", + ], }, UIBackgroundModes: ["location", "fetch", "processing"], - BGTaskSchedulerPermittedIdentifiers: [ - "com.transistorsoft.fetch", - "com.transistorsoft.customtask", - ], }, plugins: [ [ diff --git a/ios/AlerteSecours.xcodeproj/project.pbxproj b/ios/AlerteSecours.xcodeproj/project.pbxproj index 208e521..402a6d7 100644 --- a/ios/AlerteSecours.xcodeproj/project.pbxproj +++ b/ios/AlerteSecours.xcodeproj/project.pbxproj @@ -158,9 +158,12 @@ 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */, 6C173A6450034E8CAB58FB0C /* Fix Xcode 15 Bug */, CBB0E03A64A84F6FB794EDB2 /* Upload Debug Symbols to Sentry */, - 6EA5AE3725914306AC3A5BE5 /* Remove signature files (Xcode workaround) */, 8A20F54D80BCC2E27CF783AE /* [CP] Embed Pods Frameworks */, 36EBB336DD5343908AA35FFC /* [CP-User] [RNFB] Core Configuration */, + 8EC12A68941D40E98E0D60BE /* Fix Xcode 15 Bug */, + 49AEAB1D332B45ED9A37B009 /* Fix Xcode 15 Bug */, + D75A41050AB3445786799848 /* Fix Xcode 15 Bug */, + ABC6C5A0D48A4B7980D60E1B /* Remove signature files (Xcode workaround) */, ); buildRules = ( ); @@ -473,6 +476,108 @@ shellPath = /bin/sh; shellScript = "/bin/sh `${NODE_BINARY:-node} --print \"require('path').dirname(require.resolve('@sentry/react-native/package.json')) + '/scripts/sentry-xcode-debug-files.sh'\"`"; }; + 8EC12A68941D40E98E0D60BE /* Fix Xcode 15 Bug */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + name = "Fix Xcode 15 Bug"; + inputPaths = ( + ); + outputPaths = ( + ); + shellPath = /bin/sh; + shellScript = "if [ \"$XCODE_VERSION_MAJOR\" = \"1500\" ]; then + echo \"Remove signature files (Xcode 15 workaround)\" + find \"$BUILD_DIR/${CONFIGURATION}-iphoneos\" -name \"*.signature\" -type f | xargs -r rm +fi"; + }; + 700E335CAFA54AABB46BAB62 /* Remove signature files (Xcode workaround) */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + name = "Remove signature files (Xcode workaround)"; + inputPaths = ( + ); + outputPaths = ( + ); + shellPath = /bin/sh; + shellScript = " + echo \"Remove signature files (Xcode workaround)\"; + rm -rf \"$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature\"; + "; + }; + 49AEAB1D332B45ED9A37B009 /* Fix Xcode 15 Bug */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + name = "Fix Xcode 15 Bug"; + inputPaths = ( + ); + outputPaths = ( + ); + shellPath = /bin/sh; + shellScript = "if [ \"$XCODE_VERSION_MAJOR\" = \"1500\" ]; then + echo \"Remove signature files (Xcode 15 workaround)\" + find \"$BUILD_DIR/${CONFIGURATION}-iphoneos\" -name \"*.signature\" -type f | xargs -r rm +fi"; + }; + E611D841DFAE4F71B8077AD3 /* Remove signature files (Xcode workaround) */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + name = "Remove signature files (Xcode workaround)"; + inputPaths = ( + ); + outputPaths = ( + ); + shellPath = /bin/sh; + shellScript = " + echo \"Remove signature files (Xcode workaround)\"; + rm -rf \"$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature\"; + "; + }; + D75A41050AB3445786799848 /* Fix Xcode 15 Bug */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + name = "Fix Xcode 15 Bug"; + inputPaths = ( + ); + outputPaths = ( + ); + shellPath = /bin/sh; + shellScript = "if [ \"$XCODE_VERSION_MAJOR\" = \"1500\" ]; then + echo \"Remove signature files (Xcode 15 workaround)\" + find \"$BUILD_DIR/${CONFIGURATION}-iphoneos\" -name \"*.signature\" -type f | xargs -r rm +fi"; + }; + ABC6C5A0D48A4B7980D60E1B /* Remove signature files (Xcode workaround) */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + name = "Remove signature files (Xcode workaround)"; + inputPaths = ( + ); + outputPaths = ( + ); + shellPath = /bin/sh; + shellScript = " + echo \"Remove signature files (Xcode workaround)\"; + rm -rf \"$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature\"; + "; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -516,7 +621,7 @@ ); OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG"; PRODUCT_BUNDLE_IDENTIFIER = com.alertesecours.alertesecours; - PRODUCT_NAME = AlerteSecours; + PRODUCT_NAME = "AlerteSecours"; SWIFT_OBJC_BRIDGING_HEADER = "AlerteSecours/AlerteSecours-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; @@ -535,7 +640,7 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 2PZ49Y23LX; - "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64"; INFOPLIST_FILE = AlerteSecours/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 15.1; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; @@ -547,7 +652,7 @@ ); OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE"; PRODUCT_BUNDLE_IDENTIFIER = com.alertesecours.alertesecours; - PRODUCT_NAME = AlerteSecours; + PRODUCT_NAME = "AlerteSecours"; SWIFT_OBJC_BRIDGING_HEADER = "AlerteSecours/AlerteSecours-Bridging-Header.h"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; diff --git a/ios/AlerteSecours/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png b/ios/AlerteSecours/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png index 76b043e..07ed9a3 100644 Binary files a/ios/AlerteSecours/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png and b/ios/AlerteSecours/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png differ diff --git a/ios/AlerteSecours/Info.plist b/ios/AlerteSecours/Info.plist index 1b516a9..a48026d 100644 --- a/ios/AlerteSecours/Info.plist +++ b/ios/AlerteSecours/Info.plist @@ -2,6 +2,11 @@ + BGTaskSchedulerPermittedIdentifiers + + com.transistorsoft.fetch + com.transistorsoft.customtask + CADisableMinimumFrameDurationOnPhone CFBundleDevelopmentRegion