@@ -1 +1 @@ | |||||
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_alibc","path":"/Users/fnuser04/Documents/flutterAPP/zhiying_flutter_alibc/","dependencies":[]}],"android":[{"name":"flutter_alibc","path":"/Users/fnuser04/Documents/flutterAPP/zhiying_flutter_alibc/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"flutter_alibc","dependencies":[]}],"date_created":"2021-04-17 11:06:38.571844","version":"1.22.0"} | |||||
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_alibc","path":"/Users/fnuouser/Documents/code/zhiying/zhiying_flutter_alibc/","dependencies":[]}],"android":[{"name":"flutter_alibc","path":"/Users/fnuouser/Documents/code/zhiying/zhiying_flutter_alibc/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"flutter_alibc","dependencies":[]}],"date_created":"2022-03-30 14:17:04.674376","version":"2.10.3"} |
@@ -21,6 +21,6 @@ | |||||
<key>CFBundleVersion</key> | <key>CFBundleVersion</key> | ||||
<string>1.0</string> | <string>1.0</string> | ||||
<key>MinimumOSVersion</key> | <key>MinimumOSVersion</key> | ||||
<string>8.0</string> | |||||
<string>9.0</string> | |||||
</dict> | </dict> | ||||
</plist> | </plist> |
@@ -1,16 +1,14 @@ | |||||
#!/bin/sh | #!/bin/sh | ||||
# This is a generated file; do not edit or check into version control. | # This is a generated file; do not edit or check into version control. | ||||
export "FLUTTER_ROOT=/Users/fnuser04/Documents/flutterModel/flutter" | |||||
export "FLUTTER_APPLICATION_PATH=/Users/fnuser04/Documents/flutterAPP/zhiying_flutter_alibc/example" | |||||
export "FLUTTER_TARGET=/Users/fnuser04/Documents/flutterAPP/zhiying_flutter_alibc/example/lib/main.dart" | |||||
export "FLUTTER_ROOT=/Users/fnuouser/Documents/code/flutter" | |||||
export "FLUTTER_APPLICATION_PATH=/Users/fnuouser/Documents/code/zhiying/zhiying_flutter_alibc/example" | |||||
export "COCOAPODS_PARALLEL_CODE_SIGN=true" | |||||
export "FLUTTER_TARGET=/Users/fnuouser/Documents/code/zhiying/zhiying_flutter_alibc/example/lib/main.dart" | |||||
export "FLUTTER_BUILD_DIR=build" | export "FLUTTER_BUILD_DIR=build" | ||||
export "SYMROOT=${SOURCE_ROOT}/../build/ios" | |||||
export "OTHER_LDFLAGS=$(inherited) -framework Flutter" | |||||
export "FLUTTER_FRAMEWORK_DIR=/Users/fnuser04/Documents/flutterModel/flutter/bin/cache/artifacts/engine/ios" | |||||
export "FLUTTER_BUILD_NAME=1.0.0" | export "FLUTTER_BUILD_NAME=1.0.0" | ||||
export "FLUTTER_BUILD_NUMBER=1" | export "FLUTTER_BUILD_NUMBER=1" | ||||
export "DART_DEFINES=flutter.inspector.structuredErrors%3Dtrue" | |||||
export "DART_DEFINES=Zmx1dHRlci5pbnNwZWN0b3Iuc3RydWN0dXJlZEVycm9ycz10cnVl,RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==" | |||||
export "DART_OBFUSCATION=false" | export "DART_OBFUSCATION=false" | ||||
export "TRACK_WIDGET_CREATION=true" | export "TRACK_WIDGET_CREATION=true" | ||||
export "TREE_SHAKE_ICONS=false" | export "TREE_SHAKE_ICONS=false" | ||||
export "PACKAGE_CONFIG=.packages" | |||||
export "PACKAGE_CONFIG=/Users/fnuouser/Documents/code/zhiying/zhiying_flutter_alibc/example/.dart_tool/package_config.json" |
@@ -3,7 +3,7 @@ | |||||
archiveVersion = 1; | archiveVersion = 1; | ||||
classes = { | classes = { | ||||
}; | }; | ||||
objectVersion = 46; | |||||
objectVersion = 50; | |||||
objects = { | objects = { | ||||
/* Begin PBXBuildFile section */ | /* Begin PBXBuildFile section */ | ||||
@@ -191,7 +191,7 @@ | |||||
97C146E61CF9000F007C117D /* Project object */ = { | 97C146E61CF9000F007C117D /* Project object */ = { | ||||
isa = PBXProject; | isa = PBXProject; | ||||
attributes = { | attributes = { | ||||
LastUpgradeCheck = 1020; | |||||
LastUpgradeCheck = 1300; | |||||
ORGANIZATIONNAME = "The Chromium Authors"; | ORGANIZATIONNAME = "The Chromium Authors"; | ||||
TargetAttributes = { | TargetAttributes = { | ||||
97C146ED1CF9000F007C117D = { | 97C146ED1CF9000F007C117D = { | ||||
@@ -394,7 +394,7 @@ | |||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | ||||
GCC_WARN_UNUSED_FUNCTION = YES; | GCC_WARN_UNUSED_FUNCTION = YES; | ||||
GCC_WARN_UNUSED_VARIABLE = YES; | GCC_WARN_UNUSED_VARIABLE = YES; | ||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0; | |||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0; | |||||
MTL_ENABLE_DEBUG_INFO = NO; | MTL_ENABLE_DEBUG_INFO = NO; | ||||
SDKROOT = iphoneos; | SDKROOT = iphoneos; | ||||
TARGETED_DEVICE_FAMILY = "1,2"; | TARGETED_DEVICE_FAMILY = "1,2"; | ||||
@@ -483,7 +483,7 @@ | |||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | ||||
GCC_WARN_UNUSED_FUNCTION = YES; | GCC_WARN_UNUSED_FUNCTION = YES; | ||||
GCC_WARN_UNUSED_VARIABLE = YES; | GCC_WARN_UNUSED_VARIABLE = YES; | ||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0; | |||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0; | |||||
MTL_ENABLE_DEBUG_INFO = YES; | MTL_ENABLE_DEBUG_INFO = YES; | ||||
ONLY_ACTIVE_ARCH = YES; | ONLY_ACTIVE_ARCH = YES; | ||||
SDKROOT = iphoneos; | SDKROOT = iphoneos; | ||||
@@ -532,7 +532,7 @@ | |||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | ||||
GCC_WARN_UNUSED_FUNCTION = YES; | GCC_WARN_UNUSED_FUNCTION = YES; | ||||
GCC_WARN_UNUSED_VARIABLE = YES; | GCC_WARN_UNUSED_VARIABLE = YES; | ||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0; | |||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0; | |||||
MTL_ENABLE_DEBUG_INFO = NO; | MTL_ENABLE_DEBUG_INFO = NO; | ||||
SDKROOT = iphoneos; | SDKROOT = iphoneos; | ||||
TARGETED_DEVICE_FAMILY = "1,2"; | TARGETED_DEVICE_FAMILY = "1,2"; | ||||
@@ -2,6 +2,6 @@ | |||||
<Workspace | <Workspace | ||||
version = "1.0"> | version = "1.0"> | ||||
<FileRef | <FileRef | ||||
location = "group:Runner.xcodeproj"> | |||||
location = "self:"> | |||||
</FileRef> | </FileRef> | ||||
</Workspace> | </Workspace> |
@@ -1,6 +1,6 @@ | |||||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||
<Scheme | <Scheme | ||||
LastUpgradeVersion = "1020" | |||||
LastUpgradeVersion = "1300" | |||||
version = "1.3"> | version = "1.3"> | ||||
<BuildAction | <BuildAction | ||||
parallelizeBuildables = "YES" | parallelizeBuildables = "YES" | ||||
@@ -7,42 +7,42 @@ packages: | |||||
name: async | name: async | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "2.5.0-nullsafety.1" | |||||
version: "2.8.2" | |||||
boolean_selector: | boolean_selector: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: boolean_selector | name: boolean_selector | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "2.1.0-nullsafety.1" | |||||
version: "2.1.0" | |||||
characters: | characters: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: characters | name: characters | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.1.0-nullsafety.3" | |||||
version: "1.2.0" | |||||
charcode: | charcode: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: charcode | name: charcode | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.2.0-nullsafety.1" | |||||
version: "1.3.1" | |||||
clock: | clock: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: clock | name: clock | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.1.0-nullsafety.1" | |||||
version: "1.1.0" | |||||
collection: | collection: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: collection | name: collection | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.15.0-nullsafety.3" | |||||
version: "1.15.0" | |||||
cupertino_icons: | cupertino_icons: | ||||
dependency: "direct main" | dependency: "direct main" | ||||
description: | description: | ||||
@@ -56,7 +56,7 @@ packages: | |||||
name: fake_async | name: fake_async | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.2.0-nullsafety.1" | |||||
version: "1.2.0" | |||||
flutter: | flutter: | ||||
dependency: "direct main" | dependency: "direct main" | ||||
description: flutter | description: flutter | ||||
@@ -80,21 +80,28 @@ packages: | |||||
name: matcher | name: matcher | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "0.12.10-nullsafety.1" | |||||
version: "0.12.11" | |||||
material_color_utilities: | |||||
dependency: transitive | |||||
description: | |||||
name: material_color_utilities | |||||
url: "https://pub.flutter-io.cn" | |||||
source: hosted | |||||
version: "0.1.3" | |||||
meta: | meta: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: meta | name: meta | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.3.0-nullsafety.3" | |||||
version: "1.7.0" | |||||
path: | path: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: path | name: path | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.8.0-nullsafety.1" | |||||
version: "1.8.0" | |||||
sky_engine: | sky_engine: | ||||
dependency: transitive | dependency: transitive | ||||
description: flutter | description: flutter | ||||
@@ -106,55 +113,55 @@ packages: | |||||
name: source_span | name: source_span | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.8.0-nullsafety.2" | |||||
version: "1.8.1" | |||||
stack_trace: | stack_trace: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: stack_trace | name: stack_trace | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.10.0-nullsafety.1" | |||||
version: "1.10.0" | |||||
stream_channel: | stream_channel: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: stream_channel | name: stream_channel | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "2.1.0-nullsafety.1" | |||||
version: "2.1.0" | |||||
string_scanner: | string_scanner: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: string_scanner | name: string_scanner | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.1.0-nullsafety.1" | |||||
version: "1.1.0" | |||||
term_glyph: | term_glyph: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: term_glyph | name: term_glyph | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.2.0-nullsafety.1" | |||||
version: "1.2.0" | |||||
test_api: | test_api: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: test_api | name: test_api | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "0.2.19-nullsafety.2" | |||||
version: "0.4.8" | |||||
typed_data: | typed_data: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: typed_data | name: typed_data | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.3.0-nullsafety.3" | |||||
version: "1.3.0" | |||||
vector_math: | vector_math: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: vector_math | name: vector_math | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "2.1.0-nullsafety.3" | |||||
version: "2.1.1" | |||||
sdks: | sdks: | ||||
dart: ">=2.10.0-110 <2.11.0" | |||||
dart: ">=2.14.0 <3.0.0" |
@@ -46,8 +46,8 @@ class AlibcTools { | |||||
} | } | ||||
// 设置淘宝客数据 | // 设置淘宝客数据 | ||||
static Map getTaokeMap(TaokeParams taokeParams) { | |||||
Map taoKe; | |||||
static Map? getTaokeMap(TaokeParams? taokeParams) { | |||||
Map? taoKe; | |||||
if (taokeParams != null) { | if (taokeParams != null) { | ||||
taoKe = { | taoKe = { | ||||
"adzoneId": taokeParams.adzoneId ?? "", | "adzoneId": taokeParams.adzoneId ?? "", | ||||
@@ -3,20 +3,20 @@ import 'alibc_const_key.dart'; | |||||
class InitModel { | class InitModel { | ||||
// 错误码 | // 错误码 | ||||
final String errorCode; | |||||
final String? errorCode; | |||||
// 错误信息 | // 错误信息 | ||||
final String errorMessage; | |||||
final String? errorMessage; | |||||
InitModel(this.errorCode, this.errorMessage); | InitModel(this.errorCode, this.errorMessage); | ||||
} | } | ||||
class LoginModel { | class LoginModel { | ||||
// 错误码 | // 错误码 | ||||
final String errorCode; | |||||
final String? errorCode; | |||||
// 错误信息 | // 错误信息 | ||||
final String errorMessage; | |||||
final String? errorMessage; | |||||
UserModel data; | |||||
UserModel? data; | |||||
LoginModel(this.errorCode, this.errorMessage, {this.data}); | LoginModel(this.errorCode, this.errorMessage, {this.data}); | ||||
} | } | ||||
@@ -24,13 +24,13 @@ class LoginModel { | |||||
// 用户信息 | // 用户信息 | ||||
class UserModel { | class UserModel { | ||||
// 用户昵称 | // 用户昵称 | ||||
final String nick; | |||||
final String? nick; | |||||
// 头像地址 | // 头像地址 | ||||
final String avatarUrl; | |||||
final String openId; | |||||
final String openSid; | |||||
final String topAccessToken; | |||||
final String topAuthCode; | |||||
final String? avatarUrl; | |||||
final String? openId; | |||||
final String? openSid; | |||||
final String? topAccessToken; | |||||
final String? topAuthCode; | |||||
UserModel(this.nick, this.avatarUrl, this.openId, this.openSid, | UserModel(this.nick, this.avatarUrl, this.openId, this.openSid, | ||||
this.topAccessToken, this.topAuthCode); | this.topAccessToken, this.topAuthCode); | ||||
} | } | ||||
@@ -38,11 +38,11 @@ class UserModel { | |||||
// 淘宝客的参数 | // 淘宝客的参数 | ||||
class TaokeParams { | class TaokeParams { | ||||
//有adzoneId则pid失效 | //有adzoneId则pid失效 | ||||
String adzoneId; | |||||
String pid; | |||||
String unionId; | |||||
String subPid; | |||||
Map extParams; | |||||
String? adzoneId; | |||||
String? pid; | |||||
String? unionId; | |||||
String? subPid; | |||||
Map? extParams; | |||||
TaokeParams( | TaokeParams( | ||||
{this.adzoneId, this.pid, this.unionId, this.subPid, this.extParams}); | {this.adzoneId, this.pid, this.unionId, this.subPid, this.extParams}); | ||||
} | } | ||||
@@ -50,13 +50,13 @@ class TaokeParams { | |||||
// url打开或者page打开等的数据 | // url打开或者page打开等的数据 | ||||
class TradeResult { | class TradeResult { | ||||
// 错误码,0为成功,非0为失败 | // 错误码,0为成功,非0为失败 | ||||
String errorCode; | |||||
String? errorCode; | |||||
// 错误信息 | // 错误信息 | ||||
String errorMessage; | |||||
String? errorMessage; | |||||
TradeResultType type; | |||||
TradeResultType? type; | |||||
PayResult payResult; | |||||
PayResult? payResult; | |||||
// AddCardResult addCardResult; | // AddCardResult addCardResult; | ||||
// Android没有,所以去掉 | // Android没有,所以去掉 | ||||
// TradeFailResult tradeFailResult; | // TradeFailResult tradeFailResult; | ||||
@@ -73,9 +73,9 @@ class TradeResult { | |||||
// 付款成功的result | // 付款成功的result | ||||
class PayResult { | class PayResult { | ||||
// 支付成功的订单 | // 支付成功的订单 | ||||
final List<String> paySuccessOrders; | |||||
final List<String>? paySuccessOrders; | |||||
// 支付失败的订单 | // 支付失败的订单 | ||||
final List<String> payFailedOrders; | |||||
final List<String>? payFailedOrders; | |||||
PayResult(this.paySuccessOrders, this.payFailedOrders); | PayResult(this.paySuccessOrders, this.payFailedOrders); | ||||
} | } | ||||
@@ -24,8 +24,8 @@ class FlutterAlibc { | |||||
// ..setMethodCallHandler(_handler); | // ..setMethodCallHandler(_handler); | ||||
static Future<String> get platformVersion async { | |||||
final String version = await _channel.invokeMethod('getPlatformVersion'); | |||||
static Future<String?> get platformVersion async { | |||||
final String? version = await _channel.invokeMethod('getPlatformVersion'); | |||||
return version; | return version; | ||||
} | } | ||||
@@ -36,8 +36,8 @@ class FlutterAlibc { | |||||
/// errorCode, //0为初始化成功,其他为失败 | /// errorCode, //0为初始化成功,其他为失败 | ||||
/// errorMessage, //message | /// errorMessage, //message | ||||
///} | ///} | ||||
static Future<InitModel> initAlibc({String version, String appName}) async { | |||||
Map result = await _channel.invokeMethod("initAlibc", {"version": version, "appName": appName}); | |||||
static Future<InitModel> initAlibc({String? version, String? appName}) async { | |||||
Map result = await (_channel.invokeMethod("initAlibc", {"version": version, "appName": appName}) as FutureOr<Map<dynamic, dynamic>>); | |||||
return InitModel(result[AlibcConstKey.errorCode], result[AlibcConstKey.errorMessage]); | return InitModel(result[AlibcConstKey.errorCode], result[AlibcConstKey.errorMessage]); | ||||
} | } | ||||
@@ -47,7 +47,7 @@ class FlutterAlibc { | |||||
/// @return: 成功则返回的data为用户信息,失败则没有data | /// @return: 成功则返回的data为用户信息,失败则没有data | ||||
/// | /// | ||||
static Future<LoginModel> loginTaoBao() async { | static Future<LoginModel> loginTaoBao() async { | ||||
Map result = await _channel.invokeMethod("loginTaoBao"); | |||||
Map result = await (_channel.invokeMethod("loginTaoBao") as FutureOr<Map<dynamic, dynamic>>); | |||||
// 判断成功还是失败 | // 判断成功还是失败 | ||||
if (result[AlibcConstKey.errorCode] != "0") { | if (result[AlibcConstKey.errorCode] != "0") { | ||||
return LoginModel( | return LoginModel( | ||||
@@ -74,17 +74,17 @@ class FlutterAlibc { | |||||
/// @param {type} | /// @param {type} | ||||
/// @return: | /// @return: | ||||
/// Map<String,String> | /// Map<String,String> | ||||
static Future<Map<dynamic, dynamic>> taoKeLogin({ | |||||
@required String url, | |||||
static Future<Map<dynamic, dynamic>?> taoKeLogin({ | |||||
required String url, | |||||
AlibcOpenType openType = AlibcOpenType.AlibcOpenTypeAuto, | AlibcOpenType openType = AlibcOpenType.AlibcOpenTypeAuto, | ||||
bool isNeedCustomNativeFailMode = false, | bool isNeedCustomNativeFailMode = false, | ||||
AlibcNativeFailMode nativeFailMode = AlibcNativeFailMode.AlibcNativeFailModeNone, | AlibcNativeFailMode nativeFailMode = AlibcNativeFailMode.AlibcNativeFailModeNone, | ||||
AlibcSchemeType schemeType = AlibcSchemeType.AlibcSchemeTaoBao, | AlibcSchemeType schemeType = AlibcSchemeType.AlibcSchemeTaoBao, | ||||
TaokeParams taokeParams, | |||||
String backUrl, | |||||
TaokeParams? taokeParams, | |||||
String? backUrl, | |||||
}) async { | }) async { | ||||
Map taoKe = AlibcTools.getTaokeMap(taokeParams); | |||||
Map result = await _channel.invokeMethod("taoKeLogin", { | |||||
Map? taoKe = AlibcTools.getTaokeMap(taokeParams); | |||||
Map? result = await _channel.invokeMethod("taoKeLogin", { | |||||
"url": url, | "url": url, | ||||
"openType": openType.index, | "openType": openType.index, | ||||
"isNeedCustomNativeFailMode": isNeedCustomNativeFailMode, | "isNeedCustomNativeFailMode": isNeedCustomNativeFailMode, | ||||
@@ -102,8 +102,8 @@ class FlutterAlibc { | |||||
/// name app名字 | /// name app名字 | ||||
/// alibcAppKey 百川Key | /// alibcAppKey 百川Key | ||||
/// Map<String,String> | /// Map<String,String> | ||||
static Future<Map<dynamic, dynamic>> taoKeLoginNew(String name, String alibcAppKey) async { | |||||
Map result = await _channel.invokeMethod("taoKeLoginNew", { | |||||
static Future<Map<dynamic, dynamic>?> taoKeLoginNew(String name, String alibcAppKey) async { | |||||
Map? result = await _channel.invokeMethod("taoKeLoginNew", { | |||||
"name": name, | "name": name, | ||||
"alibcAppKey": alibcAppKey, | "alibcAppKey": alibcAppKey, | ||||
}); | }); | ||||
@@ -116,8 +116,8 @@ class FlutterAlibc { | |||||
/// @param {type} | /// @param {type} | ||||
/// @return: | /// @return: | ||||
/// Map<String,String> | /// Map<String,String> | ||||
static Future<Map<dynamic, dynamic>> taoKeLoginNewIOS(String name, String alibcAppKey) async { | |||||
Map result = await _channel.invokeMethod("taoKeLogin", { | |||||
static Future<Map<dynamic, dynamic>?> taoKeLoginNewIOS(String name, String alibcAppKey) async { | |||||
Map? result = await _channel.invokeMethod("taoKeLogin", { | |||||
"name": name, | "name": name, | ||||
"alibcAppKey": alibcAppKey, | "alibcAppKey": alibcAppKey, | ||||
}); | }); | ||||
@@ -137,15 +137,15 @@ class FlutterAlibc { | |||||
/// @return: | /// @return: | ||||
/// | /// | ||||
static Future<TradeResult> openByUrl( | static Future<TradeResult> openByUrl( | ||||
{@required String url, | |||||
{required String url, | |||||
AlibcOpenType openType = AlibcOpenType.AlibcOpenTypeAuto, | AlibcOpenType openType = AlibcOpenType.AlibcOpenTypeAuto, | ||||
bool isNeedCustomNativeFailMode = false, | bool isNeedCustomNativeFailMode = false, | ||||
AlibcNativeFailMode nativeFailMode = AlibcNativeFailMode.AlibcNativeFailModeNone, | AlibcNativeFailMode nativeFailMode = AlibcNativeFailMode.AlibcNativeFailModeNone, | ||||
AlibcSchemeType schemeType = AlibcSchemeType.AlibcSchemeTmall, | AlibcSchemeType schemeType = AlibcSchemeType.AlibcSchemeTmall, | ||||
TaokeParams taokeParams, | |||||
String backUrl, | |||||
TaokeParams? taokeParams, | |||||
String? backUrl, | |||||
bool isAuth = false}) async { | bool isAuth = false}) async { | ||||
Map taoKe = AlibcTools.getTaokeMap(taokeParams); | |||||
Map? taoKe = AlibcTools.getTaokeMap(taokeParams); | |||||
var result = await _channel.invokeMethod("openByUrl", { | var result = await _channel.invokeMethod("openByUrl", { | ||||
"url": url, | "url": url, | ||||
"openType": openType.index, | "openType": openType.index, | ||||
@@ -182,20 +182,20 @@ class FlutterAlibc { | |||||
/// @return: | /// @return: | ||||
/// | /// | ||||
static Future<TradeResult> openItemDetail({ | static Future<TradeResult> openItemDetail({ | ||||
@required String itemID, | |||||
required String itemID, | |||||
// iOS独占 | // iOS独占 | ||||
// bool isNeedPush = false, | // bool isNeedPush = false, | ||||
AlibcOpenType openType = AlibcOpenType.AlibcOpenTypeAuto, | AlibcOpenType openType = AlibcOpenType.AlibcOpenTypeAuto, | ||||
bool isNeedCustomNativeFailMode = false, | bool isNeedCustomNativeFailMode = false, | ||||
AlibcNativeFailMode nativeFailMode = AlibcNativeFailMode.AlibcNativeFailModeNone, | AlibcNativeFailMode nativeFailMode = AlibcNativeFailMode.AlibcNativeFailModeNone, | ||||
AlibcSchemeType schemeType = AlibcSchemeType.AlibcSchemeTmall, | AlibcSchemeType schemeType = AlibcSchemeType.AlibcSchemeTmall, | ||||
TaokeParams taokeParams, | |||||
TaokeParams? taokeParams, | |||||
// 额外需要追踪的业务数据 | // 额外需要追踪的业务数据 | ||||
Map trackParam, | |||||
String backUrl, | |||||
Map? trackParam, | |||||
String? backUrl, | |||||
}) async { | }) async { | ||||
Map taoKe = AlibcTools.getTaokeMap(taokeParams); | |||||
Map result = await _channel.invokeMethod("openItemDetail", { | |||||
Map? taoKe = AlibcTools.getTaokeMap(taokeParams); | |||||
Map result = await (_channel.invokeMethod("openItemDetail", { | |||||
"itemID": itemID, | "itemID": itemID, | ||||
// "isNeedPush": isNeedPush, | // "isNeedPush": isNeedPush, | ||||
"openType": openType.index, | "openType": openType.index, | ||||
@@ -205,7 +205,7 @@ class FlutterAlibc { | |||||
"taokeParams": taoKe, | "taokeParams": taoKe, | ||||
"trackParam": trackParam, | "trackParam": trackParam, | ||||
"backUrl": backUrl | "backUrl": backUrl | ||||
}); | |||||
}) as FutureOr<Map<dynamic, dynamic>>); | |||||
TradeResult tradeResult = AlibcTools.getTradeResult(result); | TradeResult tradeResult = AlibcTools.getTradeResult(result); | ||||
return tradeResult; | return tradeResult; | ||||
} | } | ||||
@@ -217,21 +217,21 @@ class FlutterAlibc { | |||||
/// @return: | /// @return: | ||||
/// | /// | ||||
static Future<TradeResult> openShop({ | static Future<TradeResult> openShop({ | ||||
@required String shopId, | |||||
required String shopId, | |||||
// iOS独占 | // iOS独占 | ||||
// bool isNeedPush = false, | // bool isNeedPush = false, | ||||
AlibcOpenType openType = AlibcOpenType.AlibcOpenTypeAuto, | AlibcOpenType openType = AlibcOpenType.AlibcOpenTypeAuto, | ||||
bool isNeedCustomNativeFailMode = false, | bool isNeedCustomNativeFailMode = false, | ||||
AlibcNativeFailMode nativeFailMode = AlibcNativeFailMode.AlibcNativeFailModeNone, | AlibcNativeFailMode nativeFailMode = AlibcNativeFailMode.AlibcNativeFailModeNone, | ||||
AlibcSchemeType schemeType = AlibcSchemeType.AlibcSchemeTmall, | AlibcSchemeType schemeType = AlibcSchemeType.AlibcSchemeTmall, | ||||
TaokeParams taokeParams, | |||||
TaokeParams? taokeParams, | |||||
// 额外需要追踪的业务数据 | // 额外需要追踪的业务数据 | ||||
Map trackParam, | |||||
String backUrl, | |||||
Map? trackParam, | |||||
String? backUrl, | |||||
}) async { | }) async { | ||||
Map taoKe = AlibcTools.getTaokeMap(taokeParams); | |||||
Map? taoKe = AlibcTools.getTaokeMap(taokeParams); | |||||
Map result = await _channel.invokeMethod("openShop", { | |||||
Map result = await (_channel.invokeMethod("openShop", { | |||||
"shopId": shopId, | "shopId": shopId, | ||||
// "isNeedPush": isNeedPush, | // "isNeedPush": isNeedPush, | ||||
"openType": openType.index, | "openType": openType.index, | ||||
@@ -241,7 +241,7 @@ class FlutterAlibc { | |||||
"taokeParams": taoKe, | "taokeParams": taoKe, | ||||
"trackParam": trackParam, | "trackParam": trackParam, | ||||
"backUrl": backUrl | "backUrl": backUrl | ||||
}); | |||||
}) as FutureOr<Map<dynamic, dynamic>>); | |||||
TradeResult tradeResult = AlibcTools.getTradeResult(result); | TradeResult tradeResult = AlibcTools.getTradeResult(result); | ||||
return tradeResult; | return tradeResult; | ||||
} | } | ||||
@@ -258,14 +258,14 @@ class FlutterAlibc { | |||||
bool isNeedCustomNativeFailMode = false, | bool isNeedCustomNativeFailMode = false, | ||||
AlibcNativeFailMode nativeFailMode = AlibcNativeFailMode.AlibcNativeFailModeNone, | AlibcNativeFailMode nativeFailMode = AlibcNativeFailMode.AlibcNativeFailModeNone, | ||||
AlibcSchemeType schemeType = AlibcSchemeType.AlibcSchemeTmall, | AlibcSchemeType schemeType = AlibcSchemeType.AlibcSchemeTmall, | ||||
TaokeParams taokeParams, | |||||
TaokeParams? taokeParams, | |||||
// 额外需要追踪的业务数据 | // 额外需要追踪的业务数据 | ||||
Map trackParam, | |||||
String backUrl, | |||||
Map? trackParam, | |||||
String? backUrl, | |||||
}) async { | }) async { | ||||
Map taoKe = AlibcTools.getTaokeMap(taokeParams); | |||||
Map? taoKe = AlibcTools.getTaokeMap(taokeParams); | |||||
Map result = await _channel.invokeMethod("openCart", { | |||||
Map result = await (_channel.invokeMethod("openCart", { | |||||
// "isNeedPush": isNeedPush, | // "isNeedPush": isNeedPush, | ||||
"openType": openType.index, | "openType": openType.index, | ||||
"isNeedCustomNativeFailMode": isNeedCustomNativeFailMode, | "isNeedCustomNativeFailMode": isNeedCustomNativeFailMode, | ||||
@@ -274,7 +274,7 @@ class FlutterAlibc { | |||||
"taokeParams": taoKe, | "taokeParams": taoKe, | ||||
"trackParam": trackParam, | "trackParam": trackParam, | ||||
"backUrl": backUrl | "backUrl": backUrl | ||||
}); | |||||
}) as FutureOr<Map<dynamic, dynamic>>); | |||||
TradeResult tradeResult = AlibcTools.getTradeResult(result); | TradeResult tradeResult = AlibcTools.getTradeResult(result); | ||||
return tradeResult; | return tradeResult; | ||||
} | } | ||||
@@ -289,7 +289,7 @@ class FlutterAlibc { | |||||
_channel.invokeMethod("useAlipayNative", {"isNeed": isNeed}); | _channel.invokeMethod("useAlipayNative", {"isNeed": isNeed}); | ||||
} | } | ||||
static Future<String> getUdid() async { | |||||
static Future<String?> getUdid() async { | |||||
var map = await _channel.invokeMethod("getUdid"); | var map = await _channel.invokeMethod("getUdid"); | ||||
print(map); | print(map); | ||||
return map['udid']; | return map['udid']; | ||||
@@ -7,49 +7,49 @@ packages: | |||||
name: async | name: async | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "2.5.0-nullsafety.1" | |||||
version: "2.8.2" | |||||
boolean_selector: | boolean_selector: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: boolean_selector | name: boolean_selector | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "2.1.0-nullsafety.1" | |||||
version: "2.1.0" | |||||
characters: | characters: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: characters | name: characters | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.1.0-nullsafety.3" | |||||
version: "1.2.0" | |||||
charcode: | charcode: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: charcode | name: charcode | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.2.0-nullsafety.1" | |||||
version: "1.3.1" | |||||
clock: | clock: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: clock | name: clock | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.1.0-nullsafety.1" | |||||
version: "1.1.0" | |||||
collection: | collection: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: collection | name: collection | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.15.0-nullsafety.3" | |||||
version: "1.15.0" | |||||
fake_async: | fake_async: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: fake_async | name: fake_async | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.2.0-nullsafety.1" | |||||
version: "1.2.0" | |||||
flutter: | flutter: | ||||
dependency: "direct main" | dependency: "direct main" | ||||
description: flutter | description: flutter | ||||
@@ -66,21 +66,28 @@ packages: | |||||
name: matcher | name: matcher | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "0.12.10-nullsafety.1" | |||||
version: "0.12.11" | |||||
material_color_utilities: | |||||
dependency: transitive | |||||
description: | |||||
name: material_color_utilities | |||||
url: "https://pub.flutter-io.cn" | |||||
source: hosted | |||||
version: "0.1.3" | |||||
meta: | meta: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: meta | name: meta | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.3.0-nullsafety.3" | |||||
version: "1.7.0" | |||||
path: | path: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: path | name: path | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.8.0-nullsafety.1" | |||||
version: "1.8.0" | |||||
sky_engine: | sky_engine: | ||||
dependency: transitive | dependency: transitive | ||||
description: flutter | description: flutter | ||||
@@ -92,55 +99,55 @@ packages: | |||||
name: source_span | name: source_span | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.8.0-nullsafety.2" | |||||
version: "1.8.1" | |||||
stack_trace: | stack_trace: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: stack_trace | name: stack_trace | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.10.0-nullsafety.1" | |||||
version: "1.10.0" | |||||
stream_channel: | stream_channel: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: stream_channel | name: stream_channel | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "2.1.0-nullsafety.1" | |||||
version: "2.1.0" | |||||
string_scanner: | string_scanner: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: string_scanner | name: string_scanner | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.1.0-nullsafety.1" | |||||
version: "1.1.0" | |||||
term_glyph: | term_glyph: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: term_glyph | name: term_glyph | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.2.0-nullsafety.1" | |||||
version: "1.2.0" | |||||
test_api: | test_api: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: test_api | name: test_api | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "0.2.19-nullsafety.2" | |||||
version: "0.4.8" | |||||
typed_data: | typed_data: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: typed_data | name: typed_data | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "1.3.0-nullsafety.3" | |||||
version: "1.3.0" | |||||
vector_math: | vector_math: | ||||
dependency: transitive | dependency: transitive | ||||
description: | description: | ||||
name: vector_math | name: vector_math | ||||
url: "https://pub.flutter-io.cn" | url: "https://pub.flutter-io.cn" | ||||
source: hosted | source: hosted | ||||
version: "2.1.0-nullsafety.3" | |||||
version: "2.1.1" | |||||
sdks: | sdks: | ||||
dart: ">=2.10.0-110 <2.11.0" | |||||
dart: ">=2.14.0 <3.0.0" |
@@ -5,7 +5,7 @@ author: wx<wuxinggggg@gmail.com> | |||||
homepage: https://github.com/FlutterTaoBaoKe/flutter_alibc.git | homepage: https://github.com/FlutterTaoBaoKe/flutter_alibc.git | ||||
environment: | environment: | ||||
sdk: '>=2.1.0 <3.0.0' | |||||
sdk: '>=2.12.0 <3.0.0' | |||||
dependencies: | dependencies: | ||||
flutter: | flutter: | ||||