Objective-C 代码格式化

This commit is contained in:
v7lin
2019-12-02 22:53:03 +08:00
parent bfbff5e320
commit cb1c195d9d
5 changed files with 287 additions and 239 deletions

@ -1,6 +1,7 @@
## 1.0.2 - 2019.12.02
*
* Objective-C
## 1.0.1 - 2019.11.26

@ -2,7 +2,7 @@ PODS:
- Flutter (1.0.0)
- path_provider (0.0.1):
- Flutter
- tencent_kit (1.0.0):
- tencent_kit (1.0.2):
- Flutter
DEPENDENCIES:
@ -21,8 +21,8 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
path_provider: fb74bd0465e96b594bb3b5088ee4a4e7bb1f2a9d
tencent_kit: ef18a7780c8d8503b448f7d8f25b48abd2706e11
tencent_kit: b057e0ae9d0c9b5d02c893b3e3ac602200cb733d
PODFILE CHECKSUM: 7fb83752f59ead6285236625b82473f90b1cb932
COCOAPODS: 1.8.0
COCOAPODS: 1.8.4

44
ios/.clang-format Executable file

@ -0,0 +1,44 @@
#
BasedOnStyle: LLVM
#
IndentWidth: 4
#
BreakBeforeBraces: Attach
#
AllowShortLoopsOnASingleLine: false
# if
AllowShortIfStatementsOnASingleLine: false
# switch的case缩进
IndentCaseLabels: true
# OC的block的缩进宽度
ObjCBlockIndentWidth: 4
# OC
ObjCSpaceAfterProperty: true
#
ColumnLimit: 0
#
AlignTrailingComments: true
#
SpaceAfterCStyleCast: false
#
SpacesInParentheses: false
#
SpacesInSquareBrackets: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false

@ -247,7 +247,8 @@ static NSString *const SCHEME_FILE = @"file";
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
return
[QQApiInterface handleOpenURL:url delegate:self] ||
[QQApiInterface handleOpenURL:url
delegate:self] ||
([TencentOAuth CanHandleOpenURL:url] && [TencentOAuth HandleOpenURL:url]);
}
@ -256,7 +257,8 @@ static NSString *const SCHEME_FILE = @"file";
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
return
[QQApiInterface handleOpenURL:url delegate:self] ||
[QQApiInterface handleOpenURL:url
delegate:self] ||
([TencentOAuth CanHandleOpenURL:url] && [TencentOAuth HandleOpenURL:url]);
}
@ -265,7 +267,8 @@ static NSString *const SCHEME_FILE = @"file";
options:
(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options {
return
[QQApiInterface handleOpenURL:url delegate:self] ||
[QQApiInterface handleOpenURL:url
delegate:self] ||
([TencentOAuth CanHandleOpenURL:url] && [TencentOAuth HandleOpenURL:url]);
}

@ -74,7 +74,7 @@ class Tencent {
}) {
assert(appId != null && appId.isNotEmpty);
assert(
!Platform.isIOS || universalLink == null || universalLink.isNotEmpty);
!Platform.isIOS || (universalLink != null && universalLink.isNotEmpty));
final Map<String, dynamic> arguments = <String, dynamic>{
_ARGUMENT_KEY_APPID: appId,
// _ARGUMENT_KEY_UNIVERSALLINK: universalLink,