Commit 6394b5e4 authored by zhengyingbing's avatar zhengyingbing
Browse files

feat(app): 更新fastsdk版本.

parent 9ba53ad8
...@@ -33,5 +33,5 @@ android { ...@@ -33,5 +33,5 @@ android {
} }
dependencies { dependencies {
implementation 'com.hoolai.access.open:hoolai-core:1.0.5.0' implementation 'com.hoolai.access.open:hoolai-core:1.0.6.0'
} }
\ No newline at end of file
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
android:label="fastSdkDemo" android:label="fastSdkDemo"
android:supportsRtl="true" android:supportsRtl="true"
android:resizeableActivity="false"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:usesCleartextTraffic="true"> android:usesCleartextTraffic="true">
<!-- 游戏主类 --> <!-- 游戏主类 -->
......
...@@ -415,10 +415,14 @@ public class MainActivity extends Activity { ...@@ -415,10 +415,14 @@ public class MainActivity extends Activity {
playerInfo.setVip("1"); playerInfo.setVip("1");
playerInfo.setPartyName("帮派名称"); playerInfo.setPartyName("帮派名称");
playerInfo.setClassField("aaaa"); playerInfo.setClassField("aaaa");
//extra格式:key:value,key:value,需要探测的地址放到此参数中
//注意:探测地址的冒号用@替换,key必须使用以下三个字段:gameResourceUrl/gameLoginServerUrl/gameServerUrl //注意:探测地址的冒号用@替换,key必须使用以下三个字段:gameResourceUrl/gameLoginServerUrl/gameServerUrl
//TODO 详情:https://wanda.feishu.cn/wiki/wikcniSxQbyvqU3bzuXeOtpEcGc //TODO 详情:https://wanda.feishu.cn/wiki/wikcniSxQbyvqU3bzuXeOtpEcGc
playerInfo.setExtra("a:arm,b:bom,gameResourceUrl:http@game1.com,gameLoginServerUrl:tcp@game2.com,gameServerUrl:https@game3.com"); playerInfo.addExtra("gameResourceUrl", "http@game1.com");
playerInfo.addExtra("gameLoginServerUrl", "tcp@game2.com");
playerInfo.addExtra("gameServerUrl", "https@game3.com");
playerInfo.addExtra("param1", "arm");
playerInfo.addExtra("param2", 10);
playerInfo.addExtra("param3", 9.99);
playerInfo.setPhylum("1"); playerInfo.setPhylum("1");
return playerInfo; return playerInfo;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment