1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 10:31:39 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

revert ios bundle detect

This commit is contained in:
sunnylqm
2023-09-02 22:52:58 +08:00
parent 7152ef7304
commit 3ba1df2020
2 changed files with 2 additions and 4 deletions

View File

@@ -53,7 +53,6 @@ typedef NS_ENUM(NSInteger, PushyType) {
};
static BOOL ignoreRollback = false;
static BOOL isUsingBundleUrl = false;
@implementation RCTPushy {
RCTPushyManager *_fileManager;
@@ -66,7 +65,6 @@ RCT_EXPORT_MODULE(RCTPushy);
+ (NSURL *)bundleURL
{
isUsingBundleUrl = true;
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSDictionary *pushyInfo = [defaults dictionaryForKey:keyPushyInfo];
@@ -163,7 +161,6 @@ RCT_EXPORT_MODULE(RCTPushy);
ret[@"uuid"] = [defaults objectForKey:keyUuid];
NSDictionary *pushyInfo = [defaults dictionaryForKey:keyPushyInfo];
ret[@"currentVersion"] = [pushyInfo objectForKey:paramCurrentVersion];
ret[@"isUsingBundleUrl"] = @(isUsingBundleUrl);
// clear isFirstTimemarked
if (ret[@"isFirstTime"]) {