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

KeyHelper.generateIdentityKeyPair() throws k.c.a.d exception #75

Open
sharpstar2000 opened this issue Nov 17, 2020 · 1 comment
Open

Comments

@sharpstar2000
Copy link

KeyHelper.generateIdentityKeyPair() throws k.c.a.d exception

    debug {
            minifyEnabled true   // Obfuscate and minify codes
            shrinkResources true // Remove unused resources
            useProguard true
            debuggable true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }

Originally posted by @malik082009 in #74

@malik082009
Copy link

malik082009 commented Nov 18, 2020

adding

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

in progaurd-rules.pro resolved the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants