mirror of
https://github.com/RxReader/tencent_kit.git
synced 2025-07-21 03:32:06 +08:00
Objective-C 代码格式化
This commit is contained in:
@ -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
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,
|
||||
|
Reference in New Issue
Block a user