File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
android/src/main/java/cn/reactnative/modules/update
harmony/pushy/src/main/ets Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments