proguard

Obfuscating clojure uberjars with ProGuard

二次信任 提交于 2021-02-05 18:53:28
问题 I was wondering if anybody has any experience with obfuscating their leiningen compiled uberjars with proguard. I've tried my best to look for a solution on Google but couldn't really find an answer. I'm wondering if this is at all possible. I've been trying to obfuscate a default lein project. Here's the core.clj file: (ns proguard.core (:gen-class)) (defn -main "I don't do a whole lot." [& args] (println "Hello, World!")) the project file: (defproject proguard "0.1.0-SNAPSHOT" :description

proguard: Can't find common super class of org/apache/poi/hpbf/extractor/PublisherTextExtractor

非 Y 不嫁゛ 提交于 2021-01-29 19:25:14
问题 I am building a desktop application (using OpenJDK11, Maven). I am using ProGuard with the following config: @proguard_jmods.cfg #-dontshrink -dontoptimize #-dontobfuscate -optimizations !class/unboxing/enum -repackageclasses '' -renamesourcefileattribute SourceFile -keepattributes *Annotation*,Signature,Annotation,InnerClasses,EnclosingMethod,SourceFile,LineNumberTable -adaptresourcefilenames -dontnote -dontwarn com.ctc.wstx.**,com.github.**,com.jolbox.bonecp.**,com.mchange.v2.**,com.sun

How to disable method inlining in proguard?

ⅰ亾dé卋堺 提交于 2021-01-29 10:08:31
问题 My app is crashing with this error on Android 4.4 only Fatal Exception: nTa: java.lang.IllegalAccessError: tried to access class dUa$a[] from class patient.healofy.vivoiz.com.healofy.userprofile.contactsync.ContactSyncManager at io.reactivex.plugins.RxJavaPlugins.onError + 367(RxJavaPlugins.java:367) at io.reactivex.internal.schedulers.ScheduledRunnable.run + 69(ScheduledRunnable.java:69) at io.reactivex.internal.schedulers.ScheduledRunnable.call + 57(ScheduledRunnable.java:57) at java.util

Android Proguard & FirebaseListAdapter Are conflicting

半城伤御伤魂 提交于 2021-01-28 08:45:16
问题 good evening, I have spent a couple of hours trying to understand whats going on. This is the situation: Made an app, works fine in debug mode, but release mode gives me errors on the FirebaseListAdapter: DatabaseReference ref = FirebaseDatabase.getInstance().getReference("a/"); mAdapter = new FirebaseListAdapter<Acties>(activity, Acties.class, R.layout.list, ref) { @Override public void populateView(View v, Acties model, int position) { ((TextView)v.findViewById(R.id.textView1)).setText

How to negate classname with Proguard

别等时光非礼了梦想. 提交于 2021-01-28 06:24:29
问题 I want to be able to obfuscate only a subset of classes with proguard, but am having a hard time since proguard seems to designed primarily to obfuscate everything, except for a blacklist. However, the proguard manual does say: For additional flexibility, class names can actually be comma-separated lists of class names, with optional ! negators, just like file name filters. This notation doesn't look very Java-like, so it should be used with moderation. but there are no examples of that. I am

ProGuard - Obfuscating apk causing error

馋奶兔 提交于 2021-01-28 00:14:28
问题 I am having issues with my app once I obfuscate the code with ProGuard. The app launches ok, but once I try to make a REST call to my server, I get the below error in the LogCat.. and the app just hangs. Exception Ljava/lang/NullPointerException; thrown while initializing Lorg/codehaus/jackson/map/introspect/VisibilityChecker$Std; Any help is appreciated.. as I have searched the entire internet :| Below is my pro guard .cfg contents: -optimizationpasses 5 -dontusemixedcaseclassnames

Proguard (R8) obfuscate custom view names

坚强是说给别人听的谎言 提交于 2021-01-27 21:36:38
问题 I am using R8 in my app and have several custom views (which are referenced in xml layouts) tho their names are not obfuscated at all. Is there any way to achieve this? I am using the standard Gradle rules: release { minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } And also tried with android.enableR8.fullMode=true but it's the same. 回答1: I am using R8 in my app and have several custom views (which are

简单的路径规划案例分享

家住魔仙堡 提交于 2021-01-14 16:54:54
本文大纲 项目背景 集成准备 主要代码 成果展示 一、本项目用到的功能点: 地图服务(Map Kit)给您提供一套地图开发调用的SDK,地图数据覆盖超过200个国家和地区,支持数百种语言,方便您轻松地在应用中集成地图相关的功能,全方位提升用户体验。 关键字搜索:通过指定的关键字和可选的地理范围,查询诸如旅游景点、企业和学校之类的地点。 路径规划: 是一套以HTTPS形式提供的步行、骑行、驾车路径规划以及行驶距离计算接口,通过JSON格式返回路径查询数据,提供路径规划能力。 二、集成准备 1. AGC账号注册,项目创建 注册成为开发者 注册地址: https://developer.huawei.com/consumer/cn/service/josp/agc/index.html?ha_source=hms1 创建应用,添加sha256,开启map/site开关,下载json文件 2. 集成Map + Site SDK 将“agconnect-services.json”文件拷贝到应用级根目录下 在“allprojects > repositories”中配置HMS Core SDK的Maven仓地址。 在“buildscript > repositories”中配置HMS Core SDK的Maven仓地址。 如果App中添加了“agconnect-services.json

How to deobfuscate an Android stacktrace using mapping file

让人想犯罪 __ 提交于 2021-01-14 13:37:55
问题 I got a stacktrace from the crashreporting system and it is obfuscated, like ... Failed resolution of: Lru/test/c/b/a; ... I have a mapping file. How to deobfuscate this stacktrace using mapping.txt? 回答1: Get deobfuscated crash stacktrace from your app page Upload your mapping.txt to your app PlayStore page with the following steps: Sign in to your Play Console. Select an app. On the left menu, click Android vitals > Deobfuscation files. Next to a version of your app, click Upload. Upload the

How to deobfuscate an Android stacktrace using mapping file

喜你入骨 提交于 2021-01-14 13:33:08
问题 I got a stacktrace from the crashreporting system and it is obfuscated, like ... Failed resolution of: Lru/test/c/b/a; ... I have a mapping file. How to deobfuscate this stacktrace using mapping.txt? 回答1: Get deobfuscated crash stacktrace from your app page Upload your mapping.txt to your app PlayStore page with the following steps: Sign in to your Play Console. Select an app. On the left menu, click Android vitals > Deobfuscation files. Next to a version of your app, click Upload. Upload the