File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.10-bin.zip
4
+ networkTimeout =10000
5
+ validateDistributionUrl =true
4
6
zipStoreBase =GRADLE_USER_HOME
5
7
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -144,6 +144,11 @@ public class Event {
144
144
*/
145
145
public String revenueType ;
146
146
147
+ /**
148
+ * The 3 letter revenue currency code for the item purchased.
149
+ */
150
+ public String currency ;
151
+
147
152
/**
148
153
* An incrementing counter to distinguish events with the same user_id and timestamp from each
149
154
* other. We recommend you send an event_id, increasing over time, especially if you expect events
@@ -271,6 +276,7 @@ public JSONObject toJsonObject() {
271
276
event .put ("revenue" , revenue );
272
277
event .put ("productId" , productId );
273
278
event .put ("revenueType" , revenueType );
279
+ event .put ("currency" , currency );
274
280
}
275
281
276
282
event .put ("event_id" , replaceWithJSONNull (eventId ));
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ public void testLogEventWithRevenue() {
76
76
event .price = price ;
77
77
event .productId = productId ;
78
78
event .revenueType = revenueType ;
79
+ event .currency = "USD" ;
79
80
80
81
JSONObject truncatedEvent = event .toJsonObject ();
81
82
assertEquals (eventType , truncatedEvent .getString ("event_type" ));
@@ -85,6 +86,7 @@ public void testLogEventWithRevenue() {
85
86
assertEquals (quantity , truncatedEvent .getInt ("quantity" ));
86
87
assertEquals (productId , truncatedEvent .getString ("productId" ));
87
88
assertEquals (revenueType , truncatedEvent .getString ("revenueType" ));
89
+ assertEquals ("USD" , truncatedEvent .getString ("currency" ));
88
90
}
89
91
90
92
@ Test
You can’t perform that action at this time.
0 commit comments