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
......@@ -7,4 +7,5 @@
build/
pubspec.lock
.flutter-plugins
\ No newline at end of file
.flutter-plugins
flutter
/Users/jidong/Documents/FlutterBoost
\ No newline at end of file
/Users/jidong/Documents/opensource/flutter_boost
\ No newline at end of file
/Users/jidong/.pub-cache/hosted/pub.dartlang.org/xservice_kit-0.0.26
\ No newline at end of file
/Users/jidong/.pub-cache/hosted/pub.dartlang.org/xservice_kit-0.0.27
\ No newline at end of file
......@@ -7,21 +7,20 @@ PODS:
- Flutter
DEPENDENCIES:
- flutter_boost (from `/Users/jidong/Documents/FlutterBoost/ios`)
- xservice_kit (from `/Users/jidong/.pub-cache/hosted/pub.dartlang.org/xservice_kit-0.0.26/ios`)
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- Flutter
- Flutter (from `.symlinks/flutter/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`)
EXTERNAL SOURCES:
Flutter:
:path: ".symlinks/flutter/ios"
flutter_boost:
:path: "/Users/jidong/Documents/FlutterBoost/ios"
:path: "/Users/jidong/Documents/opensource/flutter_boost/ios"
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:
Flutter: fa617360ba1995d522016bfa59d68df27ac12e02
Flutter: 9d0fac939486c9aba2809b7982dfdbb47a7b0296
flutter_boost: 24249d12d924d858cf445a84949484bc08bca000
xservice_kit: a86c64372b3e41e7d8e9b1a0b9139866680f525c
......
......@@ -200,7 +200,6 @@
TargetAttributes = {
97C146ED1CF9000F007C117D = {
CreatedOnToolsVersion = 7.3.1;
DevelopmentTeam = E83K84RE26;
};
};
};
......@@ -261,7 +260,7 @@
);
inputPaths = (
"${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";
outputPaths = (
......@@ -449,7 +448,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = E83K84RE26;
DEVELOPMENT_TEAM = "";
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
......@@ -474,7 +473,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = E83K84RE26;
DEVELOPMENT_TEAM = "";
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
......
......@@ -37,6 +37,10 @@
}
}
- (BOOL)accessibilityEnable
{
return YES;
}
- (void)closePage:(NSString *)uid animated:(BOOL)animated params:(NSDictionary *)params completion:(void (^)(BOOL))completion
......
......@@ -14,8 +14,6 @@ environment:
dependencies:
xservice_kit: ^0.0.18
flutter:
sdk: flutter
......
......@@ -47,7 +47,12 @@
method_exchangeImplementations(originalMethod, swizzledMethod);
_viewController = [FLBFlutterViewControllerAdaptor new];
_viewController.accessibilityEnable = [platform accessibilityEnable];
if([platform respondsToSelector:@selector(accessibilityEnable)]){
_viewController.accessibilityEnable = [platform accessibilityEnable];
}else{
_viewController.accessibilityEnable = YES;
}
[_viewController view];
Class clazz = NSClassFromString(@"GeneratedPluginRegistrant");
if (clazz) {
......
......@@ -50,12 +50,12 @@
- (void)viewWillDisappear:(BOOL)animated
{
[[UIApplication sharedApplication] sendAction:@selector(resignFirstResponder) to:nil from:nil forEvent:nil];
//miss super call intentionally.
//Avoid super call intentionally.
}
- (void)viewDidDisappear:(BOOL)animated
{
//Miss super call intentionally.
//Avoid super call intentionally.
[[[UIApplication sharedApplication] keyWindow] endEditing:YES];
}
......
......@@ -28,10 +28,11 @@ NS_ASSUME_NONNULL_BEGIN
@protocol FLBPlatform <NSObject>
@required
@optional
//Whether to enable accessibility support. Default value is Yes.
- (BOOL)accessibilityEnable;
@required
- (void)openPage:(NSString *)name
params:(NSDictionary *)params
animated:(BOOL)animated
......
......@@ -11,7 +11,7 @@ dependencies:
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
......
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