String repository clearing #122
-
Is there any way to remove all keys and locales from a repository (memory and persistent/sharedprefs)? I'm using the default one, and I tried using Restring.getStringRepository().getStrings().clear() without success. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This test does check exactly that: So I am not sure what is not working for you. Can you clone the repository and either modify the sample app or the test cases to reproduce your issue? |
Beta Was this translation helpful? Give feedback.
-
Sorry, you are right. I've got confused by after seeing the xml files being present at the app's sharedprefs data folder. But if I download the file, the map is empty. Thank you very much, this library is excellent :) |
Beta Was this translation helpful? Give feedback.
This test does check exactly that:
restring/restring/src/test/java/dev/b3nedikt/restring/repository/CachedStringRepositoryTest.kt
Lines 49 to 58 in 5f153ba
So I am not sure what is not working for you. Can you clone the repository and either modify the sample app or the test cases to reprod…