Skip to content

Commit 34e053a

Browse files
committed
update react-native-update version from 10.35.2 to 10.35.3 in package.json and remove lastVersion from shared preferences in UpdateContext.java
1 parent d55ef1d commit 34e053a

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

android/src/main/java/cn/reactnative/modules/update/UpdateContext.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ private String rollBack() {
273273
if (lastVersion == null) {
274274
editor.remove("currentVersion");
275275
} else {
276+
editor.remove("lastVersion");
276277
editor.putString("currentVersion", lastVersion);
277278
}
278279
editor.putBoolean("firstTimeOk", true);

harmony/pushy/src/main/ets/UpdateContext.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ export class UpdateContext {
245245
if (!lastVersion) {
246246
this.preferences.deleteSync('currentVersion');
247247
} else {
248+
this.preferences.deleteSync('lastVersion');
248249
this.preferences.putSync('currentVersion', lastVersion);
249250
}
250251
this.preferences.putSync('firstTimeOk', true);

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.35.2",
3+
"version": "10.35.3",
44
"description": "react-native hot update",
55
"main": "src/index",
66
"scripts": {

0 commit comments

Comments
 (0)