diff --git a/CHANGELOG.md b/CHANGELOG.md index 543f4c1a..4aa5061f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +- We updated mendix-native to v0.3.1, enabling session cookie persistence and restoration on iOS. + +## [17.0.1] - 2025-12-24 + +- We changed NSAppTransportSecurity of the production version of the project to false. For dev testing, we added Info-dev.plist. + +## [17.0.0] - 2025-12-22 + - We updated the native-template for compatibility with React v19 and React Native v0.78.2. This brings performance, stability improvements, and new features. - We updated the version of mendix-native to v0.3.0 to fix iOS native file system issue. diff --git a/ios/AppDelegate.swift b/ios/AppDelegate.swift index 3d0472de..970da5d3 100644 --- a/ios/AppDelegate.swift +++ b/ios/AppDelegate.swift @@ -8,6 +8,7 @@ class AppDelegate: ReactAppProvider { override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { + SessionCookieStore.restore() MendixAppDelegate.application(application, didFinishLaunchingWithOptions: launchOptions) setupApp(application: application, launchOptions: launchOptions) changeRoot(to: UIViewController()) @@ -55,4 +56,12 @@ class AppDelegate: ReactAppProvider { func getWarningFilterValue() -> WarningsFilter { return .none } + + override func applicationWillTerminate(_ application: UIApplication) { + SessionCookieStore.persist() + } + + override func applicationDidEnterBackground(_ application: UIApplication) { + SessionCookieStore.persist() + } } diff --git a/ios/Dev/AppDelegate.swift b/ios/Dev/AppDelegate.swift index 459176ad..1088a2ca 100644 --- a/ios/Dev/AppDelegate.swift +++ b/ios/Dev/AppDelegate.swift @@ -9,6 +9,7 @@ class AppDelegate: ReactAppProvider { override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { + SessionCookieStore.restore() MendixAppDelegate.application(application, didFinishLaunchingWithOptions: launchOptions) setupApp(application: application, launchOptions: launchOptions) @@ -67,4 +68,12 @@ class AppDelegate: ReactAppProvider { return handled } + + override func applicationWillTerminate(_ application: UIApplication) { + SessionCookieStore.persist() + } + + override func applicationDidEnterBackground(_ application: UIApplication) { + SessionCookieStore.persist() + } } diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 395a386f..bcde2b20 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -26,7 +26,7 @@ PODS: - libwebp/sharpyuv (1.5.0) - libwebp/webp (1.5.0): - libwebp/sharpyuv - - MendixNative (0.3.0): + - MendixNative (0.3.1): - DoubleConversion - glog - hermes-engine @@ -2538,17 +2538,17 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: boost: 7e761d76ca2ce687f7cc98e698152abd03a18f90 - DoubleConversion: 76ab83afb40bddeeee456813d9c04f67f78771b5 + DoubleConversion: cb417026b2400c8f53ae97020b2be961b59470cb fast_float: 06eeec4fe712a76acc9376682e4808b05ce978b6 FBLazyVector: e32d34492c519a2194ec9d7f5e7a79d11b73f91c fmt: a40bb5bd0294ea969aaaba240a927bd33d878cdd - glog: 69ef571f3de08433d766d614c73a9838a06bf7eb + glog: eb93e2f488219332457c3c4eafd2738ddc7e80b8 hermes-engine: 2771b98fb813fdc6f92edd7c9c0035ecabf9fee7 IQKeyboardManager: c8665b3396bd0b79402b4c573eac345a31c7d485 libavif: 84bbb62fb232c3018d6f1bab79beea87e35de7b7 libdav1d: 23581a4d8ec811ff171ed5e2e05cd27bad64c39f libwebp: 02b23773aedb6ff1fd38cec7a77b81414c6842a8 - MendixNative: a55e00448d33a66d59bd4b5c5d3057123d34337c + MendixNative: 358ef00fc883a39da69680c6c2a09ecf85a0b887 op-sqlite: 12554de3e1a0cb86cbad3cf1f0c50450f57d3855 OpenSSL-Universal: 6082b0bf950e5636fe0d78def171184e2b3899c2 RCT-Folly: e78785aa9ba2ed998ea4151e314036f6c49e6d82 @@ -2636,6 +2636,6 @@ SPEC CHECKSUMS: SSZipArchive: 8a6ee5677c8e304bebc109e39cf0da91ccef22ea Yoga: e14bad835e12b6c7e2260fc320bd00e0f4b45add -PODFILE CHECKSUM: b234d1af9b2f93d0707d97b1f37c0fbb8e2cfcb8 +PODFILE CHECKSUM: 161262e887e9586e4216f1c577331953ce64c62a COCOAPODS: 1.16.2 diff --git a/package-lock.json b/package-lock.json index 808e34cd..fe3c1c12 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "@react-native-community/datetimepicker": "8.2.0", "@react-native-picker/picker": "2.11.0", "@react-navigation/native": "7.0.14", - "mendix-native": "https://github.com/mendix/mendix-native/releases/download/v0.3.0/mendix-native-v0.3.0.tgz", + "mendix-native": "https://github.com/mendix/mendix-native/releases/download/v0.3.1/mendix-native-v0.3.1.tgz", "react-native": "0.78.2", "react-native-blob-util": "0.21.3", "react-native-bootsplash": "6.3.10", @@ -6436,9 +6436,9 @@ "license": "MIT" }, "node_modules/mendix-native": { - "version": "0.3.0", - "resolved": "https://github.com/mendix/mendix-native/releases/download/v0.3.0/mendix-native-v0.3.0.tgz", - "integrity": "sha512-h1dNSBaUHu+XEqa7GW8LfnWmguKNoZkZHZuLE4+OoWNatXh/MHkYaZwmN1zX3y9uQGOVBQdx5R1yaUvLqmrvTQ==", + "version": "0.3.1", + "resolved": "https://github.com/mendix/mendix-native/releases/download/v0.3.1/mendix-native-v0.3.1.tgz", + "integrity": "sha512-IQudH2wU5B5vRKd0w0XtBXkX3exzw4XtJE5YRRWfvlgYbF49XLVs3pEhkhDpxnXZWNCPRtSzbxLx88D1SVw8LQ==", "license": "MIT", "workspaces": [ "example" diff --git a/package.json b/package.json index 3ae71b97..2a8bc675 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "dependencies": { "@d11/react-native-fast-image": "8.11.1", "@gorhom/bottom-sheet": "5.1.1", - "mendix-native": "https://github.com/mendix/mendix-native/releases/download/v0.3.0/mendix-native-v0.3.0.tgz", + "mendix-native": "https://github.com/mendix/mendix-native/releases/download/v0.3.1/mendix-native-v0.3.1.tgz", "@op-engineering/op-sqlite": "15.0.7", "@react-native-async-storage/async-storage": "2.0.0", "@react-native-camera-roll/camera-roll": "7.4.0",