scottyab / secure-preferences

Android Shared preference wrapper than encrypts the values of Shared Preferences. It's not bullet proof security but rather a quick win for incrementally making your android app more secure.
1.53k stars 235 forks source link

Overload resolution ambiguity #75

Open rscottcarson opened 6 years ago

rscottcarson commented 6 years ago

Right now, if trying to use SecurePreferences(context, null, "custom_prefs_name") I am getting an error: Overload Resolution Ambiguity.

I know it is recommended to use a custom generated secret or a user entered password, but this will not work in my case. Can we add another constructor to create a custom shared preferences file without having to use a null second parameter? Simply for the developers sake. I understand you can enter an empty string as well.