drgame-cc 1.0.21 → 1.0.22

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.
Files changed (2) hide show
  1. package/drscript/Info.ts +3 -0
  2. package/package.json +1 -1
package/drscript/Info.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import TvUi from "./core/TvUi";
2
+ import { AnalyticsAction, AnalyticsEvent } from "./GameAnalytics";
3
+ import { PlatformAdapter } from "./PlatformAdapter";
2
4
  import ToastManager from "./toast/ToastManager";
3
5
 
4
6
 
@@ -42,6 +44,7 @@ export function showRewardVideo(scene: string, rewardType: string, callback: Fun
42
44
  };
43
45
  let onSuccess = () => {
44
46
  try {
47
+ PlatformAdapter.report(AnalyticsEvent.RewardVideoAd, AnalyticsAction.Exposure);
45
48
  callback && callback.call(target);
46
49
  }
47
50
  finally {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drgame-cc",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "道然游戏适配包",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",