Skip to content

Commit dc34832

Browse files
tobrunzugaldia
authored andcommitted
Firebase Test Lab CI integration for app module (#381)
* reformat yaml * make project compile again * update bitrise.yml with Firebase Test Lab integration * fixup project name * fixup path to apk * readd initialize method to fix CI issue * readd initialize method to fix CI issue with non-null value * download access token before compiling the apk * fix npe
1 parent 19450d5 commit dc34832

3 files changed

Lines changed: 201 additions & 206 deletions

File tree

mapbox/app/src/main/java/com/mapbox/services/android/testapp/distance/DistanceActivity.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public void onFailure(Call<DistanceResponse> call, Throwable throwable) {
176176
private void addMarkers() {
177177
for (int i = 0; i < restaurants.size(); i++) {
178178
CircleLayer circleLayer = new CircleLayer(
179-
restaurants.get(i).getStringProperty("name") + "-circle-layer",
179+
restaurants.get(i).getStringProperty("name") + "-circle-layer",
180180
restaurants.get(i).getStringProperty("name") + "-source"
181181
).withProperties(
182182
circleColor(Color.parseColor("#e55e5e")),
@@ -207,12 +207,11 @@ private void addMarkers() {
207207
private void updateLayers() {
208208

209209
for (int i = 0; i < restaurants.size(); i++) {
210-
211-
if (mapboxMap.getLayer(restaurants.get(i).getStringProperty("name" + "-layer")) != null) {
210+
if (restaurants.get(i).hasProperty("name" + "-layer")
211+
&& mapboxMap.getLayer(restaurants.get(i).getStringProperty("name" + "-layer")) != null) {
212212
mapboxMap.removeLayer(restaurants.get(i).getStringProperty("name") + "-layer");
213213
}
214214

215-
216215
SymbolLayer marker = new SymbolLayer(
217216
restaurants.get(i).getStringProperty("name") + "-layer",
218217
restaurants.get(i).getStringProperty("name") + "-source"

mapbox/libandroid-telemetry/src/main/java/com/mapbox/services/android/telemetry/MapboxTelemetry.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,14 @@ public void initialize(@NonNull Context context, @NonNull String accessToken,
103103
initialize(context, accessToken, userAgent);
104104
}
105105

106+
/*
107+
* Temporary: re-added only for CI purposes
108+
*/
109+
public void initialize(@NonNull Context context, @NonNull String accessToken,
110+
@NonNull LocationEngine locationEngine) {
111+
initialize(context, accessToken, "userAgent", locationEngine);
112+
}
113+
106114
/**
107115
* Initialize MapboxTelemetry.
108116
*

0 commit comments

Comments
 (0)