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

Static SharedPreferences field #22

Closed pivotal-csaa-dev closed 9 years ago

pivotal-csaa-dev commented 9 years ago

Due to the SharedPreferences field value in SecurePreferences it is impossible to have multiple secure preference files. This also causes issues when running Robolectric tests. We saw test pollution when we tried to inject a new instance of SecurePreferences for each test example that depended on one.

scottyab commented 9 years ago

OMG, yes this is an issue. It seems so obvious now it’s been pointed out, Thanks.

scottyab commented 9 years ago

Fixed in 0.1.2