Skip to content

Commit

Permalink
update android v2.13.3
Browse files Browse the repository at this point in the history
  • Loading branch information
djih committed Apr 18, 2017
1 parent 4c61555 commit ff76ac2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Assets/Amplitude/Amplitude.cs
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,9 @@ public void regenerateDeviceId() {
#endif

#if UNITY_ANDROID
// if (Application.platform == RuntimePlatform.Android) {
// pluginClass.CallStatic<string>("regenerateDeviceId");
// }
if (Application.platform == RuntimePlatform.Android) {
pluginClass.CallStatic("regenerateDeviceId");
}
#endif
}

Expand Down
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Assets/Scripts/Bar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ void OnGUI () {
} else if (Application.platform == RuntimePlatform.Android) {
amplitude.logRevenue("sku", 1, 1.99, "receipt", "receiptSignature", "purchase", revenueProperties);
}

amplitude.regenerateDeviceId();
amplitude.logEvent("log event with new device id");
}
}
}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## April 17, 2017
* Updated Android to v2.13.3 [release notes](https://github.com/amplitude/Amplitude-Android/blob/master/CHANGELOG.md)
* Updated iOS to v3.14.1 [release notes](https://github.com/amplitude/Amplitude-iOS/blob/master/CHANGELOG.md)
* Add support for tvOS

Expand Down
Binary file modified amplitude-unity.unitypackage
Binary file not shown.

0 comments on commit ff76ac2

Please sign in to comment.