drgame-cc 1.0.25 → 1.0.26

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.
@@ -1,6 +1,6 @@
1
1
  declare const pinyinPro: any;
2
2
 
3
- export class Util {
3
+ export class InternalUitl {
4
4
  public static getChineseInitials(str: string): string {
5
5
  return pinyinPro.pinyin(str, {
6
6
  pattern: 'first',
@@ -6,7 +6,7 @@ import GameAnalytics, { AnalyticsAction, AnalyticsEvent, GameAnalyticsPlatform }
6
6
  import { showRewardVideo } from "./Info";
7
7
  import { Loader } from "./Loader";
8
8
  import ToastManager from "./toast/ToastManager";
9
- import { Util } from "./Util";
9
+ import { InternalUitl } from "./InternalUitl";
10
10
  /** 平台适配器,名字有点长防止和Platform,Adapter冲突 */
11
11
  export class PlatformAdapter {
12
12
  private static readonly cpId = "xhbj";
@@ -17,7 +17,7 @@ export class PlatformAdapter {
17
17
  public static async init(cnName: string) {
18
18
  var platform = GameAnalyticsPlatform.XiaomiTv;//平台由sdk处理
19
19
  var appItem = GameAnalytics.getAppItem(platform);
20
- var contentId = Util.getChineseInitials(cnName);
20
+ var contentId = InternalUitl.getChineseInitials(cnName);
21
21
  await ToastManager.Inst.init();
22
22
  TvUi.init({
23
23
  cpId: contentId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drgame-cc",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "道然游戏适配包",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",