Replace mapbox watermark on the maps with maplibre #643 and replace mapbox resource names (#647)

Co-authored-by: Birk Skyum <74932975+birkskyum@users.noreply.github.com>
This commit is contained in:
Bart Louwers
2023-01-04 11:32:11 +01:00
committed by GitHub
parent da9c7ae2a5
commit d51759b137
166 changed files with 799 additions and 793 deletions

View File

@@ -53,7 +53,7 @@ public class IconTest extends EspressoTest {
@UiThreadTest
public void testAddDifferentIconMarker() {
validateTestSetup();
Icon icon = IconFactory.getInstance(rule.getActivity()).fromResource(R.drawable.mapbox_logo_icon);
Icon icon = IconFactory.getInstance(rule.getActivity()).fromResource(R.drawable.maplibre_logo_icon);
mapboxMap.addMarker(new MarkerOptions().icon(icon).position(new LatLng()));
mapboxMap.addMarker(new MarkerOptions().position(new LatLng(1, 1)));
assertEquals(iconMap.size(), 2);
@@ -65,7 +65,7 @@ public class IconTest extends EspressoTest {
@UiThreadTest
public void testAddRemoveIconMarker() {
validateTestSetup();
Icon icon = IconFactory.getInstance(rule.getActivity()).fromResource(R.drawable.mapbox_logo_icon);
Icon icon = IconFactory.getInstance(rule.getActivity()).fromResource(R.drawable.maplibre_logo_icon);
Marker marker = mapboxMap.addMarker(new MarkerOptions().icon(icon).position(new LatLng()));
mapboxMap.addMarker(new MarkerOptions().position(new LatLng(1, 1)));
assertEquals(iconMap.size(), 2);
@@ -104,11 +104,11 @@ public class IconTest extends EspressoTest {
// add 4 unique icon markers
mapboxMap.addMarker(new MarkerOptions()
.icon(iconFactory.fromResource(R.drawable.mapbox_logo_icon))
.icon(iconFactory.fromResource(R.drawable.maplibre_logo_icon))
.position(new LatLng(3, 1))
);
mapboxMap.addMarker(new MarkerOptions()
.icon(iconFactory.fromResource(R.drawable.mapbox_compass_icon))
.icon(iconFactory.fromResource(R.drawable.maplibre_compass_icon))
.position(new LatLng(4, 1))
);
mapboxMap.addMarker(new MarkerOptions()

View File

@@ -74,7 +74,7 @@ public class AttributionTest extends EspressoTest {
// click on View to open dialog
onView(withTagValue(is("attrView"))).perform(click());
onView(withText(R.string.mapbox_attributionsDialogTitle)).check(matches(isDisplayed()));
onView(withText(R.string.maplibre_attributionsDialogTitle)).check(matches(isDisplayed()));
// test for trigger url intent
Matcher<Intent> expectedIntent = allOf(hasAction(Intent.ACTION_VIEW), hasData(Uri.parse(urlSpans[0].getURL())));
@@ -95,7 +95,7 @@ public class AttributionTest extends EspressoTest {
// click on View to open dialog
onView(withTagValue(is("attrView"))).perform(click());
onView(withText(R.string.mapbox_attributionsDialogTitle)).check(matches(isDisplayed()));
onView(withText(R.string.maplibre_attributionsDialogTitle)).check(matches(isDisplayed()));
// test for trigger url intent
Matcher<Intent> expectedIntent = allOf(hasAction(Intent.ACTION_VIEW), hasData(Uri.parse(urlSpans[1].getURL())));
@@ -116,7 +116,7 @@ public class AttributionTest extends EspressoTest {
// click on View to open dialog
onView(withTagValue(is("attrView"))).perform(click());
onView(withText(R.string.mapbox_attributionsDialogTitle)).check(matches(isDisplayed()));
onView(withText(R.string.maplibre_attributionsDialogTitle)).check(matches(isDisplayed()));
// test for trigger url intent
Matcher<Intent> expectedIntent = hasAction(Intent.ACTION_VIEW);