Make debug releases for Android (#3444)

This commit is contained in:
Bart Louwers
2025-05-02 22:52:30 +02:00
committed by GitHub
parent dde3fdd398
commit 3a3e90879c
5 changed files with 35 additions and 3 deletions

View File

@@ -2,6 +2,12 @@
## main
## 11.8.7
We now make releases with debug builds to make it easier to report issues with relevant logs.
They are available with a `-debug` postfix on Maven Central, for example `org.maplibre.gl:android-sdk-vulkan-debug`.
## 11.8.6
### ✨ Features and improvements

View File

@@ -231,7 +231,7 @@ apackage:
make android-lib-arm-v7 && make android-lib-arm-v8 && make android-lib-x86 && make android-lib-x86-64
$(MLN_ANDROID_GRADLE) -Pmaplibre.abis=all assemble$(RENDERER)$(BUILDTYPE)
mkdir -p build
tar -czvf build/$(DEBUG_TAR_FILE_NAME) -C MapLibreAndroid/build/intermediates/library_jni/$(RENDERER)Release/*JniLibsProjectOnly/jni .
tar -czvf build/$(DEBUG_TAR_FILE_NAME) -C MapLibreAndroid/build/intermediates/library_jni/$(RENDERER)$(BUILDTYPE)/*JniLibsProjectOnly/jni .
# Build test app instrumentation tests apk and test app apk for all abi's
.PHONY: android-ui-test

View File

@@ -1,4 +1,4 @@
VERSION_NAME=11.8.6
VERSION_NAME=11.8.7
# Only build native dependencies for the current ABI
# See https://code.google.com/p/android/issues/detail?id=221098#c20

View File

@@ -49,6 +49,7 @@ fun configureMavenPublication(
publicationName: String,
artifactIdPostfix: String,
descriptionPostfix: String,
buildType: String = "Release"
) {
publishing {
publications {
@@ -57,7 +58,7 @@ fun configureMavenPublication(
artifactId = "${project.extra["mapLibreArtifactId"]}$artifactIdPostfix"
version = project.version.toString()
from(components["${renderer}Release"])
from(components["${renderer}${buildType}"])
pom {
name.set("${project.extra["mapLibreArtifactTitle"]}$descriptionPostfix")
@@ -98,11 +99,14 @@ tasks {
afterEvaluate {
configureMavenPublication("drawable", "opengl", "", "")
configureMavenPublication("drawable", "opengldebug", "-debug", " (Debug)", "Debug")
configureMavenPublication("vulkan", "vulkan", "-vulkan", "(Vulkan)")
configureMavenPublication("vulkan", "vulkandebug", "-vulkan-debug", "(Vulkan, Debug)", "Debug")
// Right now this is the same as the first, but in the future we might release a major version
// which defaults to Vulkan (or has support for multiple backends). We will keep using only
// OpenGL ES with this artifact ID if that happens.
configureMavenPublication("drawable", "opengl2", "-opengl", " (OpenGL ES)")
configureMavenPublication("drawable", "opengl2debug", "-opengl-debug", " (OpenGL ES, Debug)", "Debug")
}