Commit 13db5c72 authored by Jidong Chen's avatar Jidong Chen

1,Set default value for accessibility enable to YES.

2,Some code opt.
parent 1d1e0c42
...@@ -8,3 +8,4 @@ ...@@ -8,3 +8,4 @@
build/ build/
pubspec.lock pubspec.lock
.flutter-plugins .flutter-plugins
flutter
/Users/jidong/Documents/FlutterBoost /Users/jidong/Documents/opensource/flutter_boost
\ No newline at end of file \ No newline at end of file
/Users/jidong/.pub-cache/hosted/pub.dartlang.org/xservice_kit-0.0.26 /Users/jidong/.pub-cache/hosted/pub.dartlang.org/xservice_kit-0.0.27
\ No newline at end of file \ No newline at end of file
...@@ -7,21 +7,20 @@ PODS: ...@@ -7,21 +7,20 @@ PODS:
- Flutter - Flutter
DEPENDENCIES: DEPENDENCIES:
- flutter_boost (from `/Users/jidong/Documents/FlutterBoost/ios`) - Flutter (from `.symlinks/flutter/ios`)
- xservice_kit (from `/Users/jidong/.pub-cache/hosted/pub.dartlang.org/xservice_kit-0.0.26/ios`) - flutter_boost (from `/Users/jidong/Documents/opensource/flutter_boost/ios`)
- xservice_kit (from `/Users/jidong/.pub-cache/hosted/pub.dartlang.org/xservice_kit-0.0.27/ios`)
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- Flutter
EXTERNAL SOURCES: EXTERNAL SOURCES:
Flutter:
:path: ".symlinks/flutter/ios"
flutter_boost: flutter_boost:
:path: "/Users/jidong/Documents/FlutterBoost/ios" :path: "/Users/jidong/Documents/opensource/flutter_boost/ios"
xservice_kit: xservice_kit:
:path: "/Users/jidong/.pub-cache/hosted/pub.dartlang.org/xservice_kit-0.0.26/ios" :path: "/Users/jidong/.pub-cache/hosted/pub.dartlang.org/xservice_kit-0.0.27/ios"
SPEC CHECKSUMS: SPEC CHECKSUMS:
Flutter: fa617360ba1995d522016bfa59d68df27ac12e02 Flutter: 9d0fac939486c9aba2809b7982dfdbb47a7b0296
flutter_boost: 24249d12d924d858cf445a84949484bc08bca000 flutter_boost: 24249d12d924d858cf445a84949484bc08bca000
xservice_kit: a86c64372b3e41e7d8e9b1a0b9139866680f525c xservice_kit: a86c64372b3e41e7d8e9b1a0b9139866680f525c
......
...@@ -200,7 +200,6 @@ ...@@ -200,7 +200,6 @@
TargetAttributes = { TargetAttributes = {
97C146ED1CF9000F007C117D = { 97C146ED1CF9000F007C117D = {
CreatedOnToolsVersion = 7.3.1; CreatedOnToolsVersion = 7.3.1;
DevelopmentTeam = E83K84RE26;
}; };
}; };
}; };
...@@ -261,7 +260,7 @@ ...@@ -261,7 +260,7 @@
); );
inputPaths = ( inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh", "${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
"${PODS_ROOT}/Flutter/Flutter.framework", "${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework",
); );
name = "[CP] Embed Pods Frameworks"; name = "[CP] Embed Pods Frameworks";
outputPaths = ( outputPaths = (
...@@ -449,7 +448,7 @@ ...@@ -449,7 +448,7 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = E83K84RE26; DEVELOPMENT_TEAM = "";
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
...@@ -474,7 +473,7 @@ ...@@ -474,7 +473,7 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = E83K84RE26; DEVELOPMENT_TEAM = "";
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
......
...@@ -37,6 +37,10 @@ ...@@ -37,6 +37,10 @@
} }
} }
- (BOOL)accessibilityEnable
{
return YES;
}
- (void)closePage:(NSString *)uid animated:(BOOL)animated params:(NSDictionary *)params completion:(void (^)(BOOL))completion - (void)closePage:(NSString *)uid animated:(BOOL)animated params:(NSDictionary *)params completion:(void (^)(BOOL))completion
......
...@@ -14,8 +14,6 @@ environment: ...@@ -14,8 +14,6 @@ environment:
dependencies: dependencies:
xservice_kit: ^0.0.18
flutter: flutter:
sdk: flutter sdk: flutter
......
...@@ -47,7 +47,12 @@ ...@@ -47,7 +47,12 @@
method_exchangeImplementations(originalMethod, swizzledMethod); method_exchangeImplementations(originalMethod, swizzledMethod);
_viewController = [FLBFlutterViewControllerAdaptor new]; _viewController = [FLBFlutterViewControllerAdaptor new];
if([platform respondsToSelector:@selector(accessibilityEnable)]){
_viewController.accessibilityEnable = [platform accessibilityEnable]; _viewController.accessibilityEnable = [platform accessibilityEnable];
}else{
_viewController.accessibilityEnable = YES;
}
[_viewController view]; [_viewController view];
Class clazz = NSClassFromString(@"GeneratedPluginRegistrant"); Class clazz = NSClassFromString(@"GeneratedPluginRegistrant");
if (clazz) { if (clazz) {
......
...@@ -50,12 +50,12 @@ ...@@ -50,12 +50,12 @@
- (void)viewWillDisappear:(BOOL)animated - (void)viewWillDisappear:(BOOL)animated
{ {
[[UIApplication sharedApplication] sendAction:@selector(resignFirstResponder) to:nil from:nil forEvent:nil]; [[UIApplication sharedApplication] sendAction:@selector(resignFirstResponder) to:nil from:nil forEvent:nil];
//miss super call intentionally. //Avoid super call intentionally.
} }
- (void)viewDidDisappear:(BOOL)animated - (void)viewDidDisappear:(BOOL)animated
{ {
//Miss super call intentionally. //Avoid super call intentionally.
[[[UIApplication sharedApplication] keyWindow] endEditing:YES]; [[[UIApplication sharedApplication] keyWindow] endEditing:YES];
} }
......
...@@ -28,10 +28,11 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -28,10 +28,11 @@ NS_ASSUME_NONNULL_BEGIN
@protocol FLBPlatform <NSObject> @protocol FLBPlatform <NSObject>
@required @optional
//Whether to enable accessibility support. Default value is Yes.
- (BOOL)accessibilityEnable; - (BOOL)accessibilityEnable;
@required
- (void)openPage:(NSString *)name - (void)openPage:(NSString *)name
params:(NSDictionary *)params params:(NSDictionary *)params
animated:(BOOL)animated animated:(BOOL)animated
......
...@@ -11,7 +11,7 @@ dependencies: ...@@ -11,7 +11,7 @@ dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
xservice_kit: ^0.0.26 xservice_kit: ^0.0.27
# For information on the generic Dart part of this file, see the # For information on the generic Dart part of this file, see the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment