Skip to content

Commit e4c95df

Browse files
chore: update mendix-native to v0.3.1 to enhance ios session cookie handling
1 parent 1d6f3f4 commit e4c95df

File tree

8 files changed

+117
-33
lines changed

8 files changed

+117
-33
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
- We updated mendix-native to v0.3.1, enabling session cookie persistence and restoration on iOS.
10+
- We upgraded the body-parser dependency to resolve npm audit high-severity vulnerability warnings.
11+
12+
## [17.0.1] - 2025-12-24
13+
14+
- We changed NSAppTransportSecurity of the production version of the project to false. For dev testing, we added Info-dev.plist.
15+
16+
## [17.0.0] - 2025-12-22
17+
918
- We updated the native-template for compatibility with React v19 and React Native v0.78.2. This brings performance, stability improvements, and new features.
1019
- We updated the version of mendix-native to v0.3.0 to fix iOS native file system issue.
1120

ios/AppDelegate.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,12 @@ class AppDelegate: ReactAppProvider {
5555
func getWarningFilterValue() -> WarningsFilter {
5656
return .none
5757
}
58+
59+
override func applicationWillTerminate(_ application: UIApplication) {
60+
NativeCookieModule.persistSessionCookies()
61+
}
62+
63+
override func applicationDidEnterBackground(_ application: UIApplication) {
64+
NativeCookieModule.persistSessionCookies()
65+
}
5866
}

ios/Dev/AppDelegate.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,12 @@ class AppDelegate: ReactAppProvider {
6767

6868
return handled
6969
}
70+
71+
override func applicationWillTerminate(_ application: UIApplication) {
72+
NativeCookieModule.persistSessionCookies()
73+
}
74+
75+
override func applicationDidEnterBackground(_ application: UIApplication) {
76+
NativeCookieModule.persistSessionCookies()
77+
}
7078
}

ios/Extensions/AppDelegate+Extension.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ extension AppDelegate {
2626
func setupApp(application: UIApplication, launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) {
2727
setUpProvider()
2828
super.application(application, didFinishLaunchingWithOptions: launchOptions)
29+
NativeCookieModule.restoreSessionCookies()
2930
clearKeychain()
3031
setupUI()
3132
}

ios/Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ PODS:
2626
- libwebp/sharpyuv (1.5.0)
2727
- libwebp/webp (1.5.0):
2828
- libwebp/sharpyuv
29-
- MendixNative (0.3.0):
29+
- MendixNative (0.3.1):
3030
- DoubleConversion
3131
- glog
3232
- hermes-engine
@@ -2538,17 +2538,17 @@ EXTERNAL SOURCES:
25382538

25392539
SPEC CHECKSUMS:
25402540
boost: 7e761d76ca2ce687f7cc98e698152abd03a18f90
2541-
DoubleConversion: 76ab83afb40bddeeee456813d9c04f67f78771b5
2541+
DoubleConversion: cb417026b2400c8f53ae97020b2be961b59470cb
25422542
fast_float: 06eeec4fe712a76acc9376682e4808b05ce978b6
25432543
FBLazyVector: e32d34492c519a2194ec9d7f5e7a79d11b73f91c
25442544
fmt: a40bb5bd0294ea969aaaba240a927bd33d878cdd
2545-
glog: 69ef571f3de08433d766d614c73a9838a06bf7eb
2545+
glog: eb93e2f488219332457c3c4eafd2738ddc7e80b8
25462546
hermes-engine: 2771b98fb813fdc6f92edd7c9c0035ecabf9fee7
25472547
IQKeyboardManager: c8665b3396bd0b79402b4c573eac345a31c7d485
25482548
libavif: 84bbb62fb232c3018d6f1bab79beea87e35de7b7
25492549
libdav1d: 23581a4d8ec811ff171ed5e2e05cd27bad64c39f
25502550
libwebp: 02b23773aedb6ff1fd38cec7a77b81414c6842a8
2551-
MendixNative: a55e00448d33a66d59bd4b5c5d3057123d34337c
2551+
MendixNative: 358ef00fc883a39da69680c6c2a09ecf85a0b887
25522552
op-sqlite: 12554de3e1a0cb86cbad3cf1f0c50450f57d3855
25532553
OpenSSL-Universal: 6082b0bf950e5636fe0d78def171184e2b3899c2
25542554
RCT-Folly: e78785aa9ba2ed998ea4151e314036f6c49e6d82
@@ -2636,6 +2636,6 @@ SPEC CHECKSUMS:
26362636
SSZipArchive: 8a6ee5677c8e304bebc109e39cf0da91ccef22ea
26372637
Yoga: e14bad835e12b6c7e2260fc320bd00e0f4b45add
26382638

2639-
PODFILE CHECKSUM: b234d1af9b2f93d0707d97b1f37c0fbb8e2cfcb8
2639+
PODFILE CHECKSUM: 161262e887e9586e4216f1c577331953ce64c62a
26402640

26412641
COCOAPODS: 1.16.2

ios/nativeTemplate.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,8 +865,8 @@
865865
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
866866
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
867867
GCC_C_LANGUAGE_STANDARD = gnu99;
868-
INFOPLIST_FILE = "nativeTemplate/Info-dev.plist";
869868
HEADER_SEARCH_PATHS = "$(inherited)";
869+
INFOPLIST_FILE = "nativeTemplate/Info-dev.plist";
870870
IPHONEOS_DEPLOYMENT_TARGET = 15.5;
871871
LD_RUNPATH_SEARCH_PATHS = (
872872
"$(inherited)",

package-lock.json

Lines changed: 84 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dependencies": {
1111
"@d11/react-native-fast-image": "8.11.1",
1212
"@gorhom/bottom-sheet": "5.1.1",
13-
"mendix-native": "https://github.com/mendix/mendix-native/releases/download/v0.3.0/mendix-native-v0.3.0.tgz",
13+
"mendix-native": "https://github.com/mendix/mendix-native/releases/download/v0.3.1/mendix-native-v0.3.1.tgz",
1414
"@op-engineering/op-sqlite": "15.0.7",
1515
"@react-native-async-storage/async-storage": "2.0.0",
1616
"@react-native-camera-roll/camera-roll": "7.4.0",

0 commit comments

Comments
 (0)