drgame-cc 1.0.33 → 1.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="utf-8">
6
6
 
7
- <title>乐窝</title>
7
+ <title>小游戏</title>
8
8
 
9
9
  <!--http://www.html5rocks.com/en/mobile/mobifying/-->
10
10
  <meta name="viewport"
@@ -20,49 +20,48 @@ export class PlatformAdapter {
20
20
  var platform = GameAnalyticsPlatform.XiaomiTv;//平台由sdk后续处理
21
21
  var appItem = GameAnalytics.getAppItem(platform);
22
22
  var contentId = minigameID.toString();//InternalUitl.getChineseInitials(cnName);
23
- if (this.isCocos) {
24
- TvUi.init({
25
- cpId: contentId,
26
- version: this.version,
27
- designWidth: this.designWidth,
28
- designHeight: this.designHeight,
29
- enableCursor: true,
30
- configPath: "drres/config/default",
31
- focus: {
23
+ console.log(`[sdk-version] ${this.version}`);
24
+ TvUi.init({
25
+ cpId: contentId,
26
+ version: this.version,
27
+ designWidth: this.designWidth,
28
+ designHeight: this.designHeight,
29
+ enableCursor: true,
30
+ configPath: "drres/config/default",
31
+ focus: {
32
+ enabled: true,
33
+ defaultIconKey: "default"
34
+ },
35
+ adSdk: {
36
+ platform: platform
37
+ },
38
+ ads: {
39
+ reward: {
32
40
  enabled: true,
33
- defaultIconKey: "default"
41
+ mode: "reward",
42
+ channels: [
43
+ { type: "aggregate", priority: 1, reward_type: "reward" },
44
+ { type: "mock", priority: 100 }
45
+ ]
34
46
  },
35
- adSdk: {
36
- platform: platform
47
+ popup: {
48
+ enabled: true,
49
+ mode: "popup",
50
+ channels: [
51
+ { type: "aggregate", priority: 1 },
52
+ { type: "mock", priority: 100 }
53
+ ]
37
54
  },
38
- ads: {
39
- reward: {
40
- enabled: true,
41
- mode: "reward",
42
- channels: [
43
- { type: "aggregate", priority: 1, reward_type: "reward" },
44
- { type: "mock", priority: 100 }
45
- ]
46
- },
47
- popup: {
48
- enabled: true,
49
- mode: "popup",
50
- channels: [
51
- { type: "aggregate", priority: 1 },
52
- { type: "mock", priority: 100 }
53
- ]
54
- },
55
- game: {
56
- enabled: true,
57
- mode: "popup",
58
- channels: [
59
- { type: "aggregate", priority: 1 },
60
- { type: "mock", priority: 100 }
61
- ]
62
- }
55
+ game: {
56
+ enabled: true,
57
+ mode: "popup",
58
+ channels: [
59
+ { type: "aggregate", priority: 1 },
60
+ { type: "mock", priority: 100 }
61
+ ]
63
62
  }
64
- });
65
- }
63
+ }
64
+ });
66
65
 
67
66
  GameAnalytics.init({
68
67
  platform: GameAnalyticsPlatform.XiaomiTv,
@@ -71,7 +70,8 @@ export class PlatformAdapter {
71
70
  content_id: contentId, // 游戏ID(具体乐窝的游戏ID)
72
71
  content_title: cnName, // 游戏名(具体的乐窝游戏名)
73
72
  });
74
- await ToastManager.Inst.init();
73
+ if (this.isCocos)
74
+ await ToastManager.Inst.init();
75
75
  }
76
76
 
77
77
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drgame-cc",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "description": "道然游戏适配包",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",