Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flutter_boost_1.22.4
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_boost_1.22.4
Commits
bd868cfc
Commit
bd868cfc
authored
Mar 30, 2020
by
余玠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cherrypick: 最后一个flutter页面关闭的时候回调对Engine的OwnerViewController清空
parent
1f284d89
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
2 deletions
+20
-2
ios/Classes/Boost/FLBFlutterApplicationInterface.h
ios/Classes/Boost/FLBFlutterApplicationInterface.h
+3
-0
ios/Classes/Boost/FlutterBoostPlugin.m
ios/Classes/Boost/FlutterBoostPlugin.m
+8
-1
ios/Classes/Engine/FLBFlutterApplication.m
ios/Classes/Engine/FLBFlutterApplication.m
+9
-0
ios/Classes/container/FLBFlutterViewContainer.m
ios/Classes/container/FLBFlutterViewContainer.m
+0
-1
No files found.
ios/Classes/Boost/FLBFlutterApplicationInterface.h
View file @
bd868cfc
...
@@ -75,6 +75,9 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -75,6 +75,9 @@ NS_ASSUME_NONNULL_BEGIN
params
:(
NSDictionary
*
)
params
params
:(
NSDictionary
*
)
params
uniqueId
:(
NSString
*
)
uniqueId
;
uniqueId
:(
NSString
*
)
uniqueId
;
-
(
void
)
onShownContainerChanged
:(
NSString
*
)
uniqueId
params
:(
NSDictionary
*
)
params
;
@end
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
...
...
ios/Classes/Boost/FlutterBoostPlugin.m
View file @
bd868cfc
...
@@ -67,8 +67,15 @@
...
@@ -67,8 +67,15 @@
result
(
@
(
r
));
result
(
@
(
r
));
}];
}];
}
else
if
([
@"onShownContainerChanged"
isEqualToString
:
call
.
method
]){
}
else
if
([
@"onShownContainerChanged"
isEqualToString
:
call
.
method
]){
NSString
*
newName
=
call
.
arguments
[
@"newName"
];
NSDictionary
*
args
=
[
FLBCollectionHelper
deepCopyNSDictionary
:
call
.
arguments
filter:
^
bool
(
id
_Nonnull
value
)
{
return
!
[
value
isKindOfClass
:
NSNull
.
class
];
}];
NSString
*
newName
=
args
[
@"newName"
];
NSString
*
uid
=
args
[
@"uniqueId"
];
if
(
newName
){
if
(
newName
){
[[
FlutterBoostPlugin2
sharedInstance
].
application
onShownContainerChanged
:
uid
params
:
args
];
[
NSNotificationCenter
.
defaultCenter
postNotificationName
:
@"flutter_boost_container_showed"
[
NSNotificationCenter
.
defaultCenter
postNotificationName
:
@"flutter_boost_container_showed"
object:
newName
];
object:
newName
];
}
}
...
...
ios/Classes/Engine/FLBFlutterApplication.m
View file @
bd868cfc
...
@@ -226,4 +226,13 @@
...
@@ -226,4 +226,13 @@
}
}
}
}
-
(
void
)
onShownContainerChanged
:(
NSString
*
)
uniqueId
params
:(
NSDictionary
*
)
params
{
NSString
*
oldName
=
params
[
@"oldName"
];
NSString
*
newName
=
params
[
@"newName"
];
if
(
oldName
!=
nil
&&
[
newName
isEqualToString
:
@"default"
])
{
[
self
.
flutterProvider
detach
];
}
}
@end
@end
ios/Classes/container/FLBFlutterViewContainer.m
View file @
bd868cfc
...
@@ -268,7 +268,6 @@ static NSUInteger kInstanceCounter = 0;
...
@@ -268,7 +268,6 @@ static NSUInteger kInstanceCounter = 0;
// [self surfaceUpdated:NO];
// [self surfaceUpdated:NO];
// }
// }
[
super
bridge_viewDidDisappear
:
animated
];
[
super
bridge_viewDidDisappear
:
animated
];
[
FLUTTER_APP
resume
];
}
}
-
(
void
)
installSplashScreenViewIfNecessary
{
-
(
void
)
installSplashScreenViewIfNecessary
{
...
...
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