Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

my app is not obfuscated due to -dontoptimize and -dontobfuscate rules in progaurd-rules.pro #76

Description

@malik082009

I raised an issue #74
this issue was resolved by adding following lines in progaurd-rules.pro

-dontoptimize -dontobfuscate -keepattributes SourceFile,LineNumberTable -keep class org.whispersystems.** { *; } -keep class org.thoughtcrime.securesms.** { *; } -keepclassmembers class ** { public void onEvent*(**); }

after adding above line of code, my whole app code is not obfuscated now because of just these two lines -dontoptimize -dontobfuscate.
If i remove these two instructions my app crashes during serialization of signal protocol classes.

my configuration in build.gradle file

release { minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile( 'proguard-android-optimize.txt'), 'proguard-rules.pro', 'proguard.cfg' useProguard true debuggable false } debug { minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile( 'proguard-android-optimize.txt'), 'proguard-rules.pro', 'proguard.cfg' useProguard true debuggable false }

I tried adding rules for signal in seperate file proguard.cfg, as you can see above. but no lock :(
kindly let me know how to obfuscate my app.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions