Skip to content

Commit

Permalink
Prepare for release 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
chshapiro committed Jul 28, 2017
1 parent a13d5cb commit c41e21d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.0.2
* Fixes a bug where an "Install Attributed" event without any data was causing a crash.

## 2.0.1
* Uses analytics-android 4.2.6 and Appboy 2.0.4
* Fixes an issue where install attribution data was being sent up as an event.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildscript {
}

group = 'com.appboy'
version = '2.0.1'
version = '2.0.2'

apply plugin: 'com.android.library'
apply plugin: 'checkstyle'
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GROUP=com.appboy

VERSION_CODE=201
VERSION_NAME=2.0.1
VERSION_CODE=202
VERSION_NAME=2.0.2

POM_ARTIFACT_ID=appboy-segment-integration
POM_PACKAGING=aar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,18 +186,23 @@ public void flush() {
@Override
public void track(TrackPayload track) {
super.track(track);
if (track == null) {
return;
}
String event = track.event();
if (event == null) {
return;
}
Properties properties = track.properties();
if (event.equals("Install Attributed")) {
Properties campaignProps = (Properties) properties.get("campaign");
mAppboy.getCurrentUser().setAttributionData(new AttributionData(
campaignProps.getString("source"),
campaignProps.getString("name"),
campaignProps.getString("ad_group"),
campaignProps.getString("ad_creative")));
if (campaignProps != null) {
mAppboy.getCurrentUser().setAttributionData(new AttributionData(
campaignProps.getString("source"),
campaignProps.getString("name"),
campaignProps.getString("ad_group"),
campaignProps.getString("ad_creative")));
}
return;
}
if (properties == null || properties.size() == 0) {
Expand Down

0 comments on commit c41e21d

Please sign in to comment.