Skip to content

Commit

Permalink
release: SDK 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-roland committed May 27, 2024
1 parent 1235959 commit b8811f4
Show file tree
Hide file tree
Showing 4 changed files with 11,878 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/buildSrc/src/main/java/Consts.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ object ProjectConsts {
}

object SDKConsts {
const val VERSION = "2.0.1"
const val VERSION = "2.0.2"
const val API_LEVEL = 200
const val MESSAGING_API_LEVEL = 12

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import com.batch.android.user.UserAttribute;
import java.net.URI;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.List;

Expand Down Expand Up @@ -366,7 +366,7 @@ public BatchProfileAttributeEditor addToArray(final @NonNull String key, final @
);
return this;
}
this.profileUpdateOperation.addToList(normalizedKey, Arrays.asList(value));
this.profileUpdateOperation.addToList(normalizedKey, new ArrayList<>(Collections.singletonList(value)));
} catch (AttributeValidationException e) {
e.printErrorMessage(TAG, key);
return this;
Expand Down Expand Up @@ -427,7 +427,10 @@ public BatchProfileAttributeEditor removeFromArray(final @NonNull String key, fi
);
return this;
}
this.profileUpdateOperation.removeFromList(normalizedKey, new ArrayList<>(Arrays.asList(value)));
this.profileUpdateOperation.removeFromList(
normalizedKey,
new ArrayList<>(Collections.singletonList(value))
);
} catch (AttributeValidationException e) {
e.printErrorMessage(TAG, key);
return this;
Expand Down Expand Up @@ -456,7 +459,7 @@ public BatchProfileAttributeEditor removeFromArray(final @NonNull String key, fi
);
return this;
}
this.profileUpdateOperation.removeFromList(normalizedKey, values);
this.profileUpdateOperation.removeFromList(normalizedKey, new ArrayList<>(values));
} catch (AttributeValidationException e) {
e.printErrorMessage(TAG, key);
return this;
Expand Down
1 change: 1 addition & 0 deletions proguard-mappings/2.0.2/checksum.sha
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
535818815e54c357c3e5874dccb6b466c0dd3d83 public-sdk/Batch.aar
Loading

0 comments on commit b8811f4

Please sign in to comment.