Skip to content

Commit

Permalink
fix(android,v10): fix android v10 build issue - allowOverlapWithPuck (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mfazekas authored Dec 6, 2023
1 parent 284fefb commit c4660ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ fun ViewAnnotationOptions.Builder.height(value: Double): ViewAnnotationOptions.B
return this.height(value.toInt())
}

fun com.mapbox.maps.ViewAnnotationOptions.Builder.allowOverlapWithPuck(value: Boolean): ViewAnnotationOptions.Builder {
return this;
}

abstract class OnViewAnnotationUpdatedListener : _OnViewAnnotationUpdatedListener {
override fun onViewAnnotationPositionUpdated(
view: View,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ fun ViewAnnotationOptions.Builder.offsets(x: Double, y: Double) {
))
}


abstract class OnViewAnnotationUpdatedListener : _OnViewAnnotationUpdatedListener {

}
6 changes: 2 additions & 4 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ buildscript {
ext {
RNMapboxMapsImpl = "mapbox"

if (project.hasProperty('RNMBX11') && project.getProperty('RNMBX11').toBoolean()) {
RNMapboxMapsVersion = '11.0.0'
}

useCustomMapbox = false

if (System.getenv('CI_MAP_IMPL').equals('mapbox')) {
Expand All @@ -14,6 +10,8 @@ buildscript {
} else if (System.getenv('CI_MAP_IMPL').equals('mapbox11')) {
RNMapboxMapsVersion = '11.0.0'
RNMapboxMapsImpl = "mapbox"
} else if (project.hasProperty('RNMBX11') && project.getProperty('RNMBX11').toBoolean()) {
RNMapboxMapsVersion = '11.0.0'
}

// Mapbox deps
Expand Down

0 comments on commit c4660ef

Please sign in to comment.