Skip to content

Commit 3a77720

Browse files
committed
Merge branch 'master' into jay/MOB-4439-update-email
2 parents 0818f8d + 5a0abda commit 3a77720

File tree

7 files changed

+13
-35
lines changed

7 files changed

+13
-35
lines changed

CHANGELOG.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1414

1515
#### Fixed
1616
- nothing yet
17-
-
17+
18+
## [3.4.8](https://github.com/Iterable/iterable-android-sdk/releases/tag/3.4.8)
19+
#### Removed
20+
- Removed collection of advertising ID.
21+
22+
#### Fixed
23+
- Fixed an issue where `disableDevice` would get called with no device token.
24+
1825
## [3.4.7](https://github.com/Iterable/iterable-android-sdk/releases/tag/3.4.7)
1926
#### Added
2027
- This release makes offline events processing available to all Iterable customers who'd like to use it — just ask your customer success manager to enable it for your account. Offline events processing saves a local copy of events triggered in your app while the device is offline (up to 1000 events). When a connection is re-established and your app is in the foreground, the events will be sent to Iterable. For more information, read [Offline events processing](https://support.iterable.com/hc/articles/360035395671#offline-events-processing).

iterableapi-ui/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ ext {
4848
siteUrl = 'https://github.com/Iterable/iterable-android-sdk'
4949
gitUrl = 'https://github.com/Iterable/iterable-android-sdk.git'
5050

51-
libraryVersion = '3.4.7'
51+
libraryVersion = '3.4.8'
5252

5353
developerId = 'davidtruong'
5454
developerName = 'David Truong'

iterableapi/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ android {
1111
minSdkVersion 16
1212
targetSdkVersion 27
1313

14-
buildConfigField "String", "ITERABLE_SDK_VERSION", "\"3.4.7\""
14+
buildConfigField "String", "ITERABLE_SDK_VERSION", "\"3.4.8\""
1515

1616
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1717
}
@@ -71,7 +71,7 @@ ext {
7171
siteUrl = 'https://github.com/Iterable/iterable-android-sdk'
7272
gitUrl = 'https://github.com/Iterable/iterable-android-sdk.git'
7373

74-
libraryVersion = '3.4.7'
74+
libraryVersion = '3.4.8'
7575

7676
developerId = 'davidtruong'
7777
developerName = 'David Truong'

iterableapi/src/main/java/com/iterable/iterableapi/IterableApiClient.java

-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,6 @@ protected void registerDeviceToken(@Nullable String email, @Nullable String user
429429
dataFields.put(IterableConstants.FIREBASE_COMPATIBLE, true);
430430
dataFields.put(IterableConstants.DEVICE_BRAND, Build.BRAND); //brand: google
431431
dataFields.put(IterableConstants.DEVICE_MANUFACTURER, Build.MANUFACTURER); //manufacturer: samsung
432-
dataFields.putOpt(IterableConstants.DEVICE_ADID, IterableUtil.getAdvertisingId(authProvider.getContext())); //ADID: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
433432
dataFields.put(IterableConstants.DEVICE_SYSTEM_NAME, Build.DEVICE); //device name: toro
434433
dataFields.put(IterableConstants.DEVICE_SYSTEM_VERSION, Build.VERSION.RELEASE); //version: 4.0.4
435434
dataFields.put(IterableConstants.DEVICE_MODEL, Build.MODEL); //device model: Galaxy Nexus

iterableapi/src/main/java/com/iterable/iterableapi/IterableConstants.java

-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ public final class IterableConstants {
127127
//Device
128128
public static final String DEVICE_BRAND = "brand";
129129
public static final String DEVICE_MANUFACTURER = "manufacturer";
130-
public static final String DEVICE_ADID = "advertisingId";
131130
public static final String DEVICE_SYSTEM_NAME = "systemName";
132131
public static final String DEVICE_SYSTEM_VERSION = "systemVersion";
133132
public static final String DEVICE_MODEL = "model";

iterableapi/src/main/java/com/iterable/iterableapi/IterableUtil.java

-27
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,6 @@ static int convertVersionStringToInt(String versionString) {
4949
return instance.convertVersionStringToInt(versionString);
5050
}
5151

52-
/**
53-
* Gets the advertisingId if available
54-
* @return
55-
*/
56-
static String getAdvertisingId(Context context) {
57-
return instance.getAdvertisingId(context);
58-
}
59-
6052
static void saveExpirableJsonObject(SharedPreferences preferences, String key, JSONObject object, long expirationInterval) {
6153
instance.saveExpirableJsonObject(preferences, key, object, expirationInterval);
6254
}
@@ -145,25 +137,6 @@ int convertVersionStringToInt(String versionString) {
145137
return version;
146138
}
147139

148-
String getAdvertisingId(Context context) {
149-
String advertisingId = null;
150-
try {
151-
Class adClass = Class.forName("com.google.android.gms.ads.identifier.AdvertisingIdClient");
152-
if (adClass != null) {
153-
Object advertisingIdInfo = adClass.getMethod("getAdvertisingIdInfo", Context.class).invoke(null, context);
154-
if (advertisingIdInfo != null) {
155-
advertisingId = (String) advertisingIdInfo.getClass().getMethod("getId").invoke(advertisingIdInfo);
156-
}
157-
}
158-
} catch (ClassNotFoundException e) {
159-
IterableLogger.d(TAG, "ClassNotFoundException: Can't track ADID. " +
160-
"Check that play-services-ads is added to the dependencies.", e);
161-
} catch (Exception e) {
162-
IterableLogger.w(TAG, "Error while fetching advertising ID", e);
163-
}
164-
return advertisingId;
165-
}
166-
167140
void saveExpirableJsonObject(SharedPreferences preferences, String key, JSONObject object, long expirationInterval) {
168141
saveExpirableValue(preferences, key, object.toString(), expirationInterval);
169142
}

sample-apps/inbox-customization/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ dependencies {
3333
implementation 'androidx.navigation:navigation-ui-ktx:2.1.0'
3434
implementation 'com.google.android.material:material:1.1.0'
3535

36-
implementation 'com.iterable:iterableapi:3.4.7'
37-
implementation 'com.iterable:iterableapi-ui:3.4.7'
36+
implementation 'com.iterable:iterableapi:3.4.8'
37+
implementation 'com.iterable:iterableapi-ui:3.4.8'
3838
implementation 'com.squareup.okhttp3:mockwebserver:4.2.2'
3939

4040
testImplementation 'junit:junit:4.12'

0 commit comments

Comments
 (0)