-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: jnigen 0.13.0, misc other things (#184)
- build example app with java 21 - set targetCompatebility, sourceCompatebility to java 11 to remove warnings on build - migrate jni/jnigen to 0.13.0 (null safety) - add Helpers kotlin class to workaround jnigen generation issues - use android 15 (sdk 35) in ci
- Loading branch information
Showing
176 changed files
with
64,716 additions
and
44,669 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
android/src/main/kotlin/com/github/josxha/maplibre/Helpers.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.github.josxha.maplibre | ||
|
||
import androidx.annotation.Keep | ||
import org.maplibre.android.geometry.LatLngBounds | ||
import org.maplibre.android.offline.OfflineTilePyramidRegionDefinition | ||
|
||
@Keep | ||
object Helpers { | ||
/** | ||
* The genreation of OfflineTilePyramidRegionDefinition fails in | ||
* version 0.13.0 of jnigen. That's why this helper function gets used. | ||
*/ | ||
fun createOfflineTilePyramidRegionDefinition( | ||
styleURL: String?, | ||
bounds: LatLngBounds, | ||
minZoom: Double, | ||
maxZoom: Double, | ||
pixelRatio: Float, | ||
): OfflineTilePyramidRegionDefinition = | ||
OfflineTilePyramidRegionDefinition( | ||
styleURL, | ||
bounds, | ||
minZoom, | ||
maxZoom, | ||
pixelRatio, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
configurations.maybeCreate("default") | ||
// https://repo1.maven.org/maven2/org/maplibre/gl/android-sdk/11.7.0/android-sdk-11.7.0.aar | ||
artifacts.add("default", file('android-sdk-11.7.0.aar')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.