|
@@ -12,6 +12,9 @@
|
|
|
|
|
|
- [统一签名方式](http://yydocs.yyxxgame.com/web/#/p/b136c6888dff0b5961ffc595d1842034)
|
|
|
- [登录校验接口](http://yydocs.yyxxgame.com/web/#/p/3bdc599ce28f6b1179c8958bfaed0725)
|
|
|
+- [订单回调发货接口](http://yydocs.yyxxgame.com/web/#/p/56bf9d3805853826e1c19338c1c07aca)
|
|
|
+- [聊天上报接口](http://yydocs.yyxxgame.com/web/#/p/c6c2e0f90ca7c6bd19204007394c4cee)
|
|
|
+- [游戏用户行为上报接口](http://yydocs.yyxxgame.com/web/#/p/ddf8c5388de930ea7fd53593c17fbdc9)
|
|
|
|
|
|
## 客户端SDK接入Demo工程
|
|
|
|
|
@@ -22,7 +25,6 @@
|
|
|
- 游戏资源文件名、布局名、布局id名等建议使用规范命名,避免和SDK资源冲突
|
|
|
- Android Gradle Plugin Version : 4.1.3+
|
|
|
- Gradle Version : 6.5+
|
|
|
-- 将SDK目录下的**`qingshi_gamesdk_2.0.0.aar`**引入到项目中
|
|
|
- 拷贝SDK目录下**`assets/qs_game`**至项目中,并修改**`qs_cfg.properties`**文件的值
|
|
|
|
|
|
```properties
|
|
@@ -32,6 +34,7 @@ QS_APP_ID=我方提供的appid
|
|
|
QS_APP_KEY=我方提供的appkey
|
|
|
QS_OWN_DEBUG=false(true为测试模式,可以看到接口日志弹窗信息)
|
|
|
QS_GCP_ID=非必要,按需填写,SDK不会根据这个值做任何逻辑
|
|
|
+QS_ONLINE_ENV=按我方提供的填写即可(固定值)
|
|
|
```
|
|
|
|
|
|
|
|
@@ -52,13 +55,13 @@ QS_GCP_ID=非必要,按需填写,SDK不会根据这个值做任何逻辑
|
|
|
> 在应用级**`build.gradle`**文件下的**`allprojects`**节点下添加仓库的url
|
|
|
```groovy
|
|
|
// 打点组件SDK
|
|
|
- implementation 'io.github.yyxxgame.sdk:qingshi-gamesdk-analytics:2.0.0-alpah2'
|
|
|
+ implementation 'io.github.yyxxgame.sdk:qingshi-gamesdk-analytics:2.0.0-rc1'
|
|
|
// 支付组件SDK
|
|
|
- implementation 'io.github.yyxxgame.sdk:qingshi-gamesdk-billing:2.0.0-alpah2'
|
|
|
+ implementation 'io.github.yyxxgame.sdk:qingshi-gamesdk-billing:2.0.0-rc1'
|
|
|
// 登录组件SDK
|
|
|
- implementation 'io.github.yyxxgame.sdk:qingshi-gamesdk-login:2.0.0-alpah3'
|
|
|
+ implementation 'io.github.yyxxgame.sdk:qingshi-gamesdk-login:2.0.0-rc1'
|
|
|
// 核心组件SDK
|
|
|
- implementation 'io.github.yyxxgame.sdk:qingshi-gamesdk-core:2.0.0-alpah3'
|
|
|
+ implementation 'io.github.yyxxgame.sdk:qingshi-gamesdk-core:2.0.0-rc1'
|
|
|
```
|
|
|
|
|
|
|
|
@@ -282,9 +285,9 @@ public class DemoApplication extends Application {
|
|
|
//TODO SDK初始化成功
|
|
|
} else {
|
|
|
//TODO SDK初始化失败,result是失败的debug信息
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
- });
|
|
|
+ });
|
|
|
}
|
|
|
```
|
|
|
|
|
@@ -352,7 +355,7 @@ public class DemoApplication extends Application {
|
|
|
//TODO 用户登出失败,result是返回的debug信息
|
|
|
}
|
|
|
}
|
|
|
- });
|
|
|
+ });
|
|
|
```
|
|
|
|
|
|
|
|
@@ -565,7 +568,7 @@ public class DemoApplication extends Application {
|
|
|
//TODO 用户浮标登出失败,result是返回的debug信息
|
|
|
}
|
|
|
}
|
|
|
- });
|
|
|
+ });
|
|
|
```
|
|
|
|
|
|
|
|
@@ -727,5 +730,5 @@ public class DemoApplication extends Application {
|
|
|
|
|
|
```java
|
|
|
// debug日志
|
|
|
- ParamsUtils.getQsGcpId(TAG,msg);
|
|
|
+ ParamsUtils.getQsGcpId(context);
|
|
|
```
|