23 Apr 2018 06:04 PM - last edited on 19 Jun 2023 12:27 PM by Patrick_H
We are trying to use auto-instrumentation to instrument the Android UEM, they use obfuscation when creating the apk file with proguard:
-proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
Would this cause any problem with the auto-instrumentation, would it work?
Solved! Go to Solution.
24 Apr 2018 06:50 AM
Hey Alejandro,
Yes, you have to exclude some parts from obfuscation and optimization. Regarding your other question, you have to exclude the OkHttp3 library from obfuscating. You find the details in the documentation.
When you enrich your mobile user experience data via the OneAgent SDK for Mobile, then you also have to exclude the OneAgent library from obfuscating. This step is not needed, when you use the latest agent (version 7.1).
04 Jan 2023 09:31 AM
update: recent plugin version (8+) performs the instrumentation before obfuscation is done, thus the obfuscation rules no longer need to be adjusted. Details can be found here: https://www.dynatrace.com/support/help/shortlink/dynatrace-android-gradle-plugin-overview#instrument...