android-proguard

How to obfuscate android library(.aar) using proguard?

大城市里の小女人 提交于 2019-12-23 09:50:02
问题 I want to obfuscate the .aar library using proguard for distribution purpose, I tried many solution over internet but nothing has worked till now, only some code are obfuscated. Can anybody help me to solve the issue? 回答1: In your build.gradle, add consumerProguardFiles under defaultConfig : android { compileSdkVersion Integer.parseInt("${COMPILE_SDK}") buildToolsVersion "${BUILD_TOOLS_VERSION}" defaultConfig { targetSdkVersion Integer.parseInt("${TARGET_SDK}") minSdkVersion Integer.parseInt(

Where to find the warning of `Warnings found during shrinking`?

不想你离开。 提交于 2019-12-23 09:49:49
问题 After adding RxAndroid and Retrofit library to my gradle, and compile, I got the below error, shows in my Android Studio Message panel. Error:Execution failed for task ':app:transformClassesWithNewClassShrinkerForProductionDebug'. > Warnings found during shrinking, please use -dontwarn or -ignorewarnings to suppress them. In my Debug, I use minifyEnabled true useProguard false I believe I could use -dontwarn or ignorewarnings to suprress and let the compilation continue. But I would like to

Proguard with Crashlytics

偶尔善良 提交于 2019-12-23 09:35:14
问题 We have added crashlytics in our android application, and we are using proguard . So, as the crashlytics documentation says, we have added the following code in our proguard configuration file: -keep class com.crashlytics.** { *; } -keep class com.crashlytics.android.** -keepattributes SourceFile,LineNumberTable *Annotation* Unfortunately, when we sign the APK, we get the following error: java.io.IOException: proguard.ParseException: Unknown option '*Annotation*' What are we doing wrong?

Android: i want to create code very secure [closed]

≡放荡痞女 提交于 2019-12-23 06:42:33
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . My question is to develop one application in android, so meanwhile I want to create well secure code, I'm uploading APK in play store how to obfuscates my code using a Proguard, I need to obfuscate class names, libraries, id and basic functionalities in the Proguard. Please help

Android: i want to create code very secure [closed]

不问归期 提交于 2019-12-23 06:42:33
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . My question is to develop one application in android, so meanwhile I want to create well secure code, I'm uploading APK in play store how to obfuscates my code using a Proguard, I need to obfuscate class names, libraries, id and basic functionalities in the Proguard. Please help

How to keep the classes with native functions

允我心安 提交于 2019-12-23 06:04:20
问题 Is it possible to tell the ProGuard to completely skip the class if there is native function in it ? -keepclasseswithmembernames class * { native <methods>; } Above doesn't work for me because it keeps the class names and the native functions names but obfuscates other members I'd like to know if it's possible to keep everything in such classes without explicitly specifying every class Thank you 回答1: Is it possible to tell the ProGuard to completely skip the class if there is native function

How to keep the classes with native functions

馋奶兔 提交于 2019-12-23 06:03:40
问题 Is it possible to tell the ProGuard to completely skip the class if there is native function in it ? -keepclasseswithmembernames class * { native <methods>; } Above doesn't work for me because it keeps the class names and the native functions names but obfuscates other members I'd like to know if it's possible to keep everything in such classes without explicitly specifying every class Thank you 回答1: Is it possible to tell the ProGuard to completely skip the class if there is native function

Unable to Build Release Apk Android Studio 3.0.1 Proguard-Rules

一曲冷凌霜 提交于 2019-12-22 17:54:45
问题 I am trying to build the release apk of my app but I am unable to do so. I have built this app before using the old gradle and android studio I think it was version 2.3.3. I updated everything to version 3.0.1 and I am unable to build the app anymore. I tried reverting but it still cause the execution to fail, something about my proguard. The message: Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. Job failed, see logs for details My progurd-rules

Crashlytics crash with proguard

旧时模样 提交于 2019-12-22 13:52:42
问题 I did everything that fabric ask in their documentation: -renamesourcefileattribute SourceFile -keepattributes *Annotation* -keepattributes SourceFile,LineNumberTable -keep public class * extends java.lang.Exception -keep class com.crashlytics.** { *; } -dontwarn com.crashlytics.** But still got this error: E/Answers: Failed to submit events task java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@d2d2a84 rejected from

Any working Proguard Configuration for Android App with React Native with obfuscation?

浪子不回头ぞ 提交于 2019-12-22 10:47:07
问题 When I use the -dontobfuscate option in my existing android app with a single React Native screen, release build works fine. (I had to also set react native configurations for pro-guard from https://github.com/facebook/react-native/blob/master/local-cli/generator-android/templates/src/app/proguard-rules.pro) However, I want to obfuscate my existing app and ignore react-native obfuscation only (since it's not supported as per : https://github.com/facebook/react-native/issues/7530) After