Huawei App Performance Management

implementation 'com.huawei.agconnect:agconnect-apms:1.4.1.302'
apply plugin: 'com.huawei.agconnect.apms'
classpath 'com.huawei.agconnect:agconnect-apms-plugin:1.4.1.302'
-keep class com.huawei.agconnect.**{*;}
-dontwarn com.huawei.agconnect.**
-keep class com.hianalytics.android.**{*;}
-keep class com.huawei.updatesdk.**{*;}
-keep class com.huawei.hms.**{*;}
-keep interface com.huawei.hms.analytics.type.HAEventType{*;}
-keep interface com.huawei.hms.analytics.type.HAParamType{*;}
-keepattributes Exceptions, Signature, InnerClasses, LineNumberTable
CustomTrace customTrace = APMS.getInstance().createCustomTrace("testTrace");
customTrace.start();
// code that you want to trace
customTrace.stop();
CustomTrace customTrace = APMS.getInstance().createCustomTrace("testTrace");
customTrace.start();
// update a property for the trace
customTrace.putProperty("Action", "Click");
// code that you want to trace
customTrace.stop();

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store