keytops-game-framework 1.0.1 → 1.0.2

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.
@@ -2,6 +2,10 @@ import { AnalyticsAble, AnalyticsData } from "../AnalyticsAble";
2
2
  export declare class LaunchAnalyticsAble {
3
3
  private readonly _baseAble;
4
4
  constructor(baseAble: AnalyticsAble);
5
+ /**
6
+ * 标记应用准备就绪,开始统计启动时间
7
+ */
8
+ ready(): void;
5
9
  /**
6
10
  * 上报启动事件
7
11
  * @param name 事件名称
package/dist/index.js CHANGED
@@ -4467,6 +4467,12 @@ class LaunchAnalyticsAble {
4467
4467
  constructor(baseAble) {
4468
4468
  this._baseAble = baseAble;
4469
4469
  }
4470
+ /**
4471
+ * 标记应用准备就绪,开始统计启动时间
4472
+ */
4473
+ ready() {
4474
+ this._baseAble.time("app_launch");
4475
+ }
4470
4476
  /**
4471
4477
  * 上报启动事件
4472
4478
  * @param name 事件名称
@@ -4475,7 +4481,6 @@ class LaunchAnalyticsAble {
4475
4481
  report(name, data) {
4476
4482
  const payload = Object.assign(Object.assign({}, (data || {})), { name });
4477
4483
  this._baseAble.report("app_launch", payload);
4478
- this._baseAble.time("app_launch");
4479
4484
  }
4480
4485
  }
4481
4486
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keytops-game-framework",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "cocos creator game framework library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",