-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OpenSensitiveURLActionKey for iOS
- Loading branch information
Showing
8 changed files
with
147 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// Empty file |
16 changes: 16 additions & 0 deletions
16
PrivateFrameworks/CoreServices/include/LSApplicationWorkspace.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* This header is generated by classdump-dyld 1.0 | ||
* on Friday, January 21, 2022 at 6:51:04 AM Pacific Standard Time | ||
* Operating System: Version 15.2.1 (Build 19C63) | ||
* Image Source: /System/Library/Frameworks/CoreServices.framework/CoreServices | ||
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. | ||
*/ | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "_LSOpenConfiguration.h" | ||
|
||
@interface LSApplicationWorkspace : NSObject | ||
+(nullable instancetype)defaultWorkspace; | ||
-(void)openURL:(nonnull NSURL *)url configuration:(nonnull _LSOpenConfiguration *)config completionHandler:(void (^ _Nonnull)(BOOL))completion; | ||
|
||
@end |
19 changes: 19 additions & 0 deletions
19
PrivateFrameworks/CoreServices/include/_LSOpenConfiguration.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* This header is generated by classdump-dyld 1.0 | ||
* on Friday, January 21, 2022 at 6:51:04 AM Pacific Standard Time | ||
* Operating System: Version 15.2.1 (Build 19C63) | ||
* Image Source: /System/Library/Frameworks/CoreServices.framework/CoreServices | ||
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. | ||
*/ | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface _LSOpenConfiguration : NSObject | ||
@property(assign, getter=isSensitive,nonatomic) BOOL sensitive; | ||
@property(nonatomic, retain, nullable) id targetConnectionEndpoint; | ||
-(nonnull instancetype)init; | ||
-(BOOL)isSensitive; | ||
-(void)setSensitive:(BOOL)sensitive; | ||
-(void)setTargetConnectionEndpoint:(id)endpoint ; | ||
-(id)targetConnectionEndpoint; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// Empty file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* This header is generated by classdump-dyld 1.0 | ||
* on Friday, January 21, 2022 at 8:58:16 AM Pacific Standard Time | ||
* Operating System: Version 15.2.1 (Build 19C63) | ||
* Image Source: /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore | ||
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. | ||
*/ | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface UIScene (OpenSwiftUI) | ||
-(nullable id)_currentOpenApplicationEndpoint; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
Tests/OpenSwiftUITests/DataAndStorage/EnvironmentValues/EnvironmentValuesOpenURLTests.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// EnvironmentValuesOpenURLTests.swift | ||
// | ||
// | ||
// Created by Kyle on 2023/11/28. | ||
// | ||
|
||
import XCTest | ||
@testable import OpenSwiftUI | ||
|
||
final class EnvironmentValuesOpenURLTests: XCTestCase { | ||
#if DEBUG | ||
func testOpenSensitiveURLActionKey() throws { | ||
let value = OpenSensitiveURLActionKey.defaultValue | ||
value.callAsFunction(URL(string: "https://example.com")!) | ||
} | ||
#endif | ||
} |