update:ChannelConfig 更新
This commit is contained in:
Binary file not shown.
12
ChannelConfigs/Android/tw/AndroidManifest.xml
Normal file
12
ChannelConfigs/Android/tw/AndroidManifest.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
<application>
|
||||
|
||||
<!-- TW 渠道,程序内部用来区分 -->
|
||||
<meta-data android:name="com.arkgame.ft.channel" android:value="TW" />
|
||||
<!-- AppsFlyer 用来区分 -->
|
||||
<meta-data android:name="CHANNEL" android:value="TW" />
|
||||
</application>
|
||||
</manifest>
|
||||
39
ChannelConfigs/Android/tw/Files/google-services.json
Normal file
39
ChannelConfigs/Android/tw/Files/google-services.json
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"project_info": {
|
||||
"project_number": "679771497905",
|
||||
"project_id": "fishing-travel-tw",
|
||||
"storage_bucket": "fishing-travel-tw.firebasestorage.app"
|
||||
},
|
||||
"client": [
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:679771497905:android:062e2b39ee6613ad210990",
|
||||
"android_client_info": {
|
||||
"package_name": "com.arkgame.ft.tw"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "679771497905-9d8ht9dnuhbn70p72hhc5ld29lfbqhpr.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyCvYkrDG0tMViVdQ28VGQJ1NpgwkROm_9U"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"appinvite_service": {
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "679771497905-9d8ht9dnuhbn70p72hhc5ld29lfbqhpr.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"configuration_version": "1"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
dependencies {
|
||||
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:2.1.2"
|
||||
}
|
||||
|
||||
android {
|
||||
compileOptions {
|
||||
coreLibraryDesugaringEnabled true
|
||||
}
|
||||
}
|
||||
BIN
ChannelConfigs/Android/tw/Plugins/Android/tuyoosdk_1.0.0.aar
Normal file
BIN
ChannelConfigs/Android/tw/Plugins/Android/tuyoosdk_1.0.0.aar
Normal file
Binary file not shown.
16
ChannelConfigs/Android/tw/README.md
Normal file
16
ChannelConfigs/Android/tw/README.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# TW Android 渠道配置
|
||||
|
||||
当前 TW 渠道先按 GooglePlay 派生包整理,只保留渠道目录和 Manifest 增量入口。
|
||||
|
||||
如果 TW 后续有独立配置,按需补充:
|
||||
|
||||
```text
|
||||
Files/google-services.json
|
||||
Plugins/Android/tuyoosdk_1.0.0.aar
|
||||
Plugins/Android/gradle/main.gradle
|
||||
Plugins/Android/gradle/settings.gradle
|
||||
AddressableAssetsData/Android/addressables_content_state.bin
|
||||
TWAdapter.java
|
||||
```
|
||||
|
||||
不要在此目录放整份 Unity Gradle 模板文件,只放渠道增量。
|
||||
24
ChannelConfigs/Android/tw/TWAdapter.java
Normal file
24
ChannelConfigs/Android/tw/TWAdapter.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.unity3d.player;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
// Tw 渠道
|
||||
public class TWAdapter extends ChannelAdapterBase {
|
||||
|
||||
private static final String TAG = "TWAdapter";
|
||||
|
||||
//- tw包
|
||||
private static class Config {
|
||||
//-
|
||||
public String SDK_CLIENTID = "Android_5.00_tyGuest,facebook.googleplay.0-hall20587.rustore.FishingTravelTw";
|
||||
|
||||
//-
|
||||
public static String SDK_LOGIN_SERVER_URL = "https://128-hwsfsdk-sdk-ts02.sdk-k8s-us-gcp.arksgame.com";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user