proguard

How to use Kotlin with Proguard

痴心易碎 提交于 2019-11-27 05:35:20
问题 I'm trying to add Kotlin to my project and I need to use proguard. Which rules should I add to proguard to support Kotlin? Thank you 回答1: You don't need to do anything special. Kotlin works with ProGuard out of the box. But you may face some strange errors when processing your application with ProGuard. In this case just add -dontwarn kotlin.** Also if you want to get rid of null checks at runtime you may use the following rule: -assumenosideeffects class kotlin.jvm.internal.Intrinsics {

Best tool for jar or class obfuscation without need of writing any additional config file [closed]

和自甴很熟 提交于 2019-11-27 05:25:53
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . I'm looking for a tool which will give a acute performance in class or jar obfuscation and can contrive to obfuscate the jar easily. But for few day I stuck on searching for this tool. I know Proguard deserves itself, but I need a tool which will be very friendly and it can

Android obfuscate app using proguard keeps obfuscating library jars - or is it?

我的未来我决定 提交于 2019-11-27 05:25:14
问题 I'm new to using Proguard so I'm probably making a newbie mistake. I've got an app that after I run the release build (which uses Proguard to obfuscate) it crashes pretty quickly. I believe I've narrowed it down to the fact that it seems like it is obfuscating my reference libraries. In my case my reference libraries are used to define my message classes that I am using to communicate to another device using Google Protobuffers. I am building using, ant release. My proguard config is:

Proguard issue “Warning:Ignoring InnerClasses attribute for an anonymous inner class”

扶醉桌前 提交于 2019-11-27 05:24:25
问题 I don't know how I can describe this issue. I searched a lot, but I didn't find any solution. Also this solution did not help me -keepattributes EnclosingMethod: dependencies { compile project(':libraries:material-drawer') compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.2.0' compile 'com.android.support:recyclerview-v7:23.2.0' compile 'com.android.support:design:23.2.0' compile 'com.google.code.gson:gson:2.4'

Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease

 ̄綄美尐妖づ 提交于 2019-11-27 05:22:54
问题 I am trying to export apk and I want to enable Proguard but it throwing below error. I read so many answers and tried but didn't worked. Getting below error: Warning:Exception while processing task java.io.IOException: java.lang.NullPointerException Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease StackTrace: :app:transformClassesAndResourcesWithProguardForRelease ProGuard, version 5.2.1 Warning: Exception while processing task java.io.IOException: java

Mopub ads not showing

拟墨画扇 提交于 2019-11-27 05:20:46
I've been stuck on an issue for a while and I can't figure out what it is. The thing is I recently updated the Mopub Android SDK and both interstitial + banner ads ( AdMob and Millennial Media ) were working fine before that. Now these ads aren't working in the release build but they do work in debug build. So I think this is an issue with proguard but I can't trace what it is. The proguard is setup according to Mopub guidelines. I have added the following to proguard for my project: -keep class com.google.ads.** -keep class com.millennialmedia.android.** -keep public class com.mopub.mobileads

Android Studio proguard handling in multi-library projects

浪子不回头ぞ 提交于 2019-11-27 05:13:00
问题 I have an application that uses an externally referenced library (that is, the directory of the library is in the same level as the application - it is not copied inside the application's folder). The library is referenced by the application and both the library and the application include proguard files. Everything works fine until I build the application. When I built the app, all referenced to the classes defined in the library are not found - I get 'cannot find symbol class ...) errors on

How to change the proguard mapping file name in gradle for Android project

你。 提交于 2019-11-27 04:30:35
I have android project based on gradle and I want to change mapping.txt file name after it's generated for my build. How can it be done? upd How it can be done in build.gradle? Since I have access there to my flavors and other stiff, I would like to create mapping file name based on flavor/build variant version. Simpler solution. applicationVariants.all { variant -> if (variant.getBuildType().isMinifyEnabled()) { variant.assemble.doLast { copy { from variant.mappingFile into "${rootDir}/proguardTools" rename { String fileName -> "mapping-${variant.name}.txt" } } } } } Use this command in your

Does proguard work to obfuscate static string constants?

瘦欲@ 提交于 2019-11-27 04:01:57
Will proguard work to obfuscate static string constants? ProGuard doesn't obfuscate string constants, as mentioned in its FAQ . Its more recent specialized closed-source sibling for Android, DexGuard , provides additional application protection techniques, like string encryption and class encryption. (I am the developer of ProGuard and DexGuard) No, ProGuard doesn't encrypt strings constants ( Proguard FAQ Link ) But there are some commercial products which will help you with that. I would recommend the Stringer Java Obfuscator because it has the check call context and integrity controls

Proguard warnings “can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry)”

主宰稳场 提交于 2019-11-27 03:58:14
问题 I'm using IntelliJ and running Proguard in debug mode but I can't seem to get rid of warnings such as: ProGuard: [MyApplication] Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [android-support-v13.jar:META-INF/MANIFEST.MF]) This project has a couple of modules and android-support-v13.jar is being used on 2 of them. I thought that was the issue so I removed that library from the libs folder, added it as a project library and added the dependency to both modules. That