Update to Tuyoo SDK 1.0.36
This commit is contained in:
parent
3fbb25b2a8
commit
16c6543479
Binary file not shown.
Binary file not shown.
@ -9,6 +9,6 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.tuyoo.component</groupId>
|
||||
<artifactId>growsdk-gasdk</artifactId>
|
||||
<version>2.4.24_0711-RELEASE</version>
|
||||
<version>2.4.25_1211-RELEASE</version>
|
||||
<packaging>aar</packaging>
|
||||
</project>
|
||||
Binary file not shown.
Binary file not shown.
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.tuyoo.component.login</groupId>
|
||||
<artifactId>framework-common</artifactId>
|
||||
<version>0.2.2</version>
|
||||
<version>0.2.3</version>
|
||||
<packaging>aar</packaging>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
Binary file not shown.
Binary file not shown.
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.tuyoo.component</groupId>
|
||||
<artifactId>sdk_inter_layer</artifactId>
|
||||
<version>0.6.6</version>
|
||||
<version>0.6.8</version>
|
||||
<packaging>aar</packaging>
|
||||
<dependencies/>
|
||||
</project>
|
||||
Binary file not shown.
Binary file not shown.
@ -3,19 +3,19 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.tuyoo.component</groupId>
|
||||
<artifactId>sdk_inter_layer_ga</artifactId>
|
||||
<version>0.6.6</version>
|
||||
<version>0.6.8</version>
|
||||
<packaging>aar</packaging>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.tuyoo.component</groupId>
|
||||
<artifactId>sdk_inter_layer</artifactId>
|
||||
<version>0.6.6</version>
|
||||
<version>0.6.8</version>
|
||||
<scope>implementation</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.tuyoo.component</groupId>
|
||||
<artifactId>growsdk-gasdk</artifactId>
|
||||
<version>2.4.23_0618-RELEASE</version>
|
||||
<version>2.4.25_1211-RELEASE</version>
|
||||
<scope>implementation</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
@ -3,19 +3,19 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.tuyoo.component</groupId>
|
||||
<artifactId>sdk_inter_layer_login</artifactId>
|
||||
<version>0.6.6</version>
|
||||
<version>0.6.8</version>
|
||||
<packaging>aar</packaging>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.tuyoo.component</groupId>
|
||||
<artifactId>sdk_inter_layer</artifactId>
|
||||
<version>0.6.6</version>
|
||||
<version>0.6.8</version>
|
||||
<scope>implementation</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.tuyoo.component.login</groupId>
|
||||
<artifactId>framework-common</artifactId>
|
||||
<version>0.2.2</version>
|
||||
<version>0.2.3</version>
|
||||
<scope>implementation</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
Binary file not shown.
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.tuyoo.component</groupId>
|
||||
<artifactId>sdk_inter_layer_push</artifactId>
|
||||
<version>0.6.8</version>
|
||||
<packaging>aar</packaging>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.tuyoo.component</groupId>
|
||||
<artifactId>sdk_inter_layer</artifactId>
|
||||
<version>0.6.8</version>
|
||||
<scope>implementation</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.tuyoo.component</groupId>
|
||||
<artifactId>growsdk-pushbase</artifactId>
|
||||
<version>1.0.16_1231-RELEASE</version>
|
||||
<scope>implementation</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
Binary file not shown.
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.tuyoo.component</groupId>
|
||||
<artifactId>sdk_inter_layer_survey</artifactId>
|
||||
<version>0.6.8</version>
|
||||
<packaging>aar</packaging>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.tuyoo.component</groupId>
|
||||
<artifactId>sdk_inter_layer</artifactId>
|
||||
<version>0.6.8</version>
|
||||
<scope>implementation</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.tuyoo.component</groupId>
|
||||
<artifactId>growsdk-survey</artifactId>
|
||||
<version>1.3.0_0926-RELEASE</version>
|
||||
<scope>implementation</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
Binary file not shown.
Binary file not shown.
@ -3,19 +3,19 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.tuyoo.component</groupId>
|
||||
<artifactId>sdk_inter_layer_unity</artifactId>
|
||||
<version>0.5.2</version>
|
||||
<version>0.5.3</version>
|
||||
<packaging>aar</packaging>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.tuyoo.component</groupId>
|
||||
<artifactId>sdk_inter_layer</artifactId>
|
||||
<version>0.6.6</version>
|
||||
<version>0.6.8</version>
|
||||
<scope>implementation</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.tuyoo.component</groupId>
|
||||
<artifactId>sdk_inter_layer_ga</artifactId>
|
||||
<version>0.6.6</version>
|
||||
<version>0.6.8</version>
|
||||
<scope>implementation</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@ -1,8 +1,8 @@
|
||||
{
|
||||
"engine_sdk": "com.tuyoo.component:sdk_inter_layer_unity:0.5.2",
|
||||
"com.tuyoo.component:sdk_inter_layer_login": "com.tuyoo.component:sdk_inter_layer_login:0.6.6",
|
||||
"com.tuyoo.component:sdk_inter_layer_survey": "com.tuyoo.component:sdk_inter_layer_survey:0.6.6",
|
||||
"com.tuyoo.component:sdk_inter_layer_push": "com.tuyoo.component:sdk_inter_layer_survey:0.6.6",
|
||||
"engine_sdk": "com.tuyoo.component:sdk_inter_layer_unity:0.5.3",
|
||||
"com.tuyoo.component:sdk_inter_layer_login": "com.tuyoo.component:sdk_inter_layer_login:0.6.8",
|
||||
"com.tuyoo.component:sdk_inter_layer_survey": "com.tuyoo.component:sdk_inter_layer_survey:0.6.8",
|
||||
"com.tuyoo.component:sdk_inter_layer_push": "com.tuyoo.component:sdk_inter_layer_push:0.6.8",
|
||||
"com.tuyoo.component.login.third:alipayweb": "com.tuyoo.component.login.third:alipayweb:0.2.0",
|
||||
"com.tuyoo.component.login.third:quickLogin": "com.tuyoo.component.login.third:quickLogin:0.2.0"
|
||||
}
|
||||
@ -40,8 +40,11 @@ public class TYPreProcessWeb : IPreprocessBuildWithReport
|
||||
}
|
||||
if (channelType == TYWebBuildConfig.MiniGameChannelType.BYTEDANCE)
|
||||
{
|
||||
// copy js sdk 资源到 StreamingAssets下,只有StreamingAssets的资源会被渠道打包zip包里
|
||||
CopyBytedanceResource();
|
||||
string zjDirectoryPath = Path.Combine(Application.dataPath, TYWebBuildConfig.TY_WEB_CHANNEL_RESOURCE_DIR, "zijieminigame");
|
||||
string[] files = Directory.GetFiles(zjDirectoryPath, "tuyoosdk_zijiegame*.js");
|
||||
string sourceFile = files[0];
|
||||
CopyBytedanceResource(sourceFile);
|
||||
InsertBytedanceTuyooSdk(sourceFile);
|
||||
}
|
||||
if (channelType == TYWebBuildConfig.MiniGameChannelType.JINGDONG)
|
||||
{
|
||||
@ -176,13 +179,22 @@ public class TYPreProcessWeb : IPreprocessBuildWithReport
|
||||
InsertContentToFile(wxGameJSFilePath, 2, content, keyword);
|
||||
}
|
||||
|
||||
private void CopyBytedanceResource()
|
||||
private void CopyBytedanceResource(string sourceFile)
|
||||
{
|
||||
string directoryPath = Path.Combine(Application.dataPath, TYWebBuildConfig.TY_WEB_CHANNEL_RESOURCE_DIR, "zijieminigame");
|
||||
string[] files = Directory.GetFiles(directoryPath, "tuyoosdk_zijiegame*.js");
|
||||
string sourceFile = files[0];
|
||||
string targetFilePath = Path.Combine(Application.streamingAssetsPath, "__cp_js_files/tysdk.js");
|
||||
CopyFileContent(sourceFile, targetFilePath);
|
||||
string targetFilePath = Path.Combine(Application.dataPath, TYWebBuildConfig.TY_WEB_ZIJIE_DEFULT_DIR, "tysdk");
|
||||
// 如果已经存在了,删除里面的tysdk,避免重复copy不同版本
|
||||
CheckAndDeletePath(targetFilePath);
|
||||
string targetFile = Path.Combine(targetFilePath, Path.GetFileName(sourceFile));
|
||||
CopyFileContent(sourceFile, targetFile);
|
||||
}
|
||||
|
||||
private void InsertBytedanceTuyooSdk(string sourceFile)
|
||||
{
|
||||
string zjGameJSDefaultFilePath = Path.Combine(Application.dataPath, TYWebBuildConfig.TY_WEB_ZIJIE_DEFULT_DIR, "game.js");
|
||||
string tyfileName = "./tysdk/" + Path.GetFileName(sourceFile);
|
||||
string content = $"var TuyooSdk = require(\"{tyfileName}\");\nGameGlobal.TuyooSdk = TuyooSdk;";
|
||||
string[] keyword = new string[] { "GameGlobal.TuyooSdk = TuyooSdk;" };
|
||||
InsertContentToFile(zjGameJSDefaultFilePath, 2, content, keyword);
|
||||
}
|
||||
|
||||
private void CopyTuyooSdkJdRes(string sourceFile)
|
||||
|
||||
@ -24,6 +24,8 @@ public class TYWebBuildConfig
|
||||
|
||||
public const string TY_WEB_MI_DEFULT_DIR = "XIAOMI-minigame/MiQGame";
|
||||
|
||||
public const string TY_WEB_ZIJIE_DEFULT_DIR = "Plugins/ByteGame/com.bytedance.starksdk/DefaultTemplate";
|
||||
|
||||
public class MiniGameChannelType
|
||||
{
|
||||
public const string ALI = "ali.cn.minigame";
|
||||
|
||||
@ -39,6 +39,7 @@ CHANNEL_AND_NAME_LIST = ["wechat",
|
||||
"haiwailogin",
|
||||
"aihelp",
|
||||
"bugly",
|
||||
"gdt",
|
||||
"push",
|
||||
"fcm"]
|
||||
|
||||
@ -668,6 +669,7 @@ def add_file_to_embed_frameworks(project, project_path):
|
||||
|
||||
def process_wechat_setting(project,info_plist_path, app_target_name):
|
||||
print(f"💡 process_wechat_setting ")
|
||||
project.add_other_ldflags(['$(inherited)', '-all_load'])
|
||||
wechat_config = build_config.get('login').get('wechat')
|
||||
if wechat_config.get('wxAppId') and wechat_config.get('wxUniversalLink'):
|
||||
add_array_to_info_plist(info_plist_path, 'LSApplicationQueriesSchemes', ['weixin','weixinULAPI','weixinURLParamsAPI','wechat'])
|
||||
@ -814,8 +816,8 @@ def process_project_setting(project_path, project_name, miniversion, target_name
|
||||
else:
|
||||
app_target_name = None
|
||||
# 基础设置: 钥匙串 apple登录 applink C++兼容 swift
|
||||
project.add_other_ldflags(['$(inherited)', '-ObjC'])
|
||||
add_file_to_project(project, coustom_plist_file_path, skip_if_exsit=False)
|
||||
project.add_other_ldflags(['$(inherited)', '-ObjC', '-all_load'])
|
||||
add_sign_in_with_apple_capability(project, app_target_name)
|
||||
set_library_search_paths(project, [])
|
||||
# add_keychain_capability(project, app_target_name)
|
||||
@ -886,6 +888,9 @@ def process_project_setting(project_path, project_name, miniversion, target_name
|
||||
add_bool_to_info_plist(info_plist_path, 'kFirebaseODM', True, False)
|
||||
elif channel_name == "idfa":
|
||||
add_string_to_info_plist(info_plist_path, 'NSUserTrackingUsageDescription', channel_config.get('NSUserTrackingUsageDescription'), False)
|
||||
elif channel_name == "gdt":
|
||||
add_string_to_info_plist(info_plist_path, 'TYGDTActionSetId', channel_config.get('TYGDTActionSetId'), False)
|
||||
add_string_to_info_plist(info_plist_path, 'TYGDTActionSecretKey', channel_config.get('TYGDTActionSecretKey'), False)
|
||||
configs = project.objects.get_configurations_on_targets(target_name=target_name)
|
||||
for config in configs:
|
||||
config.buildSettings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'NO'
|
||||
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 667e1e7487f25431aa7c5f6e71baf142
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CLIENT_ID</key>
|
||||
<string>732693832459-8qipuf372o1r2fim4fc92881pvvlcbeq.apps.googleusercontent.com</string>
|
||||
<key>REVERSED_CLIENT_ID</key>
|
||||
<string>com.googleusercontent.apps.732693832459-8qipuf372o1r2fim4fc92881pvvlcbeq</string>
|
||||
<key>ANDROID_CLIENT_ID</key>
|
||||
<string>732693832459-g4om40dcta61uesgjulmubkec5v51klu.apps.googleusercontent.com</string>
|
||||
<key>API_KEY</key>
|
||||
<string>AIzaSyCYwCqseQiV_wArWex4UaOihwS44AZHlfE</string>
|
||||
<key>GCM_SENDER_ID</key>
|
||||
<string>732693832459</string>
|
||||
<key>PLIST_VERSION</key>
|
||||
<string>1</string>
|
||||
<key>BUNDLE_ID</key>
|
||||
<string>com.tuyoo.doudizhu.3d</string>
|
||||
<key>PROJECT_ID</key>
|
||||
<string>test-c00f4</string>
|
||||
<key>STORAGE_BUCKET</key>
|
||||
<string>test-c00f4.firebasestorage.app</string>
|
||||
<key>IS_ADS_ENABLED</key>
|
||||
<false></false>
|
||||
<key>IS_ANALYTICS_ENABLED</key>
|
||||
<false></false>
|
||||
<key>IS_APPINVITE_ENABLED</key>
|
||||
<true></true>
|
||||
<key>IS_GCM_ENABLED</key>
|
||||
<true></true>
|
||||
<key>IS_SIGNIN_ENABLED</key>
|
||||
<true></true>
|
||||
<key>GOOGLE_APP_ID</key>
|
||||
<string>1:732693832459:ios:e1f3df7b68cfe23340b80e</string>
|
||||
<key>DATABASE_URL</key>
|
||||
<string>https://test-c00f4.firebaseio.com</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d535f4f441d5644d8aa9ca5da0ef30ec
|
||||
guid: bd3469c81694b48e9ab06e1c7e6271eb
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
@ -0,0 +1,104 @@
|
||||
{
|
||||
"package": "com.tuyoo.doudizhu.3d",
|
||||
"debug": true,
|
||||
"isNational": true,
|
||||
"tuyooParam": {
|
||||
"appId": "20433",
|
||||
"gameId": "20433",
|
||||
"projectId": "20433",
|
||||
"clientId": "IOS_5.0_guest.appStore.0-hall20433.appStore.sdktest",
|
||||
"cloudId": "80",
|
||||
"serverUrl": "https://sdktest.tuyoo.com/",
|
||||
"podDependencies": ["pod 'XYSDK', '1.1.13'", "pod 'TDKEngineBaseAdapter', '1.0.16'"]
|
||||
},
|
||||
"buildConfig":{
|
||||
"addCapability": true,
|
||||
"gitAccessMethod": "token"
|
||||
},
|
||||
"login": {
|
||||
"sdks": ["firebaseanalytics", "firebasecrashlytics"],
|
||||
"wechat": {
|
||||
"package": "com.tuyoo.doudizhu.3d",
|
||||
"wxAppId": "wx1ac8979e70e1a238",
|
||||
"wxUniversalLink": [
|
||||
"https://openddzfz.nalrer.cn/3d/"
|
||||
],
|
||||
"podDependencies": ["pod 'WeChatSDKNOPay', '0.0.2'", "pod 'TYWeChatHandle', '0.0.1'"]
|
||||
},
|
||||
"yidunloginv2": {
|
||||
"businessId": "fe671b98e99d4ded8fcd3a08a431026e",
|
||||
"yidunPrivateUrl": "https://www.bilibili.com",
|
||||
"yidunUserItems": "https://www.baidu.com",
|
||||
"yidunThirdPrivateUrl": "https://www.json.cn",
|
||||
"yidunThirdPrivateName": "《好好好儿童》",
|
||||
"unionSpecialLogo": true,
|
||||
"hideLoginType": ["tyGuest"],
|
||||
"podDependencies": ["pod 'YiDunLoginSDK', '0.0.1'", "pod 'TDKYiDunLoginV2', '0.0.3'"]
|
||||
},
|
||||
"yidunzhiwen": {
|
||||
"businessId": "a54cec4b0dd3fd889e6fa4388d215412",
|
||||
"podDependencies": ["pod 'YiDunZhiWen', '0.0.1'", "pod 'TDKYiDunZhiWen', '0.0.1'"]
|
||||
},
|
||||
"yiduncaptcha": {
|
||||
"businessId": "97dbf4644e74470ca5e046becbeb9d6f",
|
||||
"kYiDunCaptchaCloseBtn": true,
|
||||
"podDependencies": ["pod 'YidunCaptchaSDK', '0.0.1'", "pod 'TDKYidunCaptcha', '0.0.3'"]
|
||||
},
|
||||
"yidunlivedetect": {
|
||||
"businessId": "5417038c8b49483b973458a56064c733",
|
||||
"podDependencies": ["pod 'YidunLiveDetectSDK', '0.0.1'", "pod 'TDKYidunLiveDetect', '0.0.3'"]
|
||||
},
|
||||
"rongheguiyin":{
|
||||
"RongHeGuiYinStrategy": false,
|
||||
"podDependencies":["pod 'RongHeGuiYinSDK', '0.0.1'", "pod 'TDKRongHeGuiYin', '2.0.2'"]
|
||||
},
|
||||
"douyin":{
|
||||
"dygyAppId": "196876",
|
||||
"podDependencies":["pod 'DouYinSDK', '0.0.1'", "pod 'TDKDouYin', '2.0.3'"]
|
||||
},
|
||||
"appsflyer":{
|
||||
"appsFlyerAppleAppId": "6447939261",
|
||||
"appsFlyerDevkey": "rSySeWtvKabfbPZE7Lmx7C",
|
||||
"podDependencies":["pod 'AppsFlyerSDK', '0.0.1'", "pod 'TDKAppsFlyer', '0.0.1'"]
|
||||
},
|
||||
"haiwailogin":{
|
||||
"podDependencies":["pod 'TDKHaiWaiLogin', '0.0.3'"]
|
||||
},
|
||||
"yuenanlogin":{
|
||||
"podDependencies":["pod 'TDKYueNanLogin', '0.0.1'"]
|
||||
},
|
||||
"facebook":{
|
||||
"facebookAppId":"1278020545897298",
|
||||
"facebookClientToken":"aaf6c3a6dbcd7c6208e00c96c07ea7e9",
|
||||
"facebookDisplayName":"userTest",
|
||||
"podDependencies":["pod 'FaceBookSDK', '0.0.1'", "pod 'TYFaceBookHandle', '0.0.1'"]
|
||||
},
|
||||
"google":{
|
||||
"googleiOSClientId":"234065827439-fl0c708ov3vlgsei06g4hu3oek0c8tb8.apps.googleusercontent.com",
|
||||
"podDependencies":["pod 'FirebaseAGoogleCommonUtil', '0.0.1'", "pod 'GoogleSDK', '0.0.1'", "pod 'TYGoogleHandle', '0.0.2'"]
|
||||
},
|
||||
"aihelp":{
|
||||
"TYAIHelpAppID": "TuyouGames_platform_fadf8993-2105-441e-a128-2b5c0e6adc2f",
|
||||
"TYAIHelpDomainName": "TuyouGames.aihelpcn.net",
|
||||
"TYAIHelpLanguage": "zh-CN",
|
||||
"NSPhotoLibraryUsageDescription": "App需要您的同意,才能访问相册",
|
||||
"PHPhotoLibraryPreventAutomaticLimitedAccessAlert": true,
|
||||
"podDependencies": ["pod 'AIHelpSDK', '0.0.1'", "pod 'TDKAIHelp', '0.0.2'"]
|
||||
},
|
||||
"bugly":{
|
||||
"BuglyAppID": "f03b129cfe",
|
||||
"podDependencies": ["pod 'BuglySDK', '0.0.1'", "pod 'TDKBugly', '0.0.1'"]
|
||||
},
|
||||
"firebaseanalytics": {
|
||||
"podDependencies": ["pod 'TDKFirebaseAttribution', '1.1.5'"]
|
||||
},
|
||||
"firebasecrashlytics":{
|
||||
"podDependencies": ["pod 'TDKFirebaseCrashlytics', '1.1.13'"]
|
||||
},
|
||||
"gdt":{
|
||||
"TYGDTActionSetId": "1234567890",
|
||||
"TYGDTActionSecretKey": "1234567890",
|
||||
"podDependencies": ["pod 'TDKGDTAction', '2.0.1'", "pod 'GDTActionSDK', '0.0.1'"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 467bb0d0412a74f9c811a91efc9108c5
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -5,7 +5,7 @@ var TuyooSdkBridge = {
|
||||
console.log("channelTypeFromCS:" + channelTypeFromCS);
|
||||
var TuyooSdk;
|
||||
if (channelTypeFromCS == "ali.cn.minigame") {
|
||||
TuyooSdk = require("./tuyoosdk_aliminigame_1.0.5.251210_release.js");
|
||||
TuyooSdk = require("./tuyoosdk_aliminigame_1.0.6.251225_release.js");
|
||||
}
|
||||
window.TuyooSdk = TuyooSdk;
|
||||
},
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 68b516af9e39e473891535f4e764041a
|
||||
guid: 74593e47c34b54807b95ce9481c04bdc
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
@ -23,6 +23,7 @@ var TuyooSdkBridge = {
|
||||
tyInitParams.packageName = initInfo.package;
|
||||
tyInitParams.clientId = initInfo.tuyooParam.clientId;
|
||||
tyInitParams.jingdongAppId = initInfo.login.jingdongminigame.jingdongAppId;
|
||||
tyInitParams.debug = String(initInfo.debug).toLowerCase() === "true" || false;
|
||||
console.log("initInfo: " + JSON.stringify(initInfo));
|
||||
if (initInfo.login.jingdongminigame.packageType === "wasmsplit" && GameGlobal.tywx) {
|
||||
GameGlobal.tywx.StateInfo.debugMode = initInfo.debug.toLowerCase() === "true";
|
||||
@ -267,16 +268,15 @@ var TuyooSdkBridge = {
|
||||
},
|
||||
|
||||
GetDeviceLevelToBridge: function() {
|
||||
// try {
|
||||
// var callback = function (code, result, error) {
|
||||
// var callbackString = JSON.stringify({ code, result, error });
|
||||
// SendMessage("NativeCallBack", "GetDeviceLevelResult", callbackString);
|
||||
// }
|
||||
// GameGlobal.TuyooSdk.getDeviceBenchmarkLevel(callback, this);
|
||||
// } catch (error) {
|
||||
// console.error("GetDeviceLevelToBridge catch error: " + error);
|
||||
// }
|
||||
console.error("current channel not support GetDeviceLevelToBridge function");
|
||||
try {
|
||||
var callback = function (code, result, error) {
|
||||
var callbackString = JSON.stringify({ code, result, error });
|
||||
SendMessage("NativeCallBack", "GetDeviceLevelResult", callbackString);
|
||||
}
|
||||
GameGlobal.TuyooSdk.getDeviceBenchmarkLevel(callback, this);
|
||||
} catch (error) {
|
||||
console.error("GetDeviceLevelToBridge catch error: " + error);
|
||||
}
|
||||
},
|
||||
|
||||
CreatGridGamePanelToBridge: function(gridGameModule) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c5ae2508677d34e3a8905d1f385f0ec3
|
||||
guid: d38fee9b262e245e4927bb6c64f0eed8
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
@ -23,6 +23,7 @@ var TuyooSdkBridge = {
|
||||
tyInitParams.packageName = initInfo.package;
|
||||
tyInitParams.clientId = initInfo.tuyooParam.clientId;
|
||||
tyInitParams.meituan_appId = initInfo.login.meituanminigame.meituanAppId;
|
||||
tyInitParams.debug = String(initInfo.debug).toLowerCase() === "true" || false;
|
||||
console.log("initInfo: " + JSON.stringify(initInfo));
|
||||
window.TuyooSdk.OnInit(initInfo.tuyooParam.channelType, tyInitParams, initCallback, this);
|
||||
} catch (e) {
|
||||
@ -191,16 +192,15 @@ var TuyooSdkBridge = {
|
||||
},
|
||||
|
||||
GetDeviceLevelToBridge: function() {
|
||||
// try {
|
||||
// var callback = function (code, result, error) {
|
||||
// var callbackString = JSON.stringify({ code, result, error });
|
||||
// SendMessage("NativeCallBack", "GetDeviceLevelResult", callbackString);
|
||||
// }
|
||||
// window.TuyooSdk.getDeviceBenchmarkLevel(callback, this);
|
||||
// } catch (error) {
|
||||
// console.error("GetDeviceLevelToBridge catch error: " + error);
|
||||
// }
|
||||
console.error("current channel not support GetDeviceLevelToBridge function");
|
||||
try {
|
||||
var callback = function (code, result, error) {
|
||||
var callbackString = JSON.stringify({ code, result, error });
|
||||
SendMessage("NativeCallBack", "GetDeviceLevelResult", callbackString);
|
||||
}
|
||||
window.TuyooSdk.getDeviceBenchmarkLevel(callback, this);
|
||||
} catch (error) {
|
||||
console.error("GetDeviceLevelToBridge catch error: " + error);
|
||||
}
|
||||
},
|
||||
|
||||
CreatGridGamePanelToBridge: function(gridGameModule) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 163a8e352f0b74e5fb6c21e86b992b43
|
||||
guid: 4542c4b4035e04068bb04431514a0d3e
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
@ -189,12 +189,12 @@ var TuyooSdkBridge = {
|
||||
var resource = shareInfo.resource;
|
||||
var shareCallback = function (code, result, error) {
|
||||
if(code == 0 && result){
|
||||
result.sharePoint = resource.sharePointId;
|
||||
result.sharePoint = resource.sharePoint;
|
||||
}
|
||||
var callbackString = JSON.stringify({ code, result, error });
|
||||
SendMessage("NativeCallBack", "GetShareInfoResult", callbackString);
|
||||
}
|
||||
GameGlobal.tywx.ShareInterface.GetServerShareConfig(resource.type || 'wx_normal', resource.sharePointId, shareCallback);
|
||||
GameGlobal.tywx.ShareInterface.GetServerShareConfig(resource.type || 'wx_normal', resource.sharePoint, shareCallback);
|
||||
} catch (error) {
|
||||
console.error("GetShareInfoBridge catch error: " + error);
|
||||
}
|
||||
@ -215,7 +215,8 @@ var TuyooSdkBridge = {
|
||||
resource.imageUrl && (shareInfoToJs.sharePicUrl = resource.imageUrl);
|
||||
resource.shareSchemeId && (shareInfoToJs.shareSchemeId = resource.shareSchemeId);
|
||||
resource.extraParams && (shareInfoToJs.extraInfo = resource.extraParams);
|
||||
resource.sharePointId && (shareInfoToJs.sharePoint = resource.sharePointId);
|
||||
resource.sharePointId && (shareInfoToJs.sharePointId = resource.sharePointId);
|
||||
resource.sharePoint && (shareInfoToJs.sharePoint = resource.sharePoint);
|
||||
if(extraData){
|
||||
Object.assign(shareInfoToJs, extraData);
|
||||
}
|
||||
@ -241,7 +242,8 @@ var TuyooSdkBridge = {
|
||||
resource.imageUrl && (shareInfoToJs.sharePicUrl = resource.imageUrl);
|
||||
resource.shareSchemeId && (shareInfoToJs.shareSchemeId = resource.shareSchemeId);
|
||||
resource.extraParams && (shareInfoToJs.extraInfo = resource.extraParams);
|
||||
resource.sharePointId && (shareInfoToJs.sharePoint = resource.sharePointId);
|
||||
resource.sharePointId && (shareInfoToJs.sharePointId = resource.sharePointId);
|
||||
resource.sharePoint && (shareInfoToJs.sharePoint = resource.sharePoint);
|
||||
if(extraData){
|
||||
Object.assign(shareInfoToJs, extraData);
|
||||
}
|
||||
@ -427,7 +429,34 @@ var TuyooSdkBridge = {
|
||||
|
||||
DestroyGridGamePanelToBridge: function(panelId) {
|
||||
console.error("current channel not support DestroyGridGamePanel function");
|
||||
}
|
||||
},
|
||||
|
||||
RequestUserRiskRankToBridge: function() {
|
||||
try {
|
||||
var callback = function (code, result, error) {
|
||||
var callbackString = JSON.stringify({ code, result, error });
|
||||
GameGlobal.Module.SendMessage("NativeCallBack", "UserRiskRankResult", callbackString);
|
||||
}
|
||||
GameGlobal.tywx.TuyooSDK.getUserRiskRank(callback);
|
||||
} catch (error) {
|
||||
console.error("RequestUserRiskRankToBridge catch error: " + error);
|
||||
}
|
||||
},
|
||||
|
||||
RequestMchTransferToBridge: function(mchTransferEventInfo) {
|
||||
try {
|
||||
var callback = function (code, result, error) {
|
||||
var callbackString = JSON.stringify({ code, result, error });
|
||||
GameGlobal.Module.SendMessage("NativeCallBack", "MchTransferResult", callbackString);
|
||||
}
|
||||
var mchTransferInfoFromCS = UTF8ToString(mchTransferEventInfo);
|
||||
var mchTransferInfo = JSON.parse(mchTransferInfoFromCS);
|
||||
console.log("mchTransferInfoToJs: " + JSON.stringify(mchTransferInfo));
|
||||
GameGlobal.tywx.TYPayInterface.requestMerchantTransfer(mchTransferInfo, callback);
|
||||
} catch (error) {
|
||||
console.error("RequestUserRiskRankToBridge catch error: " + error);
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -23,6 +23,7 @@ var TuyooSdkBridge = {
|
||||
tyInitParams.packageName = initInfo.package;
|
||||
tyInitParams.clientId = initInfo.tuyooParam.clientId;
|
||||
tyInitParams.bytedanceAppId = initInfo.login.zijieminigame.bytedanceAppId;
|
||||
tyInitParams.debug = String(initInfo.debug).toLowerCase() === "true" || false;
|
||||
if (initInfo.login.zijieminigame.shareManagerUrl) {
|
||||
tyInitParams.shareManagerUrl = initInfo.login.zijieminigame.shareManagerUrl.endsWith("/") ? initInfo.login.zijieminigame.shareManagerUrl : initInfo.login.zijieminigame.shareManagerUrl + "/";
|
||||
}
|
||||
@ -32,7 +33,7 @@ var TuyooSdkBridge = {
|
||||
tyInitParams.pullShareConfig = true;
|
||||
}
|
||||
console.log("initInfo: " + JSON.stringify(initInfo));
|
||||
window.TuyooSdk.OnInit("bytedance.cn.iap", tyInitParams, initCallback, this);
|
||||
GameGlobal.TuyooSdk.OnInit("bytedance.cn.iap", tyInitParams, initCallback, this);
|
||||
} catch (e) {
|
||||
console.error("InitToBridge catch error: " + e);
|
||||
}
|
||||
@ -42,8 +43,8 @@ var TuyooSdkBridge = {
|
||||
UpdateServerUrlToBridge: function (serverUrl) {
|
||||
try {
|
||||
var serverUrlFromCS = UTF8ToString(serverUrl);
|
||||
window.TuyooSdk.baseuri = (serverUrlFromCS.substring(serverUrlFromCS.length - 1) === '/') ? serverUrlFromCS.substring(0, serverUrlFromCS.length - 1) : serverUrlFromCS;
|
||||
console.log("update serverUrl to: " + window.TuyooSdk.baseuri);
|
||||
GameGlobal.TuyooSdk.baseuri = (serverUrlFromCS.substring(serverUrlFromCS.length - 1) === '/') ? serverUrlFromCS.substring(0, serverUrlFromCS.length - 1) : serverUrlFromCS;
|
||||
console.log("update serverUrl to: " + GameGlobal.TuyooSdk.baseuri);
|
||||
} catch (e) {
|
||||
console.error("UpdateServerUrlToBridge catch error: " + e);
|
||||
}
|
||||
@ -71,7 +72,7 @@ var TuyooSdkBridge = {
|
||||
tyLoginParams.extraParams = extraParams;
|
||||
}
|
||||
console.log("tyLoginParams: " + JSON.stringify(tyLoginParams));
|
||||
window.TuyooSdk.Login(tyLoginParams, loginCallback, this);
|
||||
GameGlobal.TuyooSdk.Login(tyLoginParams, loginCallback, this);
|
||||
} catch (e) {
|
||||
console.error("LoginToBridge catch error: " + e);
|
||||
}
|
||||
@ -108,7 +109,7 @@ var TuyooSdkBridge = {
|
||||
tyPayParams.prodName = payInfo.productName;
|
||||
tyPayParams.prodPrice = payInfo.productPrice;
|
||||
console.log("tyPayParams: " + JSON.stringify(tyPayParams));
|
||||
window.TuyooSdk.Pay(tyPayParams, payCallback, this);
|
||||
GameGlobal.TuyooSdk.Pay(tyPayParams, payCallback, this);
|
||||
} catch (e) {
|
||||
console.error("PayToBridge catch error: " + e);
|
||||
}
|
||||
@ -142,7 +143,7 @@ var TuyooSdkBridge = {
|
||||
shareInfoToJs.invite = inviteInfo;
|
||||
shareInfoToJs.video = videoInfo;
|
||||
console.log("shareInfoToJs: " + JSON.stringify(shareInfoToJs.invite) + JSON.stringify(shareInfoToJs.video));
|
||||
window.TuyooSdk.SetDefaultShareInfo(shareInfoToJs);
|
||||
GameGlobal.TuyooSdk.SetDefaultShareInfo(shareInfoToJs);
|
||||
} catch (e) {
|
||||
console.error("SetShareInfoToBridge catch error: " + e);
|
||||
}
|
||||
@ -178,7 +179,7 @@ var TuyooSdkBridge = {
|
||||
}
|
||||
|
||||
console.log("shareInfoToJs: " + JSON.stringify(shareInfoToJs));
|
||||
window.TuyooSdk.Share(shareInfoToJs, shareCallback);
|
||||
GameGlobal.TuyooSdk.Share(shareInfoToJs, shareCallback);
|
||||
} catch (e) {
|
||||
console.error("ShareToBridge catch error: " + e);
|
||||
}
|
||||
@ -191,7 +192,7 @@ var TuyooSdkBridge = {
|
||||
if (!reportInfo.typeName) {
|
||||
reportInfo.typeName = "track";
|
||||
}
|
||||
window.TuyooSdk.bi.trackWithType(reportInfo.typeName, reportInfo.eventName, reportInfo.reportEvent);
|
||||
GameGlobal.TuyooSdk.bi.trackWithType(reportInfo.typeName, reportInfo.eventName, reportInfo.reportEvent);
|
||||
} catch (e) {
|
||||
console.error("GAEventTrackToBridge catch error: " + e);
|
||||
}
|
||||
@ -201,7 +202,7 @@ var TuyooSdkBridge = {
|
||||
try {
|
||||
var reportInfoFromCS = UTF8ToString(reportEventInfo);
|
||||
var reportInfo = JSON.parse(reportInfoFromCS);
|
||||
window.TuyooSdk.bi.profileTrack(reportInfo.profileType, reportInfo.profileSubjectType, reportInfo.profileSubjectPrimary, reportInfo.reportEvent);
|
||||
GameGlobal.TuyooSdk.bi.profileTrack(reportInfo.profileType, reportInfo.profileSubjectType, reportInfo.profileSubjectPrimary, reportInfo.reportEvent);
|
||||
} catch (e) {
|
||||
console.error("GAProfileTrackToBridge catch error: " + e);
|
||||
}
|
||||
@ -241,7 +242,7 @@ var TuyooSdkBridge = {
|
||||
var callbackString = JSON.stringify({ code, result, error });
|
||||
SendMessage("NativeCallBack", "GetDeviceLevelResult", callbackString);
|
||||
}
|
||||
window.TuyooSdk.getDeviceBenchmarkLevel(callback);
|
||||
GameGlobal.TuyooSdk.getDeviceBenchmarkLevel(callback);
|
||||
} catch (error) {
|
||||
console.error("GetDeviceLevelToBridge catch error: " + error);
|
||||
}
|
||||
@ -259,8 +260,8 @@ var TuyooSdkBridge = {
|
||||
!gridGameInfo.query && (gridGameInfoToJs.query = {})
|
||||
var callback = function (code, result, error) {
|
||||
if(code == 0){
|
||||
!window._tyGridGamePanelJson && (window._tyGridGamePanelJson = {})
|
||||
window._tyGridGamePanelJson[callbackKey] = result;
|
||||
!GameGlobal._tyGridGamePanelJson && (GameGlobal._tyGridGamePanelJson = {})
|
||||
GameGlobal._tyGridGamePanelJson[callbackKey] = result;
|
||||
}
|
||||
if(code != 900508){
|
||||
result = {};
|
||||
@ -269,7 +270,7 @@ var TuyooSdkBridge = {
|
||||
var callbackString = JSON.stringify({ code, result, error, action});
|
||||
SendMessage("NativeCallBack", "UnifiedNativeCallback", callbackString);
|
||||
}
|
||||
window.TuyooSdk.CallMethod("CreateGamePanel", gridGameInfoToJs, callback);
|
||||
GameGlobal.TuyooSdk.CallMethod("CreateGamePanel", gridGameInfoToJs, callback);
|
||||
} catch (e) {
|
||||
console.error("CreatGridGamePanelToBridge catch error: " + e);
|
||||
}
|
||||
@ -277,9 +278,9 @@ var TuyooSdkBridge = {
|
||||
|
||||
ShowGridGamePanelToBridge: function(panelId) {
|
||||
try {
|
||||
!window._tyGridGamePanelJson && (window._tyGridGamePanelJson = {})
|
||||
!GameGlobal._tyGridGamePanelJson && (GameGlobal._tyGridGamePanelJson = {})
|
||||
panelId = UTF8ToString(panelId);
|
||||
var gridGamePanel = window._tyGridGamePanelJson[panelId];
|
||||
var gridGamePanel = GameGlobal._tyGridGamePanelJson[panelId];
|
||||
if(gridGamePanel){
|
||||
gridGamePanel.show();
|
||||
}
|
||||
@ -290,9 +291,9 @@ var TuyooSdkBridge = {
|
||||
|
||||
HideGridGamePanelToBridge: function(panelId) {
|
||||
try {
|
||||
!window._tyGridGamePanelJson && (window._tyGridGamePanelJson = {})
|
||||
!GameGlobal._tyGridGamePanelJson && (GameGlobal._tyGridGamePanelJson = {})
|
||||
panelId = UTF8ToString(panelId);
|
||||
var gridGamePanel = window._tyGridGamePanelJson[panelId];
|
||||
var gridGamePanel = GameGlobal._tyGridGamePanelJson[panelId];
|
||||
if(gridGamePanel){
|
||||
gridGamePanel.hide();
|
||||
}
|
||||
@ -303,16 +304,53 @@ var TuyooSdkBridge = {
|
||||
|
||||
DestroyGridGamePanelToBridge: function(panelId) {
|
||||
try {
|
||||
!window._tyGridGamePanelJson && (window._tyGridGamePanelJson = {})
|
||||
!GameGlobal._tyGridGamePanelJson && (GameGlobal._tyGridGamePanelJson = {})
|
||||
panelId = UTF8ToString(panelId);
|
||||
var gridGamePanel = window._tyGridGamePanelJson[panelId];
|
||||
var gridGamePanel = GameGlobal._tyGridGamePanelJson[panelId];
|
||||
if(gridGamePanel){
|
||||
gridGamePanel.destroy();
|
||||
}
|
||||
} catch (e) {
|
||||
console.error("DestroyGridGamePanelToBridge catch error: " + e);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
MicroPaymentToBridge: function (payEventInfo) {
|
||||
try {
|
||||
var payCallback = function (code, result, error) {
|
||||
var callbackString = JSON.stringify({ code, result, error });
|
||||
SendMessage("NativeCallBack", "PayResult", callbackString);
|
||||
}
|
||||
var payInfoFromCS = UTF8ToString(payEventInfo);
|
||||
var payInfo = JSON.parse(payInfoFromCS);
|
||||
var tyPayParams = {};
|
||||
tyPayParams.prodCount = 1;
|
||||
tyPayParams.appInfo = "";
|
||||
if (payInfo.chargeService) {
|
||||
tyPayParams.ChargeType = payInfo.chargeService;
|
||||
}
|
||||
if (payInfo.productCount) {
|
||||
tyPayParams.prodCount = payInfo.productCount;
|
||||
}
|
||||
if (payInfo.serverAppInfo) {
|
||||
tyPayParams.appInfo = payInfo.serverAppInfo;
|
||||
}
|
||||
if (payInfo.gameOrderId) {
|
||||
tyPayParams.prodOrderId = payInfo.gameOrderId;
|
||||
}
|
||||
if (payInfo.extraParams) {
|
||||
var extraParams = JSON.parse(payInfo.extraParams);
|
||||
tyPayParams.extraParams = extraParams;
|
||||
}
|
||||
tyPayParams.prodId = payInfo.productId;
|
||||
tyPayParams.prodName = payInfo.productName;
|
||||
tyPayParams.prodPrice = payInfo.productPrice;
|
||||
console.log("tyPayParams: " + JSON.stringify(tyPayParams));
|
||||
GameGlobal.TuyooSdk.MicroPayment(tyPayParams, payCallback, this);
|
||||
} catch (e) {
|
||||
console.error("PayToBridge catch error: " + e);
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
mergeInto(LibraryManager.library, TuyooSdkBridge);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f8ca7ec44ee6d4c5c801638a44079a8d
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -13,19 +13,19 @@
|
||||
"login": {
|
||||
"aliminigame": {
|
||||
"ali_appId": "",
|
||||
"sdkVersion": "1.0.5.251210_release"
|
||||
"sdkVersion": "1.0.6.251225_release"
|
||||
},
|
||||
"tywx": {
|
||||
"wx_appId": "",
|
||||
"sdkVersion": "1.9.0_20251215_release"
|
||||
"sdkVersion": "1.9.4_20260126_release"
|
||||
},
|
||||
"zijieminigame": {
|
||||
"bytedanceAppId": "",
|
||||
"sdkVersion": "1.0.4.250915_release"
|
||||
"sdkVersion": "1.0.8.260120_release"
|
||||
},
|
||||
"jingdongminigame": {
|
||||
"jingdongAppId": "",
|
||||
"sdkVersion": "1.0.1.251009_release"
|
||||
"sdkVersion": "1.0.2.260113_release"
|
||||
},
|
||||
"oppominigame": {
|
||||
"oppoAppId": "",
|
||||
@ -33,7 +33,7 @@
|
||||
},
|
||||
"meituanminigame": {
|
||||
"meituanAppId": "",
|
||||
"sdkVersion": "1.0.2.251010_release"
|
||||
"sdkVersion": "1.0.3.260113_release"
|
||||
},
|
||||
"kuaishouminigame": {
|
||||
"kuaishouAppId": "",
|
||||
|
||||
@ -97,6 +97,8 @@ namespace EngineSdkConverter.Unity.SDK
|
||||
{
|
||||
public class FirebaseCrashExceptionType
|
||||
{
|
||||
public string domain;
|
||||
public int code;
|
||||
public string name;
|
||||
public string message;
|
||||
public string stackTrace;
|
||||
@ -108,6 +110,17 @@ namespace EngineSdkConverter.Unity.SDK
|
||||
{
|
||||
_firebaseCrashException = new FirebaseCrashExceptionType();
|
||||
}
|
||||
public FirebaseCrashExceptionTypeBuilder SetDomain(string domain)
|
||||
{
|
||||
_firebaseCrashException.domain = domain;
|
||||
return this;
|
||||
}
|
||||
|
||||
public FirebaseCrashExceptionTypeBuilder SetCode(int code)
|
||||
{
|
||||
_firebaseCrashException.code = code;
|
||||
return this;
|
||||
}
|
||||
|
||||
public FirebaseCrashExceptionTypeBuilder SetName(string name)
|
||||
{
|
||||
|
||||
@ -153,6 +153,18 @@ namespace EngineSdkConverter.Unity.SDK
|
||||
/// <param name="reportEvent">上报事件参数</param>
|
||||
public virtual void FirebaseEventReport(ReportEventBuilder.ReportEvent reportEvent) => throw new NotImplementedException();
|
||||
|
||||
/// <summary>
|
||||
/// 设置GDT通用参数
|
||||
/// </summary>
|
||||
/// <param name="reportEvent">上报事件参数</param>
|
||||
public virtual void SetGDTCommonParam(ReportEventBuilder.ReportEvent reportEvent) => throw new NotImplementedException();
|
||||
|
||||
/// <summary>
|
||||
/// GDT事件上报
|
||||
/// </summary>
|
||||
/// <param name="reportEvent">上报事件参数</param>
|
||||
public virtual void GDTEventReport(ReportEventBuilder.ReportEvent reportEvent) => throw new NotImplementedException();
|
||||
|
||||
/// <summary>
|
||||
/// 获取可绑定账号列表
|
||||
/// </summary>
|
||||
@ -482,6 +494,22 @@ namespace EngineSdkConverter.Unity.SDK
|
||||
/// <param name="bindEvent">绑定事件参数</param>
|
||||
/// <param name="callback">回调函数</param>
|
||||
public virtual void UnBind(BindEventBuilder.BindEvent bindEvent, Action<string> callback) => throw new NotImplementedException();
|
||||
|
||||
/// <summary>
|
||||
/// 抖音小游戏小额支付专用接口
|
||||
/// </summary>
|
||||
public virtual void MicroPayment(PayEventBuilder.PayEvent payEvent, Action<string> callback) => throw new NotImplementedException();
|
||||
|
||||
/// <summary>
|
||||
/// 获取用户风险等级
|
||||
/// </summary>
|
||||
public virtual void RequestUserRiskRank(Action<string> callback) => throw new NotImplementedException();
|
||||
|
||||
/// <summary>
|
||||
/// 微信小游戏调起用户确认收款页面
|
||||
/// </summary>
|
||||
public virtual void RequestMerchantTransfer(MchTransferBuilder.MchTransferEvent mchTransferEvent, Action<string> callback) => throw new NotImplementedException();
|
||||
|
||||
}
|
||||
|
||||
public static class NativeInterface
|
||||
@ -649,6 +677,18 @@ namespace EngineSdkConverter.Unity.SDK
|
||||
_sdkInterface.FirebaseEventReport(reportEvent);
|
||||
}
|
||||
#endif
|
||||
#if UNITY_IOS || UNITY_EDITOR
|
||||
public static void SetGDTCommonParam(ReportEventBuilder.ReportEvent reportEvent)
|
||||
{
|
||||
_sdkInterface.SetGDTCommonParam(reportEvent);
|
||||
}
|
||||
#endif
|
||||
#if UNITY_IOS || UNITY_EDITOR
|
||||
public static void GDTEventReport(ReportEventBuilder.ReportEvent reportEvent)
|
||||
{
|
||||
_sdkInterface.GDTEventReport(reportEvent);
|
||||
}
|
||||
#endif
|
||||
#if UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL || UNITY_EDITOR
|
||||
public static void Check(BindEventBuilder.BindEvent bindEvent, Action<string> callback)
|
||||
{
|
||||
@ -998,5 +1038,26 @@ namespace EngineSdkConverter.Unity.SDK
|
||||
_sdkInterface.UnBind(bindEvent, callback);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if UNITY_WEBGL || UNITY_EDITOR
|
||||
public static void MicroPayment(PayEventBuilder.PayEvent payEvent, Action<string> callback)
|
||||
{
|
||||
_sdkInterface.MicroPayment(payEvent, callback);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if UNITY_WEBGL || UNITY_EDITOR
|
||||
public static void RequestUserRiskRank(Action<string> callback)
|
||||
{
|
||||
_sdkInterface.RequestUserRiskRank(callback);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if UNITY_WEBGL || UNITY_EDITOR
|
||||
public static void RequestMerchantTransfer(MchTransferBuilder.MchTransferEvent mchTransferEvent, Action<string> callback)
|
||||
{
|
||||
_sdkInterface.RequestMerchantTransfer(mchTransferEvent, callback);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@ -245,8 +245,8 @@ namespace EngineSdkConverter.Unity.SDK
|
||||
|
||||
public override void GAProfileTrack(ReportEventBuilder.ReportEvent reportEvent)
|
||||
{
|
||||
string reportEventInfo = JsonMapper.ToJson(reportEvent.reportEvent);
|
||||
UnityPlayerUtils.invokeWithTwoParams("gaProfileTrack", reportEvent.typeName, reportEventInfo);
|
||||
string reportEventInfo = JsonMapper.ToJson(reportEvent);
|
||||
UnityPlayerUtils.invokeWithParams("gaProfileTrack", reportEventInfo);
|
||||
}
|
||||
|
||||
public override void GAEventTrack(ReportEventBuilder.ReportEvent reportEvent)
|
||||
|
||||
@ -58,6 +58,24 @@ namespace EngineSdkConverter.Unity.SDK
|
||||
[DllImport("__Internal")]
|
||||
internal static extern void FirebaseEventReport(string eventName, string reportEvent);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
internal static extern void SetGDTCommonParam(string reportEvent);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
internal static extern void GDTEventReport(string eventName, string reportEvent);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
internal static extern void SetFirebaseCrashCustomKey(string info);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
internal static extern void ReportFirebaseCrashLog(string info);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
internal static extern void SetFirebaseCrashUserIdentifier(string info);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
internal static extern void ReportFirebaseCrashException(string info);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
internal static extern void CanBindList(string callback);
|
||||
|
||||
@ -77,7 +95,7 @@ namespace EngineSdkConverter.Unity.SDK
|
||||
internal static extern void GetBindUserList(string phoneNumber, string callback);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
internal static extern void GAProfileTrack(string profileType, string reportEvent);
|
||||
internal static extern void GAProfileTrack(string reportEvent);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
internal static extern void GAEventTrack(string eventType, string eventName, string reportEvent);
|
||||
@ -330,6 +348,44 @@ namespace EngineSdkConverter.Unity.SDK
|
||||
IOSUnityAdpter.FirebaseEventReport(reportEvent.eventName, reportEventInfo);
|
||||
}
|
||||
|
||||
// 设置GDT通用参数 ok
|
||||
public override void SetGDTCommonParam(ReportEventBuilder.ReportEvent reportEvent)
|
||||
{
|
||||
string reportEventInfo = JsonMapper.ToJson(reportEvent.reportEvent);
|
||||
IOSUnityAdpter.SetGDTCommonParam(reportEventInfo);
|
||||
}
|
||||
|
||||
// GDT事件上报 ok
|
||||
public override void GDTEventReport(ReportEventBuilder.ReportEvent reportEvent)
|
||||
{
|
||||
string reportEventInfo = JsonMapper.ToJson(reportEvent.reportEvent);
|
||||
IOSUnityAdpter.GDTEventReport(reportEvent.eventName, reportEventInfo);
|
||||
}
|
||||
|
||||
public override void SetFirebaseCrashCustomKey(FirebaseCrashCustomKeyBuilder.FirebaseCrashCustomKeyType firebaseCrashCustomKey)
|
||||
{
|
||||
string firebaseCrashCustomKeyInfo = JsonMapper.ToJson(firebaseCrashCustomKey);
|
||||
IOSUnityAdpter.SetFirebaseCrashCustomKey(firebaseCrashCustomKeyInfo);
|
||||
}
|
||||
|
||||
public override void ReportFirebaseCrashLog(FirebaseCrashLogBuilder.FirebaseCrashLogType firebaseCrashLog)
|
||||
{
|
||||
string firebaseCrashLogInfo = JsonMapper.ToJson(firebaseCrashLog);
|
||||
IOSUnityAdpter.ReportFirebaseCrashLog(firebaseCrashLogInfo);
|
||||
}
|
||||
|
||||
public override void SetFirebaseCrashUserIdentifier(FirebaseCrashUserIdentifierBuilder.FirebaseCrashUserIdentifierType firebaseCrashUserIdentifier)
|
||||
{
|
||||
string firebaseCrashUserIdentifierInfo = JsonMapper.ToJson(firebaseCrashUserIdentifier);
|
||||
IOSUnityAdpter.SetFirebaseCrashUserIdentifier(firebaseCrashUserIdentifierInfo);
|
||||
}
|
||||
|
||||
public override void ReportFirebaseCrashException(FirebaseCrashExceptionTypeBuilder.FirebaseCrashExceptionType firebaseCrashException)
|
||||
{
|
||||
string firebaseCrashExceptionInfo = JsonMapper.ToJson(firebaseCrashException);
|
||||
IOSUnityAdpter.ReportFirebaseCrashException(firebaseCrashExceptionInfo);
|
||||
}
|
||||
|
||||
// 可绑定列表
|
||||
public override void CanBindList(Action<string> callback)
|
||||
{
|
||||
@ -375,8 +431,8 @@ namespace EngineSdkConverter.Unity.SDK
|
||||
// 设置用户属性
|
||||
public override void GAProfileTrack(ReportEventBuilder.ReportEvent reportEvent)
|
||||
{
|
||||
string reportEventInfo = JsonMapper.ToJson(reportEvent.reportEvent);
|
||||
IOSUnityAdpter.GAProfileTrack(reportEvent.typeName, reportEventInfo);
|
||||
string reportEventInfo = JsonMapper.ToJson(reportEvent);
|
||||
IOSUnityAdpter.GAProfileTrack(reportEventInfo);
|
||||
}
|
||||
|
||||
// GA上报
|
||||
|
||||
@ -75,6 +75,15 @@ namespace EngineSdkConverter.Unity.SDK
|
||||
[DllImport("__Internal")]
|
||||
private static extern void DestroyGridGamePanelToBridge(string gridGamePanelId);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void MicroPaymentToBridge(string payEventInfo);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void RequestUserRiskRankToBridge();
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void RequestMchTransferToBridge(string mchTransferEventInfo);
|
||||
|
||||
public override void Init()
|
||||
{
|
||||
TYConfigManager.LoadConfig();
|
||||
@ -405,6 +414,7 @@ namespace EngineSdkConverter.Unity.SDK
|
||||
|
||||
public override string GetDeviceLevel(Action<string> callback)
|
||||
{
|
||||
NativeCallBack.getDeviceLevelCallback = callback;
|
||||
return GetDeviceLevelToBridge();
|
||||
}
|
||||
|
||||
@ -438,6 +448,27 @@ namespace EngineSdkConverter.Unity.SDK
|
||||
{
|
||||
DestroyGridGamePanelToBridge(gridGamePanelId);
|
||||
}
|
||||
|
||||
public override void MicroPayment(PayEventBuilder.PayEvent payEvent, Action<string> callback)
|
||||
{
|
||||
NativeCallBack.payResultCallback = callback;
|
||||
string payEventInfo = JsonMapper.ToJson(payEvent);
|
||||
MicroPaymentToBridge(payEventInfo);
|
||||
}
|
||||
|
||||
public override void RequestUserRiskRank(Action<string> callback)
|
||||
{
|
||||
NativeCallBack.userRiskRankCallback = callback;
|
||||
RequestUserRiskRankToBridge();
|
||||
}
|
||||
|
||||
public override void RequestMerchantTransfer(MchTransferBuilder.MchTransferEvent mchTransferEvent, Action<string> callback)
|
||||
{
|
||||
NativeCallBack.mchTransferCallback = callback;
|
||||
string mchTransferEventInfo = JsonMapper.ToJson(mchTransferEvent);
|
||||
RequestMchTransferToBridge(mchTransferEventInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -49,7 +49,9 @@ namespace EngineSdkConverter.Unity.SDK
|
||||
public static Action<string> getLiveInfoResultCallback;
|
||||
public static Action<string> setConfigResultCallback;
|
||||
public static Action<string> isWxInstalledResultCallback;
|
||||
public static Action<string> GetDeviceLevelCallback;
|
||||
public static Action<string> getDeviceLevelCallback;
|
||||
public static Action<string> userRiskRankCallback;
|
||||
public static Action<string> mchTransferCallback;
|
||||
|
||||
private static Dictionary<string, Action<string>> actionMap = new Dictionary<string, Action<string>>();
|
||||
|
||||
@ -387,7 +389,17 @@ namespace EngineSdkConverter.Unity.SDK
|
||||
public void GetDeviceLevelResult(string result)
|
||||
{
|
||||
Debug.Log("GetDeviceLevelResult------>in! result=" + result);
|
||||
GetDeviceLevelCallback?.Invoke(result);
|
||||
getDeviceLevelCallback?.Invoke(result);
|
||||
}
|
||||
public void UserRiskRankResult(string result)
|
||||
{
|
||||
Debug.Log("UserRiskRankResult------>in! result=" + result);
|
||||
userRiskRankCallback?.Invoke(result);
|
||||
}
|
||||
public void MchTransferResult(string result)
|
||||
{
|
||||
Debug.Log("MchTransferResult------>in! result=" + result);
|
||||
mchTransferCallback?.Invoke(result);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -781,6 +781,7 @@ namespace EngineSdkConverter.Unity.SDK
|
||||
|
||||
public class MediaResource : Resource
|
||||
{
|
||||
public string sharePoint;
|
||||
public string sharePointId;
|
||||
public string shareSchemeId;
|
||||
public string title;
|
||||
@ -1069,4 +1070,47 @@ namespace EngineSdkConverter.Unity.SDK
|
||||
|
||||
//*************************************
|
||||
|
||||
//***** 微信小游戏调起用户确认收款页面 *****//
|
||||
public class MchTransferBuilder
|
||||
{
|
||||
public class MchTransferEvent
|
||||
{
|
||||
public string mch_id;
|
||||
public string package_info;
|
||||
public string game_order_id;
|
||||
}
|
||||
|
||||
private MchTransferEvent _event;
|
||||
|
||||
public MchTransferBuilder()
|
||||
{
|
||||
_event = new MchTransferEvent();
|
||||
}
|
||||
|
||||
public MchTransferBuilder SetMchId(string mchId)
|
||||
{
|
||||
_event.mch_id = mchId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public MchTransferBuilder SetPackageInfo(string packageInfo)
|
||||
{
|
||||
_event.package_info = packageInfo;
|
||||
return this;
|
||||
}
|
||||
|
||||
public MchTransferBuilder SetGameOrderId(string gameOrderId)
|
||||
{
|
||||
_event.game_order_id = gameOrderId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public MchTransferEvent Build()
|
||||
{
|
||||
return _event;
|
||||
}
|
||||
|
||||
}
|
||||
//*************************************
|
||||
|
||||
}
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "com.bywaystudios.tuyoosdk",
|
||||
"displayName": "TuyooSDK",
|
||||
"version": "1.0.27-exp.9",
|
||||
"version": "1.0.36-exp.1",
|
||||
"description": "Include Tuyoo SDK and Resolve Build Process Problems"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user