Skip to content

Commit 5ebdd80

Browse files
committed
release: SDK 1.18.1
1 parent 368a01b commit 5ebdd80

File tree

7 files changed

+9005
-11
lines changed

7 files changed

+9005
-11
lines changed

Sources/sdk/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ android {
2626
minSdkVersion 15
2727
targetSdkVersion 31
2828
versionCode 1
29-
versionName "1.18.0"
29+
versionName "1.18.1"
3030
buildConfigField "String", SDK_VERSION, "\"$versionName\""
3131
buildConfigField "Integer", API_LEVEL, '40'
3232
buildConfigField "Integer", MESSAGING_API_LEVEL, '11'

Sources/sdk/src/main/java/com/batch/android/BatchMessagingWebViewJavascriptBridge.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ protected String getAdvertisingIDValue()
198198
{
199199
try {
200200
AdvertisingID advertisingID = Batch.getAdvertisingID();
201-
if (advertisingID.isNotNull()) {
201+
if (advertisingID != null && advertisingID.isNotNull()) {
202202
return advertisingID.get();
203203
}
204204
} catch (IllegalArgumentException ignored) {

Sources/sdk/src/main/java/com/batch/android/BatchWebservice.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -210,18 +210,20 @@ protected PostDataProvider<JSONObject> getPostDataProvider()
210210
} else if (SystemParameterShortName.ADVERTISING_ID.shortName.equals(parameter)) {
211211
if (Batch.shouldUseAdvertisingID()) {
212212
AdvertisingID advertisingID = Batch.getAdvertisingID();
213-
214-
boolean isIdfaAvailable = advertisingID.isReady() && advertisingID.isNotNull();
215-
if (isIdfaAvailable) {
216-
ids.put(parameter, advertisingID.get());
213+
if (advertisingID != null) {
214+
boolean isIdfaAvailable = advertisingID.isReady() && advertisingID.isNotNull();
215+
if (isIdfaAvailable) {
216+
ids.put(parameter, advertisingID.get());
217+
}
217218
}
218219
}
219220
} else if (SystemParameterShortName.ADVERTISING_ID_OPTIN.shortName.equals(parameter)) {
220221
AdvertisingID advertisingID = Batch.getAdvertisingID();
221-
222-
boolean isIdfaAvailable = advertisingID.isReady();
223-
if (isIdfaAvailable) {
224-
ids.put(parameter, !advertisingID.isLimited());
222+
if (advertisingID != null) {
223+
boolean isIdfaAvailable = advertisingID.isReady();
224+
if (isIdfaAvailable) {
225+
ids.put(parameter, !advertisingID.isLimited());
226+
}
225227
}
226228
} else if (SystemParameterShortName.BRIDGE_VERSION.shortName.equals(parameter)) {
227229
String val = SystemParameterHelper.getBridgeVersion();

Sources/sdk/src/main/java/com/batch/android/module/TrackerModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ private JSONObject makeOptBaseEventData(Context context,
379379
data.put("cus", customID);
380380
}
381381

382-
if (Batch.shouldUseAdvertisingID() && advertisingID.isNotNull()) {
382+
if (Batch.shouldUseAdvertisingID() && advertisingID != null && advertisingID.isNotNull()) {
383383
try {
384384
String idv = advertisingID.get();
385385
if (idv != null) {

proguard-mappings/1.18.1/checksum.md5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
MD5 (public-sdk/Batch.aar) = 73ebcd949787d6bcda30abdf760f16d4

proguard-mappings/1.18.1/checksum.sha

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
79507740866ba21c2011f5a2d85a61df3330b655 public-sdk/Batch.aar

proguard-mappings/1.18.1/mapping.txt

Lines changed: 8990 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)