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
1
Merge Requests
1
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
4b26feee
Commit
4b26feee
authored
Sep 04, 2019
by
余玠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ignore dummy's view appear/disappear message
parent
60da04f5
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
1 deletion
+29
-1
ios/Classes/1.5/FLB2FlutterEngine.m
ios/Classes/1.5/FLB2FlutterEngine.m
+2
-0
ios/Classes/1.5/FLB2FlutterViewContainer.h
ios/Classes/1.5/FLB2FlutterViewContainer.h
+1
-0
ios/Classes/1.5/FLB2FlutterViewContainer.m
ios/Classes/1.5/FLB2FlutterViewContainer.m
+0
-1
ios/Classes/Messaging/BoostMessageChannel.h
ios/Classes/Messaging/BoostMessageChannel.h
+2
-0
ios/Classes/Messaging/BoostMessageChannel.mm
ios/Classes/Messaging/BoostMessageChannel.mm
+24
-0
No files found.
ios/Classes/1.5/FLB2FlutterEngine.m
View file @
4b26feee
...
@@ -52,6 +52,8 @@
...
@@ -52,6 +52,8 @@
_dummy
=
[[
FLB2FlutterViewContainer
alloc
]
initWithEngine
:
_engine
_dummy
=
[[
FLB2FlutterViewContainer
alloc
]
initWithEngine
:
_engine
nibName:
nil
nibName:
nil
bundle:
nil
];
bundle:
nil
];
_dummy
.
name
=
kIgnoreMessageWithName
;
Class
clazz
=
NSClassFromString
(
@"GeneratedPluginRegistrant"
);
Class
clazz
=
NSClassFromString
(
@"GeneratedPluginRegistrant"
);
if
(
clazz
)
{
if
(
clazz
)
{
if
([
clazz
respondsToSelector
:
NSSelectorFromString
(
@"registerWithRegistry:"
)])
{
if
([
clazz
respondsToSelector
:
NSSelectorFromString
(
@"registerWithRegistry:"
)])
{
...
...
ios/Classes/1.5/FLB2FlutterViewContainer.h
View file @
4b26feee
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
FLB2FlutterViewContainer
:
FlutterViewController
<
FLBFlutterContainer
>
@interface
FLB2FlutterViewContainer
:
FlutterViewController
<
FLBFlutterContainer
>
@property
(
nonatomic
,
copy
,
readwrite
)
NSString
*
name
;
-
(
void
)
surfaceUpdated
:(
BOOL
)
appeared
;
-
(
void
)
surfaceUpdated
:(
BOOL
)
appeared
;
-
(
void
)
setEnableForRunnersBatch
:(
BOOL
)
enable
;
-
(
void
)
setEnableForRunnersBatch
:(
BOOL
)
enable
;
@end
@end
...
...
ios/Classes/1.5/FLB2FlutterViewContainer.m
View file @
4b26feee
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
#define FLUTTER_VC FLUTTER_APP.flutterViewController
#define FLUTTER_VC FLUTTER_APP.flutterViewController
@interface
FLB2FlutterViewContainer
()
@interface
FLB2FlutterViewContainer
()
@property
(
nonatomic
,
copy
,
readwrite
)
NSString
*
name
;
@property
(
nonatomic
,
strong
,
readwrite
)
NSDictionary
*
params
;
@property
(
nonatomic
,
strong
,
readwrite
)
NSDictionary
*
params
;
@property
(
nonatomic
,
assign
)
long
long
identifier
;
@property
(
nonatomic
,
assign
)
long
long
identifier
;
@end
@end
...
...
ios/Classes/Messaging/BoostMessageChannel.h
View file @
4b26feee
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
#import <Flutter/Flutter.h>
#import <Flutter/Flutter.h>
#import "FLBTypes.h"
#import "FLBTypes.h"
#define kIgnoreMessageWithName @"__flutterboost_dummy__"
@interface
BoostMessageChannel
:
NSObject
@interface
BoostMessageChannel
:
NSObject
+
(
void
)
onNativePageResult
:(
void
(
^
)(
NSNumber
*
))
result
uniqueId
:(
NSString
*
)
uniqueId
key
:(
NSString
*
)
key
resultData
:(
NSDictionary
*
)
resultData
params
:(
NSDictionary
*
)
params
;
+
(
void
)
onNativePageResult
:(
void
(
^
)(
NSNumber
*
))
result
uniqueId
:(
NSString
*
)
uniqueId
key
:(
NSString
*
)
key
resultData
:(
NSDictionary
*
)
resultData
params
:(
NSDictionary
*
)
params
;
...
...
ios/Classes/Messaging/BoostMessageChannel.mm
View file @
4b26feee
...
@@ -100,6 +100,10 @@
...
@@ -100,6 +100,10 @@
+
(
void
)
didShowPageContainer
:(
void
(
^
)(
NSNumber
*
))
result
pageName
:(
NSString
*
)
pageName
params
:(
NSDictionary
*
)
params
uniqueId
:(
NSString
*
)
uniqueId
+
(
void
)
didShowPageContainer
:(
void
(
^
)(
NSNumber
*
))
result
pageName
:(
NSString
*
)
pageName
params
:(
NSDictionary
*
)
params
uniqueId
:(
NSString
*
)
uniqueId
{
{
if
([
pageName
isEqualToString
:
kIgnoreMessageWithName
])
{
return
;
}
NSMutableDictionary
*
tmp
=
[
NSMutableDictionary
dictionary
];
NSMutableDictionary
*
tmp
=
[
NSMutableDictionary
dictionary
];
if
(
pageName
)
tmp
[
@"pageName"
]
=
pageName
;
if
(
pageName
)
tmp
[
@"pageName"
]
=
pageName
;
if
(
params
)
tmp
[
@"params"
]
=
params
;
if
(
params
)
tmp
[
@"params"
]
=
params
;
...
@@ -113,6 +117,10 @@
...
@@ -113,6 +117,10 @@
+
(
void
)
willShowPageContainer
:(
void
(
^
)(
NSNumber
*
))
result
pageName
:(
NSString
*
)
pageName
params
:(
NSDictionary
*
)
params
uniqueId
:(
NSString
*
)
uniqueId
+
(
void
)
willShowPageContainer
:(
void
(
^
)(
NSNumber
*
))
result
pageName
:(
NSString
*
)
pageName
params
:(
NSDictionary
*
)
params
uniqueId
:(
NSString
*
)
uniqueId
{
{
if
([
pageName
isEqualToString
:
kIgnoreMessageWithName
])
{
return
;
}
NSMutableDictionary
*
tmp
=
[
NSMutableDictionary
dictionary
];
NSMutableDictionary
*
tmp
=
[
NSMutableDictionary
dictionary
];
if
(
pageName
)
tmp
[
@"pageName"
]
=
pageName
;
if
(
pageName
)
tmp
[
@"pageName"
]
=
pageName
;
if
(
params
)
tmp
[
@"params"
]
=
params
;
if
(
params
)
tmp
[
@"params"
]
=
params
;
...
@@ -126,6 +134,10 @@
...
@@ -126,6 +134,10 @@
+
(
void
)
willDisappearPageContainer
:(
void
(
^
)(
NSNumber
*
))
result
pageName
:(
NSString
*
)
pageName
params
:(
NSDictionary
*
)
params
uniqueId
:(
NSString
*
)
uniqueId
+
(
void
)
willDisappearPageContainer
:(
void
(
^
)(
NSNumber
*
))
result
pageName
:(
NSString
*
)
pageName
params
:(
NSDictionary
*
)
params
uniqueId
:(
NSString
*
)
uniqueId
{
{
if
([
pageName
isEqualToString
:
kIgnoreMessageWithName
])
{
return
;
}
NSMutableDictionary
*
tmp
=
[
NSMutableDictionary
dictionary
];
NSMutableDictionary
*
tmp
=
[
NSMutableDictionary
dictionary
];
if
(
pageName
)
tmp
[
@"pageName"
]
=
pageName
;
if
(
pageName
)
tmp
[
@"pageName"
]
=
pageName
;
if
(
params
)
tmp
[
@"params"
]
=
params
;
if
(
params
)
tmp
[
@"params"
]
=
params
;
...
@@ -139,6 +151,10 @@
...
@@ -139,6 +151,10 @@
+
(
void
)
didDisappearPageContainer
:(
void
(
^
)(
NSNumber
*
))
result
pageName
:(
NSString
*
)
pageName
params
:(
NSDictionary
*
)
params
uniqueId
:(
NSString
*
)
uniqueId
+
(
void
)
didDisappearPageContainer
:(
void
(
^
)(
NSNumber
*
))
result
pageName
:(
NSString
*
)
pageName
params
:(
NSDictionary
*
)
params
uniqueId
:(
NSString
*
)
uniqueId
{
{
if
([
pageName
isEqualToString
:
kIgnoreMessageWithName
])
{
return
;
}
NSMutableDictionary
*
tmp
=
[
NSMutableDictionary
dictionary
];
NSMutableDictionary
*
tmp
=
[
NSMutableDictionary
dictionary
];
if
(
pageName
)
tmp
[
@"pageName"
]
=
pageName
;
if
(
pageName
)
tmp
[
@"pageName"
]
=
pageName
;
if
(
params
)
tmp
[
@"params"
]
=
params
;
if
(
params
)
tmp
[
@"params"
]
=
params
;
...
@@ -152,6 +168,10 @@
...
@@ -152,6 +168,10 @@
+
(
void
)
didInitPageContainer
:(
void
(
^
)(
NSNumber
*
))
result
pageName
:(
NSString
*
)
pageName
params
:(
NSDictionary
*
)
params
uniqueId
:(
NSString
*
)
uniqueId
+
(
void
)
didInitPageContainer
:(
void
(
^
)(
NSNumber
*
))
result
pageName
:(
NSString
*
)
pageName
params
:(
NSDictionary
*
)
params
uniqueId
:(
NSString
*
)
uniqueId
{
{
if
([
pageName
isEqualToString
:
kIgnoreMessageWithName
])
{
return
;
}
NSMutableDictionary
*
tmp
=
[
NSMutableDictionary
dictionary
];
NSMutableDictionary
*
tmp
=
[
NSMutableDictionary
dictionary
];
if
(
pageName
)
tmp
[
@"pageName"
]
=
pageName
;
if
(
pageName
)
tmp
[
@"pageName"
]
=
pageName
;
if
(
params
)
tmp
[
@"params"
]
=
params
;
if
(
params
)
tmp
[
@"params"
]
=
params
;
...
@@ -169,6 +189,10 @@
...
@@ -169,6 +189,10 @@
+
(
void
)
willDeallocPageContainer
:(
void
(
^
)(
NSNumber
*
))
result
pageName
:(
NSString
*
)
pageName
params
:(
NSDictionary
*
)
params
uniqueId
:(
NSString
*
)
uniqueId
+
(
void
)
willDeallocPageContainer
:(
void
(
^
)(
NSNumber
*
))
result
pageName
:(
NSString
*
)
pageName
params
:(
NSDictionary
*
)
params
uniqueId
:(
NSString
*
)
uniqueId
{
{
if
([
pageName
isEqualToString
:
kIgnoreMessageWithName
])
{
return
;
}
NSMutableDictionary
*
tmp
=
[
NSMutableDictionary
dictionary
];
NSMutableDictionary
*
tmp
=
[
NSMutableDictionary
dictionary
];
if
(
pageName
)
tmp
[
@"pageName"
]
=
pageName
;
if
(
pageName
)
tmp
[
@"pageName"
]
=
pageName
;
if
(
params
)
tmp
[
@"params"
]
=
params
;
if
(
params
)
tmp
[
@"params"
]
=
params
;
...
...
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