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.
- package/drscript/Info.ts +3 -0
- 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 {
|