mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-26 08:55:56 +01:00
FIX: Use existing UID instead of recreating one
This commit is contained in:
parent
cdea09dfca
commit
c9b286fc10
2 changed files with 1 additions and 15 deletions
|
@ -42,7 +42,6 @@ static void InitializeFlipper(UIApplication *application) {
|
|||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||
{
|
||||
[Bugsnag start];
|
||||
[self registerDefaultsFromSettingsBundle];
|
||||
#if !TARGET_OS_MACCATALYST
|
||||
#ifdef FB_SONARKIT_ENABLED
|
||||
InitializeFlipper(application);
|
||||
|
@ -79,19 +78,6 @@ static void InitializeFlipper(UIApplication *application) {
|
|||
return YES;
|
||||
}
|
||||
|
||||
#pragma NSUserDefaults
|
||||
- (void)registerDefaultsFromSettingsBundle {
|
||||
// this function writes default settings as settings
|
||||
NSString *settingsBundle = [[NSBundle mainBundle] pathForResource:@"Settings" ofType:@"bundle"];
|
||||
if(!settingsBundle) {
|
||||
NSLog(@"Could not find Settings.bundle");
|
||||
return;
|
||||
}
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] setValue:UIDevice.currentDevice.identifierForVendor.UUIDString forKey:@"uniqueid"];
|
||||
[[NSUserDefaults standardUserDefaults] synchronize];
|
||||
}
|
||||
|
||||
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
|
||||
{
|
||||
#if DEBUG
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<key>Title</key>
|
||||
<string>Unique ID</string>
|
||||
<key>Key</key>
|
||||
<string>uniqueid</string>
|
||||
<string>deviceUID</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
|
|
Loading…
Add table
Reference in a new issue