Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flutter-scheme
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
flutter-plugin
flutter-scheme
Commits
26fe180f
Commit
26fe180f
authored
Jun 08, 2021
by
汪林玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决scheme之间冲突
parent
d277ef7d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
18 deletions
+19
-18
ios/Classes/FlutterSchemePlugin.m
ios/Classes/FlutterSchemePlugin.m
+19
-18
No files found.
ios/Classes/FlutterSchemePlugin.m
View file @
26fe180f
...
...
@@ -51,22 +51,6 @@ static id _instance;
}
}
-
(
BOOL
)
application
:(
UIApplication
*
)
application
continueUserActivity
:(
NSUserActivity
*
)
userActivity
restorationHandler
:(
void
(
^
)(
NSArray
*
_Nonnull
))
restorationHandler
{
NSURL
*
url
=
[
userActivity
webpageURL
];
if
(
url
){
[
self
foundSchemeURL
:
url
];
}
return
YES
;
}
-
(
void
)
scene
:(
UIScene
*
)
scene
continueUserActivity
:(
NSUserActivity
*
)
userActivity
API_AVAILABLE
(
ios
(
13
.
0
)){
NSURL
*
url
=
[
userActivity
webpageURL
];
if
(
url
){
[
self
foundSchemeURL
:
url
];
}
}
-
(
void
)
foundSchemeURL
:(
NSURL
*
_Nullable
)
url
{
NSString
*
_scheme
=
@""
;
NSString
*
_host
=
@""
;
...
...
@@ -113,6 +97,25 @@ static id _instance;
return
YES
;
}
-
(
BOOL
)
application
:(
UIApplication
*
)
application
continueUserActivity
:(
NSUserActivity
*
)
userActivity
restorationHandler
:(
void
(
^
)(
NSArray
*
_Nonnull
))
restorationHandler
{
if
([
userActivity
.
activityType
isEqualToString
:
NSUserActivityTypeBrowsingWeb
]){
NSURL
*
url
=
[
userActivity
webpageURL
];
if
(
url
){
[
self
foundSchemeURL
:
url
];
return
NO
;
}
}
return
YES
;
}
-
(
void
)
scene
:(
UIScene
*
)
scene
continueUserActivity
:(
NSUserActivity
*
)
userActivity
API_AVAILABLE
(
ios
(
13
.
0
)){
NSURL
*
url
=
[
userActivity
webpageURL
];
if
(
url
){
[
self
foundSchemeURL
:
url
];
}
}
#pragma mark - handleOpenURL
-
(
BOOL
)
application
:(
UIApplication
*
)
application
handleOpenURL
:(
NSURL
*
)
url
{
[
self
foundSchemeURL
:
url
];
...
...
@@ -134,6 +137,4 @@ static id _instance;
_eventSink
=
nil
;
return
nil
;
}
@end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment