diff --git a/android/src/main/java/cn/reactnative/modules/update/UpdateContext.java b/android/src/main/java/cn/reactnative/modules/update/UpdateContext.java index 6014cc4..219a931 100644 --- a/android/src/main/java/cn/reactnative/modules/update/UpdateContext.java +++ b/android/src/main/java/cn/reactnative/modules/update/UpdateContext.java @@ -69,13 +69,6 @@ public class UpdateContext { return context.getString(R.string.pushy_build_time); } - public Map getBlockUpdate() { - return new HashMap() {{ - put("until", sp.getInt("blockUntil", 0)); - put("reason", sp.getString("blockReason", null)); - }}; - } - public boolean getIsUsingBundleUrl() { return isUsingBundleUrl; } diff --git a/android/src/newarch/cn/reactnative/modules/update/UpdateModule.java b/android/src/newarch/cn/reactnative/modules/update/UpdateModule.java index 1f986a9..34077dd 100644 --- a/android/src/newarch/cn/reactnative/modules/update/UpdateModule.java +++ b/android/src/newarch/cn/reactnative/modules/update/UpdateModule.java @@ -45,7 +45,6 @@ public class UpdateModule extends NativePushySpec { if (rolledBackVersion != null) { updateContext.clearRollbackMark(); } - constants.put("blockUpdate", updateContext.getBlockUpdate()); constants.put("uuid", updateContext.getKv("uuid")); return constants; } diff --git a/android/src/oldarch/cn/reactnative/modules/update/UpdateModule.java b/android/src/oldarch/cn/reactnative/modules/update/UpdateModule.java index b45149e..2736f1d 100644 --- a/android/src/oldarch/cn/reactnative/modules/update/UpdateModule.java +++ b/android/src/oldarch/cn/reactnative/modules/update/UpdateModule.java @@ -59,7 +59,6 @@ public class UpdateModule extends ReactContextBaseJavaModule { if (rolledBackVersion != null) { updateContext.clearRollbackMark(); } - constants.put("blockUpdate", updateContext.getBlockUpdate()); constants.put("uuid", updateContext.getKv("uuid")); return constants; } diff --git a/ios/RCTPushy/RCTPushy.mm b/ios/RCTPushy/RCTPushy.mm index 1f64a4c..76d5201 100644 --- a/ios/RCTPushy/RCTPushy.mm +++ b/ios/RCTPushy/RCTPushy.mm @@ -16,7 +16,6 @@ static NSString *const paramLastVersion = @"lastVersion"; static NSString *const paramCurrentVersion = @"currentVersion"; static NSString *const paramIsFirstTime = @"isFirstTime"; static NSString *const paramIsFirstLoadOk = @"isFirstLoadOK"; -static NSString *const keyBlockUpdate = @"REACTNATIVECN_PUSHY_BLOCKUPDATE"; static NSString *const keyUuid = @"REACTNATIVECN_PUSHY_UUID"; static NSString *const keyHashInfo = @"REACTNATIVECN_PUSHY_HASH_"; static NSString *const keyFirstLoadMarked = @"REACTNATIVECN_PUSHY_FIRSTLOADMARKED_KEY"; @@ -157,7 +156,6 @@ RCT_EXPORT_MODULE(RCTPushy); ret[@"buildTime"] = [RCTPushy buildTime]; ret[@"rolledBackVersion"] = [defaults objectForKey:keyRolledBackMarked]; ret[@"isFirstTime"] = [defaults objectForKey:keyFirstLoadMarked]; - ret[@"blockUpdate"] = [defaults objectForKey:keyBlockUpdate]; ret[@"uuid"] = [defaults objectForKey:keyUuid]; NSDictionary *pushyInfo = [defaults dictionaryForKey:keyPushyInfo]; ret[@"currentVersion"] = [pushyInfo objectForKey:paramCurrentVersion];