Coder Social home page Coder Social logo

Comments (6)

scottyab avatar scottyab commented on June 1, 2024

Can you supply your proguard.cfg?

from secure-preferences.

XandrMaster avatar XandrMaster commented on June 1, 2024

Yes, of course:

-dontwarn **
-dontshrink
-dontoptimize
-keep class com.google.** { ; }
-keep class android.
* { ; }
-keep class org.apache.
* { ; }
-keep class com.activeandroid.
* { ; }
-keep class com.squareup.
* { ; }
-keep class retrofit.
* { ; }
-keep class rx.
* { ; }
-keep class com.facebook.
* { ; }
-keep class pl.charmas.
* { ; }
-keep class com.orhanobut.
* { ; }
-keep class com.tozny.
* { ; }
-keep class com.securepreferences.
* { ; }
-keep class com.scottyab.
* { ; }
-keep class java.security.
* { ; }
-keep class javax.crypto.
* { ; }
-keep class org.acra.
* { ; }
-keep class okio.
* { ; }
-keep class bolts.
* { ; }
-keep class pl.charmas.
* { ; }
#-keep class erparchitector.findwork.
* { *; }

-keepattributes Signature

Gson specific classes

#-keep class sun.misc.Unsafe { ; }
-keep class sun.misc.
* { ; }
-keep class com.google.gson.stream.
* { *; }

Application classes that will be serialized/deserialized over Gson

#-keep class com.google.gson.examples.android.model.** { *; }

-printmapping classes-processed-proguard.map

from secure-preferences.

danybony avatar danybony commented on June 1, 2024

I had the same problem in a project using Secure-preferences.
Adding the following to the Proguard config file worked in my case:

-keep class com.tozny.crypto.android.** { *; }
-keep class com.securepreferences.** { *; }

@scottyab do you see any issue with that?

from secure-preferences.

scottyab avatar scottyab commented on June 1, 2024

@danybony that'll work. Of course you're excluding all the library code so it's not obfuscated. It would be better security (even if security by obscurity) to have that obfuscated too. I'll add to the issues, I'm sure it's only a small part that needs excluding.

from secure-preferences.

scottyab avatar scottyab commented on June 1, 2024

See issue #29

from secure-preferences.

scottyab avatar scottyab commented on June 1, 2024

This issue has been fixed as part of v0.1.4 - also please note unlike previous versions from 0.1.4+ no specific ProGuard config is need to get working. Just waiting for maven central to propagate dependancy.

Also please note there is specific DexGuard config supplied with DexGuard 7+ located <dexgaurd root>/samples/advanced/SecurePreferences

from secure-preferences.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.