mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-29 20:43:09 +08:00
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
This commit is contained in:
@@ -273,6 +273,7 @@ public class UpdateContext {
|
|||||||
if (lastVersion == null) {
|
if (lastVersion == null) {
|
||||||
editor.remove("currentVersion");
|
editor.remove("currentVersion");
|
||||||
} else {
|
} else {
|
||||||
|
editor.remove("lastVersion");
|
||||||
editor.putString("currentVersion", lastVersion);
|
editor.putString("currentVersion", lastVersion);
|
||||||
}
|
}
|
||||||
editor.putBoolean("firstTimeOk", true);
|
editor.putBoolean("firstTimeOk", true);
|
||||||
|
|||||||
@@ -245,6 +245,7 @@ export class UpdateContext {
|
|||||||
if (!lastVersion) {
|
if (!lastVersion) {
|
||||||
this.preferences.deleteSync('currentVersion');
|
this.preferences.deleteSync('currentVersion');
|
||||||
} else {
|
} else {
|
||||||
|
this.preferences.deleteSync('lastVersion');
|
||||||
this.preferences.putSync('currentVersion', lastVersion);
|
this.preferences.putSync('currentVersion', lastVersion);
|
||||||
}
|
}
|
||||||
this.preferences.putSync('firstTimeOk', true);
|
this.preferences.putSync('firstTimeOk', true);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-update",
|
"name": "react-native-update",
|
||||||
"version": "10.35.2",
|
"version": "10.35.3",
|
||||||
"description": "react-native hot update",
|
"description": "react-native hot update",
|
||||||
"main": "src/index",
|
"main": "src/index",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user