proguard

“Multipart body must have at least one part”

北城以北 提交于 2019-12-19 10:32:37
问题 In previous asked question (react-native upload pictures on android) described request with param "FormData", but I requested GET request without data and got same message! react-native app with ProGuard enabled = true App crashed on first request. 06-16 14:00:30.971: E/AndroidRuntime(14321): java.lang.IllegalStateException: Multipart body must have at least one part. 06-16 14:00:30.971: E/AndroidRuntime(14321): at okhttp3.MultipartBody$Builder.build(SourceFile:327) 06-16 14:00:30.971: E

parse.com not working after proguard

牧云@^-^@ 提交于 2019-12-19 10:16:15
问题 I'm using Parse.com features in my app, everything works great on debugging mode. As soon as I generate a signed apk in release mode, I have a killing wait sometimes up to 10 seconds at the beginning of opening my app. most probably it's because of Parse.com trying to initialize and contact its servers, which apparently is not successful. And also, parse.com stops working I know so, since no data would be uploaded into my account. There should be a problem with Proguard of course since the

Why some package-private classes are not obfuscated by Proguard?

被刻印的时光 ゝ 提交于 2019-12-19 09:27:20
问题 Working with an Android project in Android Studio 3.2, having enabled Proguard and some specific rules, I'm not able to figure out the following: a specific package (and its subpackages) in a library module, used by client code, is preserved through the rule: -keep public class com.mylib.mypackage.** { public protected *; } Now, within this package there are also a number of package-private classes, which should not be picked by that rule. Some of those classes are effectively obfuscated,

Proguard keep interface method variable names

偶尔善良 提交于 2019-12-19 07:58:21
问题 I'm trying to prevent proguard from obfuscating interface method variable names. My proguard.pro has the following configurations but still the method variables appear as a, b etc. -keep public class * { public *; } -keepclassmembers class * { public *; } -keepattributes Exceptions,InnerClasses,Signature -keepparameternames -keep public interface com.test.listener.MyListener { *; } 回答1: -keep interface com.yourpackage.**{*;} is what you need. It will keep all your interface's name and methods

Android app size increased after adding admob ads using google-play-services_lib

限于喜欢 提交于 2019-12-19 02:49:42
问题 I'm gonna publishing my app in two versions, both paid and free (with AdMob ads). The two versions are exactly identical except for the google-play-service_lib that i use in the free version for AdMob services. The final apk sizes after using proguard are: 1.301.435 bytes for paid version 1.946.634 bytes for ads version In free version i show interstitial ads only. Here's my proguard settings relative to the google-play-service_lib -keep class * extends java.util.ListResourceBundle {

Proguard - Can't find common super class / java.lang.VerifyError

偶尔善良 提交于 2019-12-18 19:07:35
问题 We are developing a desktop application. When running ProGuard (version 5.3.3) on the code using the following configuration flags: -dontoptimize -allowaccessmodification -dontusemixedcaseclassnames -dontwarn Proguard gives the following error: Unexpected error while performing partial evaluation: Class = [com/code/backend/e/b/b] Method = [b(Ljava/lang/String;)Ljava/nio/file/Path;] Exception = [java.lang.IllegalArgumentException] (Can't find common super class of [com/google/common/collect

Unknown classes ILicensingService notes when obfuscating Android project

為{幸葍}努か 提交于 2019-12-18 18:54:33
问题 I'm trying to build an Android release with Ant and ProGuard. I uncommented the following line in project.properties, despite the comment in said file noting that you shouldn't modify it ;): proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt When obfuscating, I get the following notes: [proguard] Note: the configuration refers to the unknown class 'com.google.vending.licensing.ILicensingService' [proguard] Note: the configuration refers to the unknown class

Android Room Persistence Library Proguard Configuration

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 16:58:19
问题 I am using Android Room Persistence Library 1.0.0-alpha5. When compiling with ProGuard I am getting the following error. Warning:android.arch.persistence.room.paging.LimitOffsetDataSource: can't find superclass or interface android.arch.util.paging.CountedDataSource Warning:android.arch.persistence.room.paging.LimitOffsetDataSource: can't find referenced class android.arch.util.paging.CountedDataSource Warning:android.arch.persistence.room.paging.LimitOffsetDataSource$1: can't find referenced

App Crashing With Proguard Enabled

筅森魡賤 提交于 2019-12-18 16:51:53
问题 My app runs perfectly without proguard enabled but when I enable it the app crashes right away. I have tried many combinations in the configuration to no avail. Is there something that I should be keeping that I'm missing? proguard config: https://gist.github.com/hanleyhansen/99fc07807950bae8e4f5 Unobfuscated log: https://gist.github.com/hanleyhansen/6cba7fc941a79d85802f onSuccess(): https://gist.github.com/hanleyhansen/e7a4916c42d3ca065c99 回答1: I found the offending code. I changed my

How to integrate Proguard obfuscation in my JavaFX's IntelliJ artifact?

跟風遠走 提交于 2019-12-18 13:38:49
问题 I'm developing a JavaFX application using IntelliJ IDEA as the IDE. So far, everything runs smoothly, I have all my external libs configured and my JavaFX artifact being correctly created. Now I would like to integrate obfuscation (using Proguard) when the artifact is created. IntelliJ have a 'Pre-processing' and 'Post-processing' option in artifact's properties where I can define an Ant task to be runned. But I have no idea how to create that task and tell the compiler my obfuscation options