Add Android Vulkan backend (#2711)

Co-authored-by: Bart Louwers <bart.louwers@gmail.com>
This commit is contained in:
Adrian Cojocaru
2024-09-06 17:40:57 +03:00
committed by GitHub
parent 4b5d06d908
commit ea09bdf2b6
79 changed files with 2580 additions and 1400 deletions

View File

@@ -2,6 +2,7 @@ package org.maplibre.android.maps
import android.content.Context
import android.graphics.PointF
import android.view.View
import androidx.test.annotation.UiThreadTest
import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
import androidx.test.platform.app.InstrumentationRegistry
@@ -447,5 +448,9 @@ class NativeMapViewTest : AppCenter() {
override fun waitForEmpty() {
// no-op
}
override fun getView(): View? {
return null;
}
}
}

View File

@@ -1,5 +1,6 @@
package org.maplibre.android.testapp.maps
import android.view.SurfaceView
import android.view.TextureView
import android.view.ViewGroup
import androidx.test.annotation.UiThreadTest
@@ -8,7 +9,6 @@ import androidx.test.rule.ActivityTestRule
import org.maplibre.android.AppCenter
import org.maplibre.android.maps.MapView
import org.maplibre.android.maps.MapLibreMapOptions
import org.maplibre.android.maps.renderer.glsurfaceview.MapLibreGLSurfaceView
import org.maplibre.android.testapp.activity.FeatureOverviewActivity
import org.junit.Assert.assertNotNull
import org.junit.Assert.assertTrue
@@ -30,11 +30,11 @@ class RenderViewGetterTest : AppCenter() {
@Test
@UiThreadTest
fun testGLSurfaceView() {
fun testSurfaceView() {
rootView = rule.activity.findViewById(android.R.id.content)
mapView = MapView(rule.activity)
assertNotNull(mapView.renderView)
assertTrue(mapView.renderView is MapLibreGLSurfaceView)
assertTrue(mapView.renderView is SurfaceView)
}
@Test