Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
zhaojunkai
2024-05-10 15:51:13 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
dc492f818e23d197da2921028cb0c32126f23bb5
dc492f81
2 parents
f502e2ee
be9e2850
Merge branch 'main' of
http://192.168.1.42/developOne/harmonyPool
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
0 deletions
sight_harmony/commons/wdKit/Index.ets
sight_harmony/commons/wdKit/oh-package.json5
sight_harmony/commons/wdKit/src/main/ets/tingyunAPM/TingyunAPM.ets
sight_harmony/commons/wdKit/src/main/ets/tingyunAPM/tingyun_0.0.6.har
sight_harmony/products/phone/src/main/ets/startupmanager/StartupManager.ets
sight_harmony/commons/wdKit/Index.ets
View file @
dc492f8
...
...
@@ -59,3 +59,5 @@ export { UmengStats } from "./src/main/ets/umeng/UmengStats"
export { MpaasUtils } from './src/main/ets/mpaas/MpaasUtils'
export { MpaasUpgradeCheck, UpgradeTipContent } from './src/main/ets/mpaas/MpaasUpgradeCheck'
export { TingyunAPM } from './src/main/ets/tingyunAPM/TingyunAPM'
\ No newline at end of file
...
...
sight_harmony/commons/wdKit/oh-package.json5
View file @
dc492f8
...
...
@@ -7,6 +7,7 @@
"main"
:
"Index.ets"
,
"version"
:
"1.0.0"
,
"dependencies"
:
{
"@tingyun/harmonyos"
:
"file:./src/main/ets/tingyunAPM/tingyun_0.0.6.har"
,
"@umeng/common"
:
"^1.0.21"
,
"@umeng/analytics"
:
"^1.0.19"
}
...
...
sight_harmony/commons/wdKit/src/main/ets/tingyunAPM/TingyunAPM.ets
0 → 100644
View file @
dc492f8
import { common } from '@kit.AbilityKit';
import tingyun, { LogLevel } from '@tingyun/harmonyos';
export class TingyunAPM {
private static TINGYUN_APP_KEY = "" //TODO:
private static TINGYUN_REDIRECT_HOST = "wkrt.tingyun.com"
private static logEnable() {
return true
}
//
static initApp(context: common.UIAbilityContext, deviceId?: string) {
tingyun.init({
redirectHost: TingyunAPM.TINGYUN_REDIRECT_HOST,
appKey: TingyunAPM.TINGYUN_APP_KEY,
context: context,
httpEnabled: true,
logLevel: TingyunAPM.logEnable() ? LogLevel.DEBUG : LogLevel.NONE,
// TODO: axios实例对象
// axios:axiosInstance,
network: {
enabled: true,
},
crash: {
enabled: true,
jsCrashEnabled: true,
cppCrashEnabled: true,
},
freeze: {
enabled: true
}
});
if (deviceId) {
tingyun.setUserId(deviceId)
}
tingyun.startNextSession()
}
}
\ No newline at end of file
...
...
sight_harmony/commons/wdKit/src/main/ets/tingyunAPM/tingyun_0.0.6.har
0 → 100644
View file @
dc492f8
No preview for this file type
sight_harmony/products/phone/src/main/ets/startupmanager/StartupManager.ets
View file @
dc492f8
...
...
@@ -103,6 +103,7 @@ export class StartupManager {
}
private initTingyun() {
// 暂时不能用,不初始化
// Logger.debug(TAG, "App tingyunAPM 初始化")
// TingyunAPM.initApp(this.context!, DeviceUtil.clientId())
}
...
...
Please
register
or
login
to post a comment