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
066e4741
Commit
066e4741
authored
Jun 27, 2019
by
Jidong Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code style opt
parent
0a4d2767
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
6 additions
and
47 deletions
+6
-47
ios/Classes/1.0/FLBFlutterViewContainer.m
ios/Classes/1.0/FLBFlutterViewContainer.m
+0
-1
ios/Classes/1.5/FLB2Factory.h
ios/Classes/1.5/FLB2Factory.h
+0
-1
ios/Classes/1.5/FLB2FlutterApplication.h
ios/Classes/1.5/FLB2FlutterApplication.h
+0
-1
ios/Classes/1.5/FLB2FlutterEngine.h
ios/Classes/1.5/FLB2FlutterEngine.h
+0
-2
ios/Classes/1.5/FLB2FlutterViewContainer.h
ios/Classes/1.5/FLB2FlutterViewContainer.h
+0
-4
ios/Classes/Boost/FLB2FlutterProvider.h
ios/Classes/Boost/FLB2FlutterProvider.h
+0
-4
ios/Classes/Boost/FLB2Platform.h
ios/Classes/Boost/FLB2Platform.h
+0
-3
ios/Classes/Boost/FLBAbstractFactory.h
ios/Classes/Boost/FLBAbstractFactory.h
+0
-4
ios/Classes/Boost/FLBFlutterAppDelegate.h
ios/Classes/Boost/FLBFlutterAppDelegate.h
+0
-3
ios/Classes/Boost/FLBFlutterAppDelegate.m
ios/Classes/Boost/FLBFlutterAppDelegate.m
+0
-1
ios/Classes/Boost/FLBFlutterApplicationInterface.h
ios/Classes/Boost/FLBFlutterApplicationInterface.h
+0
-5
ios/Classes/Boost/FLBFlutterContainer.h
ios/Classes/Boost/FLBFlutterContainer.h
+0
-2
ios/Classes/Boost/FLBFlutterContainerManager.h
ios/Classes/Boost/FLBFlutterContainerManager.h
+0
-2
ios/Classes/Boost/FLBPlatform.h
ios/Classes/Boost/FLBPlatform.h
+0
-2
ios/Classes/Boost/FlutterBoostPlugin.h
ios/Classes/Boost/FlutterBoostPlugin.h
+4
-4
ios/Classes/Boost/FlutterBoostPlugin_private.h
ios/Classes/Boost/FlutterBoostPlugin_private.h
+2
-5
ios/Classes/Messaging/BoostMessageChannel.mm
ios/Classes/Messaging/BoostMessageChannel.mm
+0
-3
No files found.
ios/Classes/1.0/FLBFlutterViewContainer.m
View file @
066e4741
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
#define FLUTTER_VIEW FLUTTER_APP.flutterViewController.view
#define FLUTTER_VIEW FLUTTER_APP.flutterViewController.view
#define FLUTTER_VC FLUTTER_APP.flutterViewController
#define FLUTTER_VC FLUTTER_APP.flutterViewController
@interface
FLBFlutterViewContainer
()
@interface
FLBFlutterViewContainer
()
@property
(
nonatomic
,
copy
,
readwrite
)
NSString
*
name
;
@property
(
nonatomic
,
copy
,
readwrite
)
NSString
*
name
;
@property
(
nonatomic
,
strong
,
readwrite
)
NSDictionary
*
params
;
@property
(
nonatomic
,
strong
,
readwrite
)
NSDictionary
*
params
;
...
...
ios/Classes/1.5/FLB2Factory.h
View file @
066e4741
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
FLB2Factory
:
NSObject
<
FLBAbstractFactory
>
@interface
FLB2Factory
:
NSObject
<
FLBAbstractFactory
>
@end
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
ios/Classes/1.5/FLB2FlutterApplication.h
View file @
066e4741
...
@@ -33,5 +33,4 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -33,5 +33,4 @@ NS_ASSUME_NONNULL_BEGIN
@interface
FLB2FlutterApplication
:
NSObject
<
FLBFlutterApplicationInterface
>
@interface
FLB2FlutterApplication
:
NSObject
<
FLBFlutterApplicationInterface
>
@property
(
nonatomic
,
strong
)
id
<
FLB2Platform
>
platform
;
@property
(
nonatomic
,
strong
)
id
<
FLB2Platform
>
platform
;
@end
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
ios/Classes/1.5/FLB2FlutterEngine.h
View file @
066e4741
...
@@ -26,8 +26,6 @@
...
@@ -26,8 +26,6 @@
#import "FLB2FlutterProvider.h"
#import "FLB2FlutterProvider.h"
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
FLB2FlutterEngine
:
NSObject
<
FLB2FlutterProvider
>
@interface
FLB2FlutterEngine
:
NSObject
<
FLB2FlutterProvider
>
@end
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
ios/Classes/1.5/FLB2FlutterViewContainer.h
View file @
066e4741
...
@@ -27,11 +27,7 @@
...
@@ -27,11 +27,7 @@
#import "FLBFlutterContainer.h"
#import "FLBFlutterContainer.h"
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
FLB2FlutterViewContainer
:
FlutterViewController
<
FLBFlutterContainer
>
@interface
FLB2FlutterViewContainer
:
FlutterViewController
<
FLBFlutterContainer
>
-
(
void
)
surfaceUpdated
:(
BOOL
)
appeared
;
-
(
void
)
surfaceUpdated
:(
BOOL
)
appeared
;
@end
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
ios/Classes/Boost/FLB2FlutterProvider.h
View file @
066e4741
...
@@ -29,15 +29,11 @@
...
@@ -29,15 +29,11 @@
@class
FlutterEngine
;
@class
FlutterEngine
;
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@protocol
FLB2FlutterProvider
<
FLBFlutterViewProvider
>
@protocol
FLB2FlutterProvider
<
FLBFlutterViewProvider
>
@required
@required
-
(
FlutterEngine
*
)
engine
;
-
(
FlutterEngine
*
)
engine
;
-
(
void
)
atacheToViewController
:(
FlutterViewController
*
)
vc
;
-
(
void
)
atacheToViewController
:(
FlutterViewController
*
)
vc
;
-
(
void
)
detach
;
-
(
void
)
detach
;
-
(
void
)
prepareEngineIfNeeded
;
-
(
void
)
prepareEngineIfNeeded
;
@end
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
ios/Classes/Boost/FLB2Platform.h
View file @
066e4741
...
@@ -26,9 +26,7 @@
...
@@ -26,9 +26,7 @@
#import "FLBPlatform.h"
#import "FLBPlatform.h"
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@protocol
FLB2Platform
<
FLBPlatform
>
@protocol
FLB2Platform
<
FLBPlatform
>
@optional
@optional
-
(
BOOL
)
useBoost2
;
-
(
BOOL
)
useBoost2
;
...
@@ -43,5 +41,4 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -43,5 +41,4 @@ NS_ASSUME_NONNULL_BEGIN
exts
:(
NSDictionary
*
)
exts
exts
:(
NSDictionary
*
)
exts
completion
:(
void
(
^
)(
BOOL
finished
))
completion
;
completion
:(
void
(
^
)(
BOOL
finished
))
completion
;
@end
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
ios/Classes/Boost/FLBAbstractFactory.h
View file @
066e4741
...
@@ -30,13 +30,9 @@
...
@@ -30,13 +30,9 @@
#import "FLBFlutterContainer.h"
#import "FLBFlutterContainer.h"
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@protocol
FLBAbstractFactory
<
NSObject
>
@protocol
FLBAbstractFactory
<
NSObject
>
@required
@required
-
(
id
<
FLBFlutterApplicationInterface
>
)
createApplication
:(
id
<
FLB2Platform
>
)
platform
;
-
(
id
<
FLBFlutterApplicationInterface
>
)
createApplication
:(
id
<
FLB2Platform
>
)
platform
;
-
(
id
<
FLBFlutterContainer
>
)
createFlutterContainer
;
-
(
id
<
FLBFlutterContainer
>
)
createFlutterContainer
;
@end
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
ios/Classes/Boost/FLBFlutterAppDelegate.h
View file @
066e4741
...
@@ -25,12 +25,9 @@
...
@@ -25,12 +25,9 @@
#import <Flutter/Flutter.h>
#import <Flutter/Flutter.h>
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
FLBFlutterAppDelegate
:
FlutterAppDelegate
@interface
FLBFlutterAppDelegate
:
FlutterAppDelegate
// Returns the key window's rootViewController, if it's a FlutterViewController.
// Returns the key window's rootViewController, if it's a FlutterViewController.
// Otherwise, returns nil.
// Otherwise, returns nil.
-
(
FlutterViewController
*
)
rootFlutterViewController
;
-
(
FlutterViewController
*
)
rootFlutterViewController
;
@end
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
ios/Classes/Boost/FLBFlutterAppDelegate.m
View file @
066e4741
...
@@ -31,5 +31,4 @@
...
@@ -31,5 +31,4 @@
-
(
FlutterViewController
*
)
rootFlutterViewController
{
-
(
FlutterViewController
*
)
rootFlutterViewController
{
return
FlutterBoostPlugin
.
sharedInstance
.
application
.
flutterViewController
;
return
FlutterBoostPlugin
.
sharedInstance
.
application
.
flutterViewController
;
}
}
@end
@end
ios/Classes/Boost/FLBFlutterApplicationInterface.h
View file @
066e4741
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
* THE SOFTWARE.
*/
*/
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
#import <Flutter/Flutter.h>
#import <Flutter/Flutter.h>
#import "FLB2Platform.h"
#import "FLB2Platform.h"
...
@@ -29,10 +28,8 @@
...
@@ -29,10 +28,8 @@
#import "FLB2FlutterProvider.h"
#import "FLB2FlutterProvider.h"
#import "FLBFlutterContainer.h"
#import "FLBFlutterContainer.h"
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@protocol
FLBFlutterApplicationInterface
<
NSObject
>
@protocol
FLBFlutterApplicationInterface
<
NSObject
>
@property
(
nonatomic
,
strong
)
id
<
FLB2Platform
>
platform
;
@property
(
nonatomic
,
strong
)
id
<
FLB2Platform
>
platform
;
-
(
id
<
FLB2FlutterProvider
>
)
flutterProvider
;
-
(
id
<
FLB2FlutterProvider
>
)
flutterProvider
;
...
@@ -57,7 +54,6 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -57,7 +54,6 @@ NS_ASSUME_NONNULL_BEGIN
-
(
BOOL
)
isRunning
;
-
(
BOOL
)
isRunning
;
#pragma mark - handle messages
#pragma mark - handle messages
-
(
void
)
close
:(
NSString
*
)
uid
-
(
void
)
close
:(
NSString
*
)
uid
result
:(
NSDictionary
*
)
result
result
:(
NSDictionary
*
)
result
exts
:(
NSDictionary
*
)
exts
exts
:(
NSDictionary
*
)
exts
...
@@ -79,7 +75,6 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -79,7 +75,6 @@ NS_ASSUME_NONNULL_BEGIN
uniqueId
:(
NSString
*
)
uniqueId
;
uniqueId
:(
NSString
*
)
uniqueId
;
@end
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
ios/Classes/Boost/FLBFlutterContainer.h
View file @
066e4741
...
@@ -26,12 +26,10 @@
...
@@ -26,12 +26,10 @@
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@protocol
FLBFlutterContainer
<
NSObject
>
@protocol
FLBFlutterContainer
<
NSObject
>
-
(
NSString
*
)
name
;
-
(
NSString
*
)
name
;
-
(
NSDictionary
*
)
params
;
-
(
NSDictionary
*
)
params
;
-
(
NSString
*
)
uniqueIDString
;
-
(
NSString
*
)
uniqueIDString
;
-
(
void
)
setName
:(
NSString
*
)
name
params
:(
NSDictionary
*
)
params
;
-
(
void
)
setName
:(
NSString
*
)
name
params
:(
NSDictionary
*
)
params
;
@end
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
ios/Classes/Boost/FLBFlutterContainerManager.h
View file @
066e4741
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
#import "FLBFlutterContainer.h"
#import "FLBFlutterContainer.h"
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
FLBFlutterContainerManager
:
NSObject
@interface
FLBFlutterContainerManager
:
NSObject
-
(
NSString
*
)
peak
;
-
(
NSString
*
)
peak
;
...
@@ -35,5 +34,4 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -35,5 +34,4 @@ NS_ASSUME_NONNULL_BEGIN
-
(
BOOL
)
contains
:(
id
<
FLBFlutterContainer
>
)
vc
;
-
(
BOOL
)
contains
:(
id
<
FLBFlutterContainer
>
)
vc
;
@end
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
ios/Classes/Boost/FLBPlatform.h
View file @
066e4741
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@protocol
FLBPlatform
<
NSObject
>
@protocol
FLBPlatform
<
NSObject
>
@required
@required
...
@@ -39,5 +38,4 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -39,5 +38,4 @@ NS_ASSUME_NONNULL_BEGIN
params
:(
NSDictionary
*
)
params
params
:(
NSDictionary
*
)
params
completion
:(
void
(
^
)(
BOOL
finished
))
completion
;
completion
:(
void
(
^
)(
BOOL
finished
))
completion
;
@end
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
ios/Classes/Boost/FlutterBoostPlugin.h
View file @
066e4741
...
@@ -27,16 +27,17 @@
...
@@ -27,16 +27,17 @@
#import "FLBTypes.h"
#import "FLBTypes.h"
@interface
FlutterBoostPlugin
:
NSObject
<
FlutterPlugin
>
@interface
FlutterBoostPlugin
:
NSObject
<
FlutterPlugin
>
#pragma mark - Initializer
#pragma mark - Initializer
+
(
instancetype
)
sharedInstance
;
+
(
instancetype
)
sharedInstance
;
-
(
void
)
startFlutterWithPlatform
:(
id
<
FLB2Platform
>
)
platform
-
(
void
)
startFlutterWithPlatform
:(
id
<
FLB2Platform
>
)
platform
onStart
:(
void
(
^
)(
id
<
FlutterBinaryMessenger
,
FlutterTextureRegistry
,
FlutterPluginRegistry
>
engine
))
callback
;
onStart
:(
void
(
^
)(
id
<
FlutterBinaryMessenger
,
FlutterTextureRegistry
,
FlutterPluginRegistry
>
engine
))
callback
;
#pragma mark - Some properties.
#pragma mark - Some properties.
-
(
BOOL
)
isRunning
;
-
(
BOOL
)
isRunning
;
-
(
FlutterViewController
*
)
currentViewController
;
-
(
FlutterViewController
*
)
currentViewController
;
#pragma mark - broadcast event to/from flutter
#pragma mark - broadcast event to/from flutter
...
@@ -45,5 +46,4 @@
...
@@ -45,5 +46,4 @@
-
(
FLBVoidCallback
)
addEventListener
:(
FLBEventListener
)
listner
-
(
FLBVoidCallback
)
addEventListener
:(
FLBEventListener
)
listner
forName
:(
NSString
*
)
name
;
forName
:(
NSString
*
)
name
;
@end
@end
ios/Classes/Boost/FlutterBoostPlugin_private.h
View file @
066e4741
...
@@ -30,13 +30,10 @@
...
@@ -30,13 +30,10 @@
id
<
FLBFlutterApplicationInterface
>
_application
;
id
<
FLBFlutterApplicationInterface
>
_application
;
id
<
FLBAbstractFactory
>
_factory
;
id
<
FLBAbstractFactory
>
_factory
;
}
}
-
(
id
<
FLBFlutterApplicationInterface
>
)
application
;
-
(
id
<
FLBAbstractFactory
>
)
factory
;
@property
(
nonatomic
,
strong
)
FlutterMethodChannel
*
methodChannel
;
@property
(
nonatomic
,
strong
)
FlutterMethodChannel
*
methodChannel
;
@property
(
nonatomic
,
copy
)
NSString
*
fPageId
;
@property
(
nonatomic
,
copy
)
NSString
*
fPageId
;
@property
(
nonatomic
,
copy
)
NSString
*
fPagename
;
@property
(
nonatomic
,
copy
)
NSString
*
fPagename
;
@property
(
nonatomic
,
strong
)
NSDictionary
*
fParams
;
@property
(
nonatomic
,
strong
)
NSDictionary
*
fParams
;
-
(
id
<
FLBFlutterApplicationInterface
>
)
application
;
-
(
id
<
FLBAbstractFactory
>
)
factory
;
@end
@end
ios/Classes/Messaging/BoostMessageChannel.mm
View file @
066e4741
...
@@ -21,12 +21,9 @@
...
@@ -21,12 +21,9 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
* THE SOFTWARE.
*/
*/
#import "BoostMessageChannel.h"
#import "BoostMessageChannel.h"
#import "FlutterBoostPlugin_private.h"
#import "FlutterBoostPlugin_private.h"
@implementation
BoostMessageChannel
@implementation
BoostMessageChannel
+
(
NSMutableDictionary
*
)
lists
{
+
(
NSMutableDictionary
*
)
lists
{
...
...
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