android studio newrelic proguard not reporting data -
i'm working android studio. i've exported signed apk new relic , proguard implementation. gradle.build file:
repositories { mavencentral() } apply plugin: 'com.android.application' apply plugin: 'newrelic' android { compilesdkversion 19 buildtoolsversion "20.0.0" defaultconfig { applicationid "com.myapp" minsdkversion 9 targetsdkversion 19 } buildtypes { release { runproguard true proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-android.txt' } } } dependencies { compile 'com.newrelic.agent.android:android-agent:4.87.0' }
the required premissions:
<uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.access_network_state" />
this called application initializer:
newrelic.withapplicationtoken(configurationmanager.getinstance().getnewrelictoken()) .start(mainapplication.getappcontext());
in proguard-android.txt (which used called progaurd-project.txt):
-keep class com.newrelic.** { *; } -dontwarn com.newrelic.** -keepattributes exceptions, signature, innerclasses
and have newrelic.properties in same level proguard-android.txt:
com.newrelic.application_token=aab1405bc1f2e2************************
an of import thing mention when run code unobfuscated see info beingness reported. problem when export , sign apk it's not reporting data.
android android-studio proguard newrelic
No comments:
Post a Comment