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
246090f6
Commit
246090f6
authored
Apr 22, 2019
by
Jidong Chen
Committed by
福居
Apr 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch to disable accessibility support.
parent
67f132b9
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
43 additions
and
0 deletions
+43
-0
ios/Classes/Adaptor/FLBFlutterEngine.m
ios/Classes/Adaptor/FLBFlutterEngine.m
+5
-0
ios/Classes/Adaptor/FLBFlutterEngineOld.m
ios/Classes/Adaptor/FLBFlutterEngineOld.m
+5
-0
ios/Classes/Adaptor/FLBFlutterViewControllerAdaptor.h
ios/Classes/Adaptor/FLBFlutterViewControllerAdaptor.h
+3
-0
ios/Classes/Adaptor/FLBFlutterViewControllerAdaptor.m
ios/Classes/Adaptor/FLBFlutterViewControllerAdaptor.m
+17
-0
ios/Classes/Adaptor/FLBFlutterViewProvider.h
ios/Classes/Adaptor/FLBFlutterViewProvider.h
+1
-0
ios/Classes/Boost/FLBFlutterApplication.h
ios/Classes/Boost/FLBFlutterApplication.h
+1
-0
ios/Classes/Boost/FLBFlutterApplication.m
ios/Classes/Boost/FLBFlutterApplication.m
+4
-0
ios/Classes/Boost/FlutterBoostPlugin.h
ios/Classes/Boost/FlutterBoostPlugin.h
+2
-0
ios/Classes/Boost/FlutterBoostPlugin.m
ios/Classes/Boost/FlutterBoostPlugin.m
+5
-0
No files found.
ios/Classes/Adaptor/FLBFlutterEngine.m
View file @
246090f6
...
@@ -84,6 +84,11 @@
...
@@ -84,6 +84,11 @@
[[
_engine
lifecycleChannel
]
sendMessage
:
@"AppLifecycleState.inactive"
];
[[
_engine
lifecycleChannel
]
sendMessage
:
@"AppLifecycleState.inactive"
];
}
}
-
(
void
)
setAccessibilityEnabled
:(
BOOL
)
enable
{
self
.
viewController
.
accessibilityEnable
=
enable
;
}
@end
@end
#endif
#endif
ios/Classes/Adaptor/FLBFlutterEngineOld.m
View file @
246090f6
...
@@ -85,4 +85,9 @@
...
@@ -85,4 +85,9 @@
[
self
.
viewController
sendOnChannel
:
channel
message
:
data
];
[
self
.
viewController
sendOnChannel
:
channel
message
:
data
];
}
}
-
(
void
)
setAccessibilityEnabled
:(
BOOL
)
enable
{
self
.
viewController
.
accessibilityEnable
=
enable
;
}
@end
@end
ios/Classes/Adaptor/FLBFlutterViewControllerAdaptor.h
View file @
246090f6
...
@@ -31,6 +31,9 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -31,6 +31,9 @@ NS_ASSUME_NONNULL_BEGIN
-
(
void
)
boost_viewDidAppear
:(
BOOL
)
animated
;
-
(
void
)
boost_viewDidAppear
:(
BOOL
)
animated
;
-
(
void
)
boost_viewWillDisappear
:(
BOOL
)
animated
;
-
(
void
)
boost_viewWillDisappear
:(
BOOL
)
animated
;
-
(
void
)
boost_viewDidDisappear
:(
BOOL
)
animated
;
-
(
void
)
boost_viewDidDisappear
:(
BOOL
)
animated
;
@property
(
nonatomic
,
assign
)
BOOL
accessibilityEnable
;
@end
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
ios/Classes/Adaptor/FLBFlutterViewControllerAdaptor.m
View file @
246090f6
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
*/
*/
#import "FLBFlutterViewControllerAdaptor.h"
#import "FLBFlutterViewControllerAdaptor.h"
#import <objc/runtime.h>
@interface
FLBFlutterViewControllerAdaptor
()
@interface
FLBFlutterViewControllerAdaptor
()
@end
@end
...
@@ -32,6 +33,15 @@
...
@@ -32,6 +33,15 @@
-
(
void
)
viewDidLoad
{
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
super
viewDidLoad
];
Class
class
=
[
self
class
];
SEL
originalSelector
=
@selector
(
onAccessibilityStatusChanged
:
);
SEL
swizzledSelector
=
@selector
(
fixed_onAccessibilityStatusChanged
:
);
Method
originalMethod
=
class_getInstanceMethod
(
class
,
originalSelector
);
Method
swizzledMethod
=
class_getInstanceMethod
(
class
,
swizzledSelector
);
method_exchangeImplementations
(
originalMethod
,
swizzledMethod
);
self
.
view
.
backgroundColor
=
[
UIColor
whiteColor
];
self
.
view
.
backgroundColor
=
[
UIColor
whiteColor
];
// Do any additional setup after loading the view.
// Do any additional setup after loading the view.
...
@@ -96,4 +106,11 @@
...
@@ -96,4 +106,11 @@
//Override this to avoid unnecessary splash Screen.
//Override this to avoid unnecessary splash Screen.
}
}
-
(
void
)
fixed_onAccessibilityStatusChanged
:(
NSNotification
*
)
notification
{
if
(
self
.
accessibilityEnable
){
[
self
fixed_onAccessibilityStatusChanged
:
notification
];
}
}
@end
@end
ios/Classes/Adaptor/FLBFlutterViewProvider.h
View file @
246090f6
...
@@ -33,6 +33,7 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -33,6 +33,7 @@ NS_ASSUME_NONNULL_BEGIN
@protocol
FLBFlutterViewProvider
<
NSObject
>
@protocol
FLBFlutterViewProvider
<
NSObject
>
@required
@required
-
(
void
)
setAccessibilityEnable
:(
BOOL
)
enable
;
-
(
FlutterViewController
*
)
viewController
;
-
(
FlutterViewController
*
)
viewController
;
-
(
void
)
pause
;
-
(
void
)
pause
;
-
(
void
)
resume
;
-
(
void
)
resume
;
...
...
ios/Classes/Boost/FLBFlutterApplication.h
View file @
246090f6
...
@@ -33,6 +33,7 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -33,6 +33,7 @@ NS_ASSUME_NONNULL_BEGIN
@property
(
nonatomic
,
strong
)
id
<
FLBPlatform
>
platform
;
@property
(
nonatomic
,
strong
)
id
<
FLBPlatform
>
platform
;
#pragma mark - Getters
#pragma mark - Getters
-
(
void
)
setAccessibilityEnable
:(
BOOL
)
enable
;
+
(
FLBFlutterApplication
*
)
sharedApplication
;
+
(
FLBFlutterApplication
*
)
sharedApplication
;
-
(
void
)
startFlutterWithPlatform
:(
id
<
FLBPlatform
>
)
platform
-
(
void
)
startFlutterWithPlatform
:(
id
<
FLBPlatform
>
)
platform
onStart
:(
void
(
^
)(
FlutterViewController
*
))
callback
;
onStart
:(
void
(
^
)(
FlutterViewController
*
))
callback
;
...
...
ios/Classes/Boost/FLBFlutterApplication.m
View file @
246090f6
...
@@ -142,6 +142,10 @@
...
@@ -142,6 +142,10 @@
[
self
.
viewProvider
inactive
];
[
self
.
viewProvider
inactive
];
}
}
-
(
void
)
setAccessibilityEnable
:(
BOOL
)
enable
{
[
self
.
viewProvider
setAccessibilityEnable
:
enable
];
}
@end
@end
ios/Classes/Boost/FlutterBoostPlugin.h
View file @
246090f6
...
@@ -31,6 +31,8 @@ typedef FLBFlutterViewContainer * (^FLBPageBuilder)(NSString *name,NSDictionary
...
@@ -31,6 +31,8 @@ typedef FLBFlutterViewContainer * (^FLBPageBuilder)(NSString *name,NSDictionary
@interface
FlutterBoostPlugin
:
NSObject
<
FlutterPlugin
>
@interface
FlutterBoostPlugin
:
NSObject
<
FlutterPlugin
>
#pragma mark - Initializer
#pragma mark - Initializer
-
(
void
)
setAccessibilityEnable
:(
BOOL
)
enable
;
+
(
instancetype
)
sharedInstance
;
+
(
instancetype
)
sharedInstance
;
-
(
void
)
startFlutterWithPlatform
:(
id
<
FLBPlatform
>
)
platform
onStart
:(
void
(
^
)(
FlutterViewController
*
))
callback
;
-
(
void
)
startFlutterWithPlatform
:(
id
<
FLBPlatform
>
)
platform
onStart
:(
void
(
^
)(
FlutterViewController
*
))
callback
;
...
...
ios/Classes/Boost/FlutterBoostPlugin.m
View file @
246090f6
...
@@ -101,4 +101,9 @@
...
@@ -101,4 +101,9 @@
[
_resultMediator
removeHandlerForKey
:
vcid
];
[
_resultMediator
removeHandlerForKey
:
vcid
];
}
}
-
(
void
)
setAccessibilityEnable
:(
BOOL
)
enable
{
[[
FLBFlutterApplication
sharedApplication
]
setAccessibilityEnable
:
enable
];
}
@end
@end
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