proguard

What are the ProGuard rules for Firebase?

纵然是瞬间 提交于 2019-12-20 10:29:24
问题 What are the ProGuard rules for these dependencies? compile 'com.google.firebase:firebase-core:10.0.1' compile 'com.google.firebase:firebase-crash:10.0.1' compile 'com.google.firebase:firebase-messaging:10.0.1' compile 'com.google.firebase:firebase-ads:10.0.1' 回答1: Firebase uses the consumerProguardFiles feature to automatically include the appropriate ProGuard if you're using Gradle, meaning you don't need to manually include anything. If you need to manually apply the proguard rules, you

ClassNotFoundException: Didn't find class on path: DexPathList

£可爱£侵袭症+ 提交于 2019-12-20 08:57:13
问题 I have a problem since I updated my App on playstore. Since this update, the exception is thrown, but I haven´t changed anything related to this exception. Stacktrace: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{de.opiatefuchs.onthejobtimerlight/de.opiatefuchs.onthejobtimerlight.OnTheJobTimerActivity}: java.lang.ClassNotFoundException: Didn't find class "de.opiatefuchs.onthejobtimerlight.OnTheJobTimerActivity" on path: DexPathList[[zip file "/data/app/de

transformClassesAndResourcesWithProguardForRelease FAILED

℡╲_俬逩灬. 提交于 2019-12-20 08:13:18
问题 I am trying to Build my Android application with Gradle in console. But getting below error about task ':app:transformClassesAndResourcesWithProguardForRelease': build.gradle: buildscript { repositories { jcenter() maven { url "https://jitpack.io" } } dependencies { classpath 'com.android.tools.build:gradle:2.2.3' classpath 'com.google.gms:google-services:3.0.0' } } allprojects { repositories { jcenter() maven { url "https://jitpack.io" } } } task clean(type: Delete) { delete rootProject

transformClassesAndResourcesWithProguardForRelease FAILED

倾然丶 夕夏残阳落幕 提交于 2019-12-20 08:12:37
问题 I am trying to Build my Android application with Gradle in console. But getting below error about task ':app:transformClassesAndResourcesWithProguardForRelease': build.gradle: buildscript { repositories { jcenter() maven { url "https://jitpack.io" } } dependencies { classpath 'com.android.tools.build:gradle:2.2.3' classpath 'com.google.gms:google-services:3.0.0' } } allprojects { repositories { jcenter() maven { url "https://jitpack.io" } } } task clean(type: Delete) { delete rootProject

Is proguard enough to pass penetration testing?

守給你的承諾、 提交于 2019-12-20 07:48:10
问题 For our android mobile app , we have to choose an obfuscation tool so that our app will pass penetration test cases. Is Proguard enough for the same or we should use Dexguard? 回答1: Obfuscation is NOT enough to pass a penetration test A proper penetration test will analyze both static and runtime behavior of your app, so the runtime behavior will not be covered at all only through obfuscation But also considering exclusively the static analysis that you will undergo you are far from being

Proguard - getting NullPointerException on FloatingActionButton using findViewById

…衆ロ難τιáo~ 提交于 2019-12-20 06:25:33
问题 I'm getting NullPointerException on FloatingActionButton using Proguard. This is the error:- E/AndroidRuntime: FATAL EXCEPTION: main Process: org.plabs.app.unews, PID: 2216 java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.material.animation.MotionTiming com.google.android.material.animation.MotionSpec.getTiming(java.lang.String)' on a null object reference at com.google.android.material.floatingactionbutton.FloatingActionButtonImpl.createAnimator(:519) at

From Eclipse to Android Studio: Why is proguard.cfg used when NOT building Release?

僤鯓⒐⒋嵵緔 提交于 2019-12-20 03:44:21
问题 So, I have been trying to migrate the development of a multi-project (eclipse projects that is) app to Android Studio (v1.1). Importing via File > Import Project was really easy and went without incident. However, when I tried Make/Rebuild project I encountered numerous surprises. The first, not Proguard-related, had to do with source file encoding (originally in Windows-1252), but I quickly found a solution using this Windows-1252 > Reload > UTF-8 > Convert answer. Then, "error: cannot find

Prograurding android project using Javacv gives exception

懵懂的女人 提交于 2019-12-20 03:15:13
问题 Hi i am developing an app with Javacv. The app works fine until i proguard the build. After proguarding, the app crashes at the place of jni function call. -dontshrink -dontoptimize -dontpreverify -dontwarn android.support.** -keep class com.googlecode.javacv.** -dontwarn com.googlecode.javacv.** -keep class com.googlecode.javacpp.** -dontwarn com.googlecode.javacpp.** -keepclasseswithmembernames class * { native <methods>; } -keepattributes *Annotation* I can't find any answer that solves my

Java: How to integrate ProGuard in Jar Project using custom Ant build.xml

孤街浪徒 提交于 2019-12-19 11:53:30
问题 I have simple java project which refers to two (2) library jar files. Want to integrate ProGuard. Here's my current build.xml: <?xml version="1.0" ?> <project name="Samples" default="dist" basedir="."> <!-- generate JAR START --> <description>Samples Library</description> <!-- Setting global properties for this build --> <property name="src" location="src" /> <property name="bin" location="bin" /> <target name="dist"> <jar destfile="Samples.jar" basedir="bin/"> <!-- Use ** to include the

annotations having no effect in proguard

我怕爱的太早我们不能终老 提交于 2019-12-19 11:33:22
问题 I'm having troubles getting proguard to keep things based on their annotations (under Android). I have an annotation, com.example.Keep: @Target({ ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR }) public @interface Keep { } I have a class, which is only ever constructed through reflection: public class Bar extends Foo { @com.example.Keep Bar(String a, String b) { super(a, b); } //... } It works as expected (class keeps its constructor albeit with an obfuscated