Skip to content

Commit f570211

Browse files
authored
Update TitaniumFirebaseAnalyticsModule.java
1 parent 448c07a commit f570211

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

android/src/firebase/analytics/TitaniumFirebaseAnalyticsModule.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
/**
2-
* This file was auto-generated by the Titanium Module SDK helper for Android
3-
* Appcelerator Titanium Mobile
4-
* Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved.
2+
* Ti.FirebaseAnalytics
3+
* Copyright (c) 2018 by Hans Knöchel.
54
* Licensed under the terms of the Apache Public License
65
* Please see the LICENSE included with this distribution for details.
7-
*
86
*/
7+
98
package firebase.analytics;
109

1110
import org.appcelerator.kroll.annotations.Kroll;
@@ -49,12 +48,12 @@ public void log(String name, @Kroll.argument(optional = true) KrollDict paramete
4948
this.analyticsInstance().logEvent(name, this.mapToBundle(parameters));
5049
}
5150

52-
// it needs 11.6.0 version
5351
@Kroll.method
5452
public void resetAnalyticsData()
5553
{
56-
//this.analyticsInstance().resetAnalyticsData();
57-
Log.e("FirebaseAnalytics","Sorry, resetAnalyticsData() requires /lib version > 11.6.0, but we still use 11.0.4 :'(");
54+
// TODO: Uncomment once Ti.PlayServices >= 11.6.0 is used
55+
// this.analyticsInstance().resetAnalyticsData();
56+
Log.e("FirebaseAnalytics", "The \"resetAnalyticsData()\" method on Android requires Ti.PlayServices >= 11.6.0");
5857
}
5958

6059
@Kroll.method @Kroll.setProperty

0 commit comments

Comments
 (0)