If you are using Eclipse, you can download the HMS Core SDK and integrate it into your Eclipse project.
If you integrate the DTM SDK using Eclipse, data cannot be reported to the Firebase and Adjust platforms.
For details, please refer to HMS Base Eclipse SDK Download.


The projects to be imported must be located in the same drive as the workspace, for example, D:\. If they are not in the same drive, select Copy projects into workspace to copy the project files to the workspace.

Copy the resource file in the assets directory of the dtm-core project to the assets directory of your app project.

If any other kits are involved, also copy their resource files to your project directory.
If your project configuration meets all of the following conditions, you do not need to configure the obfuscation configuration file:
Before building the APK, configure the obfuscation configuration file to prevent Analytics Kit and DTM from being obfuscated.
-dontwarn com.huawei.hms.**
-keep interface com.huawei.hms.analytics.type.HAEventType{*;}
-keep interface com.huawei.hms.analytics.type.HAParamType{*;}
-keep class com.huawei.hms.analytics.HiAnalyticsTools{
public static void enableLog();
public static void enableLog(int);
}
-keep class com.huawei.hms.analytics.HiAnalyticsInstance{*;}
-keep class com.huawei.hms.analytics.HiAnalytics{*;}
-keep class com.huawei.hms.feature.** {
public *;
}
-keep public class com.huawei.hms.common.** {
public *;
}
-keep class com.huawei.hms.analytics.internal.filter.EventFilter{
public void logFilteredEvent(java.lang.String, android.os.Bundle);
public java.lang.String getUserProfile(java.lang.String);
}
-keep public class com.huawei.hms.dtm.EventFilter {
public <fields>;
public <methods>;
}