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
48fafd37
Commit
48fafd37
authored
5 years ago
by
Leo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add designated initializer
parent
8a706f68
master
patch-1
v1.22.4-hotfixes
1.17.1
1.12.13+3
1.12.13+2
1.12.13+1
1.12.13
1.9.1+2
1.9.1+1
0.1.66
0.1.65
0.1.64
0.1.63
0.1.62
v1.12.13_support+10
v1.12.13_support+9
v1.12.13_support+8
v1.12.13_support+7
v1.12.13_support+6
v1.12.13_support+5
v1.12.13_support+4
v1.12.13_support+3
v1.12.13_support+2
v1.12.13_support+1
v1.12.13_support_xianyu+15
v1.12.13_support_xianyu+14
v1.12.13_support_xianyu+13
v1.12.13_support_xianyu+12
v1.12.13_support_xianyu+11
v1.12.13_support_xianyu+10
v1.9.1_suport+1
v0.1.61-androidx-hotfixes
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
ios/Classes/container/FLBFlutterViewContainer.h
ios/Classes/container/FLBFlutterViewContainer.h
+1
-0
ios/Classes/container/FLBFlutterViewContainer.m
ios/Classes/container/FLBFlutterViewContainer.m
+13
-2
No files found.
ios/Classes/container/FLBFlutterViewContainer.h
View file @
48fafd37
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
FLBFlutterViewContainer
:
FlutterViewController
<
FLBFlutterContainer
>
@interface
FLBFlutterViewContainer
:
FlutterViewController
<
FLBFlutterContainer
>
@property
(
nonatomic
,
copy
,
readwrite
)
NSString
*
name
;
@property
(
nonatomic
,
copy
,
readwrite
)
NSString
*
name
;
-
(
instancetype
)
init
NS_DESIGNATED_INITIALIZER
;
-
(
void
)
surfaceUpdated
:(
BOOL
)
appeared
;
-
(
void
)
surfaceUpdated
:(
BOOL
)
appeared
;
-
(
void
)
setEnableForRunnersBatch
:(
BOOL
)
enable
;
-
(
void
)
setEnableForRunnersBatch
:(
BOOL
)
enable
;
@end
@end
...
...
This diff is collapsed.
Click to expand it.
ios/Classes/container/FLBFlutterViewContainer.m
View file @
48fafd37
...
@@ -35,6 +35,8 @@
...
@@ -35,6 +35,8 @@
@interface
FLBFlutterViewContainer
()
@interface
FLBFlutterViewContainer
()
@property
(
nonatomic
,
strong
,
readwrite
)
NSDictionary
*
params
;
@property
(
nonatomic
,
strong
,
readwrite
)
NSDictionary
*
params
;
@property
(
nonatomic
,
assign
)
long
long
identifier
;
@property
(
nonatomic
,
assign
)
long
long
identifier
;
@property
(
nonatomic
,
copy
)
NSString
*
flbNibName
;
@property
(
nonatomic
,
strong
)
NSBundle
*
flbNibBundle
;
@end
@end
#pragma clang diagnostic push
#pragma clang diagnostic push
...
@@ -45,13 +47,15 @@
...
@@ -45,13 +47,15 @@
{
{
[
FLUTTER_APP
.
flutterProvider
prepareEngineIfNeeded
];
[
FLUTTER_APP
.
flutterProvider
prepareEngineIfNeeded
];
if
(
self
=
[
super
initWithEngine
:
FLUTTER_APP
.
flutterProvider
.
engine
if
(
self
=
[
super
initWithEngine
:
FLUTTER_APP
.
flutterProvider
.
engine
nibName:
nil
nibName:
_flbNibName
bundle:
nil
]){
bundle:
_flbNibBundle
]){
[
self
_setup
];
[
self
_setup
];
}
}
return
self
;
return
self
;
}
}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-designated-initializers"
-
(
instancetype
)
initWithCoder
:(
NSCoder
*
)
aDecoder
{
-
(
instancetype
)
initWithCoder
:(
NSCoder
*
)
aDecoder
{
if
(
self
=
[
super
initWithCoder
:
aDecoder
])
{
if
(
self
=
[
super
initWithCoder
:
aDecoder
])
{
NSAssert
(
NO
,
@"unsupported init method!"
);
NSAssert
(
NO
,
@"unsupported init method!"
);
...
@@ -59,6 +63,13 @@
...
@@ -59,6 +63,13 @@
}
}
return
self
;
return
self
;
}
}
#pragma pop
-
(
instancetype
)
initWithNibName
:(
NSString
*
)
nibNameOrNil
bundle
:(
NSBundle
*
)
nibBundleOrNil
{
_flbNibName
=
nibNameOrNil
;
_flbNibBundle
=
nibBundleOrNil
;
return
[
self
init
];
}
-
(
void
)
setName
:(
NSString
*
)
name
params
:(
NSDictionary
*
)
params
-
(
void
)
setName
:(
NSString
*
)
name
params
:(
NSDictionary
*
)
params
{
{
...
...
This diff is collapsed.
Click to expand it.
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