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
9604e1ea
Commit
9604e1ea
authored
Jun 03, 2019
by
Jidong Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete some useless code.
parent
854b8d32
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
57 deletions
+30
-57
example/ios/Runner.xcodeproj/project.pbxproj
example/ios/Runner.xcodeproj/project.pbxproj
+5
-4
ios/Classes/Adaptor/FLBFlutterEngine.h
ios/Classes/Adaptor/FLBFlutterEngine.h
+0
-4
ios/Classes/Adaptor/FLBFlutterEngine.m
ios/Classes/Adaptor/FLBFlutterEngine.m
+0
-2
ios/Classes/Container/FLBFlutterViewContainer.m
ios/Classes/Container/FLBFlutterViewContainer.m
+25
-47
No files found.
example/ios/Runner.xcodeproj/project.pbxproj
View file @
9604e1ea
...
...
@@ -200,6 +200,7 @@
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
CreatedOnToolsVersion
=
7.3.1
;
DevelopmentTeam
=
HH6T699A6Z
;
};
};
};
...
...
@@ -448,7 +449,7 @@
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CURRENT_PROJECT_VERSION
=
"$(FLUTTER_BUILD_NUMBER)"
;
DEVELOPMENT_TEAM
=
""
;
DEVELOPMENT_TEAM
=
HH6T699A6Z
;
ENABLE_BITCODE
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
...
...
@@ -460,7 +461,7 @@
"$(inherited)"
,
"$(PROJECT_DIR)/Flutter"
,
);
PRODUCT_BUNDLE_IDENTIFIER
=
fleamarket.taobao.com.flutterBoostExample
;
PRODUCT_BUNDLE_IDENTIFIER
=
fleamarket.taobao
3
.com.flutterBoostExample
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
REEXPORTED_LIBRARY_PATHS
=
""
;
VERSIONING_SYSTEM
=
"apple-generic"
;
...
...
@@ -473,7 +474,7 @@
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CURRENT_PROJECT_VERSION
=
"$(FLUTTER_BUILD_NUMBER)"
;
DEVELOPMENT_TEAM
=
""
;
DEVELOPMENT_TEAM
=
HH6T699A6Z
;
ENABLE_BITCODE
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
...
...
@@ -485,7 +486,7 @@
"$(inherited)"
,
"$(PROJECT_DIR)/Flutter"
,
);
PRODUCT_BUNDLE_IDENTIFIER
=
fleamarket.taobao.com.flutterBoostExample
;
PRODUCT_BUNDLE_IDENTIFIER
=
fleamarket.taobao
3
.com.flutterBoostExample
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
REEXPORTED_LIBRARY_PATHS
=
""
;
VERSIONING_SYSTEM
=
"apple-generic"
;
...
...
ios/Classes/Adaptor/FLBFlutterEngine.h
View file @
9604e1ea
...
...
@@ -27,11 +27,7 @@
NS_ASSUME_NONNULL_BEGIN
#if RELEASE_1_0
@interface
FLBFlutterEngine
:
NSObject
<
FLBFlutterProvider
>
@end
#endif
NS_ASSUME_NONNULL_END
ios/Classes/Adaptor/FLBFlutterEngine.m
View file @
9604e1ea
...
...
@@ -26,7 +26,6 @@
#import <Flutter/Flutter.h>
#import "FLBFlutterViewContainer.h"
#if RELEASE_1_0
@interface
FLBFlutterEngine
()
@property
(
nonatomic
,
strong
)
FlutterEngine
*
engine
;
...
...
@@ -102,4 +101,3 @@
@end
#endif
ios/Classes/Container/FLBFlutterViewContainer.m
View file @
9604e1ea
...
...
@@ -24,9 +24,6 @@
#import "FLBFlutterViewContainer.h"
#import "FLBFlutterApplication.h"
#import "FLBStackCache.h"
#import "FLBStackCacheObjectImg.h"
#import "FLBMemoryInspector.h"
#import "Service_NavigationService.h"
#import "FlutterBoostConfig.h"
#import "FLBFlutterViewContainerManager.h"
...
...
@@ -43,6 +40,25 @@
@implementation
FLBFlutterViewContainer
-
(
instancetype
)
init
{
[
FLUTTER_APP
.
flutterProvider
prepareEngineIfNeeded
];
if
(
self
=
[
super
initWithEngine
:
FLUTTER_APP
.
flutterProvider
.
engine
nibName:
nil
bundle:
nil
]){
[
self
_setup
];
}
return
self
;
}
-
(
instancetype
)
initWithCoder
:(
NSCoder
*
)
aDecoder
{
if
(
self
=
[
super
initWithCoder
:
aDecoder
])
{
NSAssert
(
NO
,
@"unsupported init method!"
);
[
self
_setup
];
}
return
self
;
}
-
(
void
)
setName
:(
NSString
*
)
name
params
:(
NSDictionary
*
)
params
{
if
(
!
_name
&&
name
){
...
...
@@ -67,7 +83,7 @@ static NSUInteger kInstanceCounter = 0;
{
kInstanceCounter
++
;
if
(
kInstanceCounter
==
1
){
[
FLUTTER_APP
resume
];
//
[FLUTTER_APP resume];
}
}
...
...
@@ -75,7 +91,7 @@ static NSUInteger kInstanceCounter = 0;
{
kInstanceCounter
--
;
if
([
self
.
class
instanceCounter
]
==
0
){
[[
FLBFlutterApplication
sharedApplication
]
pause
];
//
[[FLBFlutterApplication sharedApplication] pause];
}
}
...
...
@@ -89,41 +105,6 @@ static NSUInteger kInstanceCounter = 0;
static
long
long
sCounter
=
0
;
_identifier
=
sCounter
++
;
[
self
.
class
instanceCounterIncrease
];
SEL
sel
=
@selector
(
flutterViewDidShow
:
);
NSString
*
notiName
=
@"flutter_boost_container_showed"
;
[
NSNotificationCenter
.
defaultCenter
addObserver
:
self
selector:
sel
name:
notiName
object:
nil
];
}
-
(
instancetype
)
init
{
[
FLUTTER_APP
.
flutterProvider
prepareEngineIfNeeded
];
if
(
self
=
[
super
initWithEngine
:
FLUTTER_APP
.
flutterProvider
.
engine
nibName:
nil
bundle:
nil
]){
[
self
_setup
];
}
return
self
;
}
-
(
instancetype
)
initWithCoder
:(
NSCoder
*
)
aDecoder
{
if
(
self
=
[
super
initWithCoder
:
aDecoder
])
{
[
self
_setup
];
}
return
self
;
}
-
(
void
)
flutterViewDidAppear
:(
NSDictionary
*
)
params
{
//Notify flutter view appeared.
}
-
(
void
)
flutterViewDidShow
:(
NSNotification
*
)
notification
{
}
-
(
void
)
dealloc
...
...
@@ -138,17 +119,15 @@ static NSUInteger kInstanceCounter = 0;
pageName:
_name
params
:
_params
uniqueId:
[
self
uniqueIDString
]];
[[
FLBStackCache
sharedInstance
]
remove
:
self
.
uniqueIDString
];
[[
FLBFlutterApplication
sharedApplication
]
removeViewController
:
self
];
[
self
.
class
instanceCounterDecrease
];
}
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
self
.
view
.
backgroundColor
=
UIColor
.
whiteColor
;
}
//- (void)viewDidLoad {
// [super viewDidLoad];
// self.view.backgroundColor = UIColor.whiteColor;
//}
#pragma mark - ScreenShots
-
(
BOOL
)
isFlutterViewAttatched
...
...
@@ -164,7 +143,6 @@ static NSUInteger kInstanceCounter = 0;
-
(
void
)
detatchFlutterEngine
{
// [FLUTTER_APP.flutterProvider prepareEngineIfNeeded];
[
FLUTTER_APP
.
flutterProvider
detach
];
}
...
...
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