Skip to content

Commit d7f3c41

Browse files
committed
fix: reinit app with [email protected]
1 parent fb4b005 commit d7f3c41

15 files changed

+635
-1651
lines changed

.yarnrc

-5
This file was deleted.

examples/demo/macos/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# CocoaPods
2+
Pods/
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
#import <Cocoa/Cocoa.h>
21
#import <RCTAppDelegate.h>
3-
#import <React/RCTLinkingManager.h>
4-
#import "RNAppAuthAuthorizationFlowManager.h"
5-
6-
@interface AppDelegate : RCTAppDelegate <RNAppAuthAuthorizationFlowManager>
2+
#import <Cocoa/Cocoa.h>
73

8-
@property(nonatomic, weak) id<RNAppAuthAuthorizationFlowManagerDelegate>
9-
authorizationFlowManagerDelegate;
4+
@interface AppDelegate : RCTAppDelegate
105

116
@end

examples/demo/macos/Example-macOS/AppDelegate.mm

-20
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#import "AppDelegate.h"
22

33
#import <React/RCTBundleURLProvider.h>
4-
#import <React/RCTLinkingManager.h>
54

65
@implementation AppDelegate
76

@@ -15,25 +14,6 @@ - (void)applicationDidFinishLaunching:(NSNotification *)notification
1514
return [super applicationDidFinishLaunching:notification];
1615
}
1716

18-
- (void)applicationWillFinishLaunching:(NSNotification *)notification {
19-
[[NSAppleEventManager sharedAppleEventManager] setEventHandler:self
20-
andSelector:@selector(getURL:withReplyEvent:)
21-
forEventClass:kInternetEventClass
22-
andEventID:kAEGetURL];
23-
}
24-
25-
- (void)getURL:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)reply
26-
{
27-
NSString* urlString = [[event paramDescriptorForKeyword:keyDirectObject] stringValue];
28-
NSURL *url = [NSURL URLWithString:urlString];
29-
30-
if ([self.authorizationFlowManagerDelegate resumeExternalUserAgentFlowWithURL:url]) {
31-
return;
32-
}
33-
34-
[RCTLinkingManager getUrlEventHandler:event withReplyEvent:reply];
35-
}
36-
3717
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
3818
{
3919
#if DEBUG

examples/demo/macos/Example-macOS/Example-macOSRelease.entitlements

-12
This file was deleted.

examples/demo/macos/Example-macOS/Info.plist

+12-23
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>ATSApplicationFontsPath</key>
6-
<string>fonts</string>
75
<key>CFBundleDevelopmentRegion</key>
86
<string>$(DEVELOPMENT_LANGUAGE)</string>
97
<key>CFBundleExecutable</key>
@@ -20,32 +18,23 @@
2018
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
2119
<key>CFBundleShortVersionString</key>
2220
<string>1.0</string>
23-
<key>CFBundleURLTypes</key>
24-
<array>
25-
<dict>
26-
<key>CFBundleURLName</key>
27-
<string>com.your.app.identifier</string>
28-
<key>CFBundleURLSchemes</key>
29-
<array>
30-
<string>io.identityserver.demo</string>
31-
</array>
32-
</dict>
33-
</array>
3421
<key>CFBundleVersion</key>
3522
<string>1</string>
3623
<key>LSMinimumSystemVersion</key>
3724
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
3825
<key>NSAppTransportSecurity</key>
39-
<dict>
40-
<key>NSExceptionDomains</key>
41-
<dict>
42-
<key>localhost</key>
43-
<dict>
44-
<key>NSExceptionAllowsInsecureHTTPLoads</key>
45-
<true/>
46-
</dict>
47-
</dict>
48-
</dict>
26+
<dict>
27+
<key>NSAllowsArbitraryLoads</key>
28+
<true/>
29+
<key>NSExceptionDomains</key>
30+
<dict>
31+
<key>localhost</key>
32+
<dict>
33+
<key>NSExceptionAllowsInsecureHTTPLoads</key>
34+
<true/>
35+
</dict>
36+
</dict>
37+
</dict>
4938
<key>NSMainStoryboardFile</key>
5039
<string>Main</string>
5140
<key>NSPrincipalClass</key>

examples/demo/macos/Example-macOS/PrivacyInfo.xcprivacy

-37
This file was deleted.

0 commit comments

Comments
 (0)