obfuscation

How to keep original line numbers in stack traces with R8?

十年热恋 提交于 2020-12-26 11:06:27
问题 I'm trying to figure out how to keep original line numbers with R8. Doing an app with current AndroidStudio and obfuscating it with R8, and even uploading mapping.txt file to Google Play Console, the Stack Traces of the users are useless in some cases, because the lines of the crash are not the same as in the real non obfuscated file. This is a sample, my class doesn't have 3000 lines, but the error is reported in line 3052 ( com.mypackage.activities.ManagerActivity.onCreate (ManagerActivity

Obfuscate Java Jar with dependencies using Maven Proguard Plugin in a Hello World project

久未见 提交于 2020-12-15 06:33:16
问题 I started from the most simple Maven generated project and added a class that should be ofuscated There is no obfuscation after mvn clean install I attached an archive with the whole Maven / Intellij project https://drive.google.com/file/d/1D0G5LGsJmhIAP8dEx0WtxXEx5pTe3VNM/view?usp=sharing pom is <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0

Obfuscate Java Jar with dependencies using Maven Proguard Plugin in a Hello World project

℡╲_俬逩灬. 提交于 2020-12-15 06:31:28
问题 I started from the most simple Maven generated project and added a class that should be ofuscated There is no obfuscation after mvn clean install I attached an archive with the whole Maven / Intellij project https://drive.google.com/file/d/1D0G5LGsJmhIAP8dEx0WtxXEx5pTe3VNM/view?usp=sharing pom is <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0

javascript - how to minfy/obfuscate global function names?

女生的网名这么多〃 提交于 2020-12-04 03:36:51
问题 I have some code that has the following format: function myfunc1 () { ... jquery.bind('click', myfunc2) ... } function myfunc2 () { ... } ... Yes, the functions are global, but it's ok since I'm writing within a google chrome extension content script, so it's sandboxed. Now, I'm trying to minify and obfuscate the code. I've tried YUI Compressor and the Google Closure compiler. The problem is, I can't figure out how to minify/obfuscate the global function names. With YUI it doesn't minify the

TypeScript Obfuscation

≡放荡痞女 提交于 2020-12-01 08:55:30
问题 Are there any tools or forks of TypeScript to support public namespace obfuscation? I.e. to turn: class MyUtil { print(): void { ... } } Into something like: class xxy { aab(): void { ... } } If not, would be be straight forward to fork the compiler to provide this? Perhaps with some type of class annotation indication what should / shouldn't be obfuscated. (Obviously public obfuscation has to be used carefully, no good for libraries! But great if used consistently across your project) 回答1: I