Skip to content

Commit

Permalink
fix: reinit app with [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
shirakaba committed Oct 30, 2024
1 parent 5ca0d4a commit 3248a96
Show file tree
Hide file tree
Showing 15 changed files with 636 additions and 1,652 deletions.
5 changes: 0 additions & 5 deletions .yarnrc

This file was deleted.

2 changes: 2 additions & 0 deletions examples/demo/macos/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# CocoaPods
Pods/
9 changes: 2 additions & 7 deletions examples/demo/macos/Example-macOS/AppDelegate.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#import <Cocoa/Cocoa.h>
#import <RCTAppDelegate.h>
#import <React/RCTLinkingManager.h>
#import "RNAppAuthAuthorizationFlowManager.h"

@interface AppDelegate : RCTAppDelegate <RNAppAuthAuthorizationFlowManager>
#import <Cocoa/Cocoa.h>

@property(nonatomic, weak) id<RNAppAuthAuthorizationFlowManagerDelegate>
authorizationFlowManagerDelegate;
@interface AppDelegate : RCTAppDelegate

@end
20 changes: 0 additions & 20 deletions examples/demo/macos/Example-macOS/AppDelegate.mm
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#import "AppDelegate.h"

#import <React/RCTBundleURLProvider.h>
#import <React/RCTLinkingManager.h>

@implementation AppDelegate

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

- (void)applicationWillFinishLaunching:(NSNotification *)notification {
[[NSAppleEventManager sharedAppleEventManager] setEventHandler:self
andSelector:@selector(getURL:withReplyEvent:)
forEventClass:kInternetEventClass
andEventID:kAEGetURL];
}

- (void)getURL:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)reply
{
NSString* urlString = [[event paramDescriptorForKeyword:keyDirectObject] stringValue];
NSURL *url = [NSURL URLWithString:urlString];

if ([self.authorizationFlowManagerDelegate resumeExternalUserAgentFlowWithURL:url]) {
return;
}

[RCTLinkingManager getUrlEventHandler:event withReplyEvent:reply];
}

- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
Expand Down

This file was deleted.

35 changes: 12 additions & 23 deletions examples/demo/macos/Example-macOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ATSApplicationFontsPath</key>
<string>fonts</string>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
Expand All @@ -20,32 +18,23 @@
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>com.your.app.identifier</string>
<key>CFBundleURLSchemes</key>
<array>
<string>io.identityserver.demo</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
<key>NSMainStoryboardFile</key>
<string>Main</string>
<key>NSPrincipalClass</key>
Expand Down
37 changes: 0 additions & 37 deletions examples/demo/macos/Example-macOS/PrivacyInfo.xcprivacy

This file was deleted.

Loading

0 comments on commit 3248a96

Please sign in to comment.