-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
.../MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/MapEventFactory.java
Show resolved
Hide resolved
.../MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/MapEventFactory.java
Outdated
Show resolved
Hide resolved
.../MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/MapEventFactory.java
Outdated
Show resolved
Hide resolved
...oid/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/MapLoadEvent.java
Outdated
Show resolved
Hide resolved
...oid/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/MapLoadEvent.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for requesting the following changes. I'm aware that you are just migrating the code from mapbox-events to here but this is the ideal opportunity for us to enforce code convention/cohension. Would you be able to pick this up @Chaoba ? I requested only changes to MapClickEvent but they are applicable to all MapEvent derived classes.
Next to those changes, can we also add some tests validating the contents of the event?
...id/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/MapClickEvent.java
Outdated
Show resolved
Hide resolved
...id/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/MapClickEvent.java
Outdated
Show resolved
Hide resolved
...id/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/MapClickEvent.java
Outdated
Show resolved
Hide resolved
...id/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/MapClickEvent.java
Outdated
Show resolved
Hide resolved
...id/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/MapClickEvent.java
Outdated
Show resolved
Hide resolved
...id/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/MapClickEvent.java
Outdated
Show resolved
Hide resolved
...id/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/MapClickEvent.java
Outdated
Show resolved
Hide resolved
...id/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/MapClickEvent.java
Outdated
Show resolved
Hide resolved
@tobrun Thanks for your advise, you are right, let's take this opportunity to make it best. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made some comments on OfflineDownloadEndEvent
but they are applicable to other events as well. Really like the new state model objects to avoid duplication.
If the comment about the parceable interface is correct and we don't need it . Maybe we can introduce a base class that extends Event and we can hide the empty parceable implementation? We could also move or enforce other shared items as: PhoneState and event.
Thank you for adding tests! One thing useful to test for is to see of the model classes are getting correctly serialized with Gson. So if we convert from and back with Gson we should have the same object. (to make this work, we will have to start adding equals/hashcode and a toString to all our events).
...droid/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/PhoneState.java
Outdated
Show resolved
Hide resolved
...droid/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/PhoneState.java
Outdated
Show resolved
Hide resolved
...droid/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/PhoneState.java
Show resolved
Hide resolved
...LAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/OfflineDownloadEndEvent.java
Outdated
Show resolved
Hide resolved
...LAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/OfflineDownloadEndEvent.java
Show resolved
Hide resolved
...LAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/OfflineDownloadEndEvent.java
Outdated
Show resolved
Hide resolved
...LAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/OfflineDownloadEndEvent.java
Outdated
Show resolved
Hide resolved
...LAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/OfflineDownloadEndEvent.java
Outdated
Show resolved
Hide resolved
When this PR is merged, we can remove this empty implementation. |
e4e4c6b
to
61de9ad
Compare
Lets include those changes as well in this PR, any eta on merging that? |
hey @Chaoba i'd like to avoid making changes to the public signatures of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, , two minor nit comments
...oid/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/MapLoadEvent.java
Outdated
Show resolved
Hide resolved
@Chaoba the CI build is failing because we need to update the mapbox-events submodule in https://github.com/mapbox/mapbox-gl-native/tree/master/platform/android/vendor. LMK if you have any questions on how to do that. |
2917a24
to
2132b34
Compare
4.4.1 of telemetry was released, can we integrate that in this PR? https://github.com/mapbox/mapbox-events-android/releases/tag/telem-4.4.1-core-1.3.0 |
6589f01
to
2da702c
Compare
...id/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry/MapClickEvent.java
Show resolved
Hide resolved
9fe8ac5
to
37d17dc
Compare
|
||
schemaContainsFields(schema, fields); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we expand SchemaTest.java to support all events we have in https://github.com/mapbox/mapbox-gl-native/tree/37d17dc2b986c587f06499265f34b49b8bc78f6f/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/module/telemetry, not all are being tested atm.
I'm going to go ahead and merge. Remaining work ticketed in #14459. |
Remove map event creation code from the mapbox-events-android library and add it to map sdk.
Waiting for new version of telemetry sdk after this PR is merged.