Skip to content

Commit 9d51128

Browse files
committed
Update react-native-update to version 10.31.2 in package.json and enhance currentVersionInfo retrieval in RCTPushy.mm for improved data handling.
1 parent eddb072 commit 9d51128

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ios/RCTPushy/RCTPushy.mm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ - (NSDictionary *)constantsToExport
178178
NSDictionary *pushyInfo = [defaults dictionaryForKey:keyPushyInfo];
179179
NSString *currentVersion = [pushyInfo objectForKey:paramCurrentVersion];
180180
ret[@"currentVersion"] = currentVersion;
181-
ret[@"currentVersionInfo"] = [defaults objectForKey:[keyHashInfo stringByAppendingString:currentVersion]];
181+
if (currentVersion != nil) {
182+
ret[@"currentVersionInfo"] = [defaults objectForKey:[keyHashInfo stringByAppendingString:currentVersion]];
183+
}
182184

183185
// clear isFirstTimemarked
184186
if (ret[@"isFirstTime"]) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-update",
3-
"version": "10.31.1",
3+
"version": "10.31.2",
44
"description": "react-native hot update",
55
"main": "src/index",
66
"scripts": {

0 commit comments

Comments
 (0)