Skip to content

Commit c1a9958

Browse files
authored
Merge branch 'master' into flag-immutable-android-12
2 parents 53a9d09 + 8d9691e commit c1a9958

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [2.0.5](https://github.com/parse-community/Parse-SDK-Android/compare/2.0.4...2.0.5) (2021-11-10)
2+
3+
4+
### Bug Fixes
5+
6+
* failed signup attempt with anonymous ParseUser leaves it in inconsistent state ([#1136](https://github.com/parse-community/Parse-SDK-Android/issues/1136)) ([ac6d9e0](https://github.com/parse-community/Parse-SDK-Android/commit/ac6d9e0734d1ea9c0bc26ddd7bfa8dea21a8c693))
7+
18
## [2.0.4](https://github.com/parse-community/Parse-SDK-Android/compare/2.0.3...2.0.4) (2021-11-03)
29

310

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version = 2.0.4
1+
version = 2.0.5
22
android.enableJetifier = true
33
android.useAndroidX = true

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parse-sdk-android",
3-
"version": "2.0.4",
3+
"version": "2.0.5",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/parse-community/Parse-SDK-Android.git"

parse/src/main/java/com/parse/ParseUser.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -757,15 +757,15 @@ private Map<String, String> getAuthData(String authType) {
757757

758758
/* package */ void putAuthData(String authType, Map<String, String> authData) {
759759
synchronized (mutex) {
760-
Map<String, Map<String, String>> newAuthData = getAuthData();
760+
Map<String, Map<String, String>> newAuthData = new HashMap<>(getAuthData());
761761
newAuthData.put(authType, authData);
762762
performPut(KEY_AUTH_DATA, newAuthData);
763763
}
764764
}
765765

766766
private void removeAuthData(String authType) {
767767
synchronized (mutex) {
768-
Map<String, Map<String, String>> newAuthData = getAuthData();
768+
Map<String, Map<String, String>> newAuthData = new HashMap<>(getAuthData());
769769
newAuthData.remove(authType);
770770
performPut(KEY_AUTH_DATA, newAuthData);
771771
}

parse/src/test/java/com/parse/ParseUserTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ public void testSaveAsyncWithLazyAndCurrentUser() throws Exception {
959959
ParseTaskUtils.wait(partialMockUser.saveAsync("sessionToken", Task.<Void>forResult(null)));
960960

961961
// Make sure we clean authData
962-
assertFalse(partialMockUser.getAuthData().containsKey("facebook"));
962+
assertFalse(partialMockUser.getState().authData().containsKey("facebook"));
963963
// Make sure we save new currentUser
964964
verify(currentUserController, times(1)).setAsync(partialMockUser);
965965
}

0 commit comments

Comments
 (0)