Skip to content

Commit

Permalink
Merge branch 'maplibre:main' into support_bold_for_cjk
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyingfang authored Dec 16, 2024
2 parents cc4c4b1 + b44b644 commit 2039784
Show file tree
Hide file tree
Showing 34 changed files with 179 additions and 105 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@ name: android-release

on:
workflow_dispatch:
inputs:
renderer:
description: "Select renderering backend"
required: true
default: "OpenGL"
type: choice
options:
- OpenGL
- Vulkan

jobs:
build:
Expand All @@ -28,15 +19,6 @@ jobs:
submodules: recursive
fetch-depth: 0

- name: Map renderer input
id: backend_lowercase
run: |
if [ "${{ github.event.inputs.renderer }}" = "OpenGL" ]; then
echo "backend_lowercase=drawable" >> "$GITHUB_ENV"
elif [ "${{ github.event.inputs.renderer }}" = "Vulkan" ]; then
echo "backend_lowercase=vulkan" >> "$GITHUB_ENV"
fi
- run: echo "cmake.dir=$(dirname "$(dirname "$(command -v cmake)")")" >> local.properties

- uses: actions/setup-java@v4
Expand Down Expand Up @@ -74,9 +56,9 @@ jobs:
shell: bash

- name: Build package
run: make apackage
env:
RENDERER: ${{ env.backend_lowercase }}
run: |
RENDERER=vulkan make apackage
RENDERER=drawable make apackage
- name: Build release Test App
run: |
Expand Down Expand Up @@ -123,25 +105,44 @@ jobs:
draft: false
prerelease: ${{ env.prerelease }}

- name: Upload aar
id: upload-release-asset
- name: Upload aar (OpenGL)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: platform/android/MapLibreAndroid/build/outputs/aar/MapLibreAndroid-${{ env.backend_lowercase }}-release.aar
asset_path: platform/android/MapLibreAndroid/build/outputs/aar/MapLibreAndroid-drawable-release.aar
asset_name: MapLibreAndroid-release.aar
asset_content_type: application/zip

- name: Upload debug symbols
- name: Upload aar (Vulkan)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: platform/android/MapLibreAndroid/build/outputs/aar/MapLibreAndroid-vulkan-release.aar
asset_name: MapLibreAndroid-release-vulkan.aar
asset_content_type: application/zip

- name: Upload debug symbols (OpenGL)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: platform/android/build/debug-symbols-opengl.tar.gz
asset_name: debug-symbols-maplibre-android-opengl-${{ steps.prepare_release.outputs.version_tag }}.tar.gz
asset_content_type: application/gzip

- name: Upload debug symbols (Vulkan)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: platform/android/build/debug-symbols.tar.gz
asset_name: debug-symbols.tar.gz
asset_path: platform/android/build/debug-symbols-vulkan.tar.gz
asset_name: debug-symbols-maplibre-android-vulkan-${{ steps.prepare_release.outputs.version_tag }}.tar.gz
asset_content_type: application/gzip

- name: Clean release
Expand All @@ -164,4 +165,3 @@ jobs:
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
RENDERER: ${{ env.backend_lowercase }}
21 changes: 20 additions & 1 deletion platform/android/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
# Changelog MapLibre Native for Android

## main
## 11.7.0

This release marks the official release of MapLibre Android with Vulkan support. [Vulkan](https://www.vulkan.org) is a modern graphics API which brings advantages such as improved performance, improved observability and better stability. Specifically, starting with this version we are releasing multiple versions of MapLibre Android:

- `org.maplibre.gl:android-sdk` (still OpenGL ES for now, might default to another rendering backend or might choose depending on device support in a future major release).
- `org.maplibre.gl:android-sdk-opengl` (OpenGL ES).
- `org.maplibre.gl:android-sdk-vulkan` (Vulkan).

Stability has proven to be excellent, but there are a few [known issues with Vulkan](https://github.com/maplibre/maplibre-native/issues?q=is%3Aissue%20state%3Aopen%20label%3AVulkan%20type%3ABug) that will be addressed in a future update.

Currently it is not possible to choose a backend at runtime. If you care about supporting devices that only support OpenGL ES and you want to use Vulkan, you will need to produce and ship [multiple APKs](https://developer.android.com/google/play/publishing/multiple-apks). Please see [this issue](https://github.com/maplibre/maplibre-native/issues/3079) if you are interested in choosing a rendering backend during initialization.

Thanks to everyone who helped test the pre-releases!

### ✨ Features and improvements

- Fix the issue that the empty polyline cannot be updated ([#3046](https://github.com/maplibre/maplibre-native/pull/3046)).
- feat: add `getZoom` and `setZoom` function support for Android Auto ([#3037](https://github.com/maplibre/maplibre-native/pull/3037)).
- Use MapLibre Android as attribution string across languages ([#3080](https://github.com/maplibre/maplibre-native/pull/3080)).
- Use CMake 3.24.0+ for Android ([#3065](https://github.com/maplibre/maplibre-native/pull/3065)).

### 🐞 Bug fixes

- Fix crash on unsupported attribute type conversion ([#3066](https://github.com/maplibre/maplibre-native/pull/3066)).

## 11.6.1

### 🐞 Bug fixes
Expand Down
6 changes: 4 additions & 2 deletions platform/android/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,16 @@ run-android-unit-test:
run-android-unit-test-%:
$(MLN_ANDROID_GRADLE) -Pmaplibre.abis=none :MapLibreAndroid:testLegacyDebugUnitTest --info --tests "$*"

DEBUG_TAR_FILE_NAME := $(if $(findstring drawable,$(RENDERER)),debug-symbols-opengl.tar.gz,debug-symbols-$(RENDERER).tar.gz)

# Builds a release package and .tar.gz with debug symbols of the Android SDK
.PHONY: apackage
apackage:
echo "Building for $(RENDERER)"
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-symbols.tar.gz -C MapLibreAndroid/build/intermediates/library_jni/*/*JniLibsProjectOnly/jni .
tar -czvf build/$(DEBUG_TAR_FILE_NAME) -C MapLibreAndroid/build/intermediates/library_jni/$(RENDERER)Release/*JniLibsProjectOnly/jni .

# Build test app instrumentation tests apk and test app apk for all abi's
.PHONY: android-ui-test
Expand All @@ -245,7 +247,7 @@ run-android-test-app-center:
# Uploads the compiled Android SDK to Maven Central Staging
.PHONY: run-android-publish
run-android-publish:
$(MLN_ANDROID_GRADLE_SINGLE_JOB)-Pmaplibre.abis=all :MapLibreAndroid:publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository
$(MLN_ANDROID_GRADLE_SINGLE_JOB)-Pmaplibre.abis=all :MapLibreAndroid:publishAllPublicationsToSonatypeRepository closeAndReleaseSonatypeStagingRepository

# Dump system graphics information for the test app
.PHONY: android-gfxinfo
Expand Down
2 changes: 1 addition & 1 deletion platform/android/MapLibreAndroid/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=11.6.1
VERSION_NAME=11.7.0

# Only build native dependencies for the current ABI
# See https://code.google.com/p/android/issues/detail?id=221098#c20
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<string name="maplibre_attributionsIconContentDescription">Иконка функции. Активирай, за да покажеш диалог функции.</string>
<string name="maplibre_myLocationViewContentDescription">Изглед локация. Това показва местоположението ти на картата.</string>
<string name="maplibre_mapActionDescription">Показва карта създадена с MapLibre. Скролни с два пръста. Мащабирай с два пръста.</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Android SDK</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Android</string>
<string name="maplibre_offline_error_region_definition_invalid">Предоставените OfflineRegionDefinition не пасват в границите на света: %s</string>

</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<string name="maplibre_attributionsIconContentDescription">Icona d’atribució. Activa per mostrar el diàleg de l’atribució.</string>
<string name="maplibre_myLocationViewContentDescription">Vista de posició. Mostra la teva posició al mapa.</string>
<string name="maplibre_mapActionDescription">Mostrant un mapa creat amb MapLibre. Desplaça’t arrossegant amb dos dits. Fes zoom pessigant amb dos dits.</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Android SDK</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Android</string>
<string name="maplibre_offline_error_region_definition_invalid">La OfflineRegionDefinition proporcionada no encaixa amb els límits del món: %s</string>

</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<string name="maplibre_attributionsIconContentDescription">Atributy. Zobrazit nastavení atributů.</string>
<string name="maplibre_myLocationViewContentDescription">Zobrazení polohy. Zobrazit umístění na mapě.</string>
<string name="maplibre_mapActionDescription">Zobrazení mapy vytvořené s MapLibre. Posunout tažením dvěma prsty. Změnit velikost roztažením dvou prstů.</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Maps SDK pro Android</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Android</string>
<string name="maplibre_attributionErrorNoBrowser">Na zařízení není nainstalován webový prohlížeč, webovou stránku nelze zobrazit.</string>
<string name="maplibre_offline_error_region_definition_invalid">Pokud OfflineRegionDefinition neodpovídá hranicím: %s</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<string name="maplibre_attributionsIconContentDescription">Ícono de atribución. Actívalo para mostrar el diálogo de atribución.</string>
<string name="maplibre_myLocationViewContentDescription">Vista de ubicación. Muestra tu ubicación en el mapa.</string>
<string name="maplibre_mapActionDescription">Se está mostrando un mapa creado con MapLibre. Arrastra dos dedos para desplazarte o pellizca para acercar.</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Maps SDK para Android</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Android</string>
<string name="maplibre_attributionErrorNoBrowser">No puede abrir la página Web porque no hay un navegador Web en el dispositivo.</string>
<string name="maplibre_offline_error_region_definition_invalid">El parámetro OfflineRegionDefinition que se ingresó no coincide con los límites mundiales: %s</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<string name="maplibre_attributionsIconContentDescription">Icône d’attribution. Activer pour afficher le dialogue d’attribution.</string>
<string name="maplibre_myLocationViewContentDescription">Vue de géolocalisation. Ceci affiche votre localisation sur la carte.</string>
<string name="maplibre_mapActionDescription">Affichage d’une carte créée avec MapLibre. Faites la glisser en traînant deux doigts. Zoomez ou dézoomez en écartant ou rapprochant deux doigts.</string>
<string name="maplibre_attributionsDialogTitle">SDK MapLibre Maps pour Android</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Android</string>
<string name="maplibre_attributionErrorNoBrowser">Aucun navigateur web installé sur l’appareil, impossible d’ouvrir une page web.</string>
<string name="maplibre_offline_error_region_definition_invalid">Le cadre OfflineRegionDefinition pour définir la région de navigation ne tient pas dans les limites du monde : %s</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<string name="maplibre_attributionsIconContentDescription">Icona de atribución. Actívaa para amosar o diálogo de atribución.</string>
<string name="maplibre_myLocationViewContentDescription">Vista de ubicación. Amosa a túa ubicación no mapa.</string>
<string name="maplibre_mapActionDescription">Estase a amosar un mapa feito co MapLibre. Belisca dous dedos para desprazarte ou belisca para achegar.</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Maps SDK para o Android</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Android</string>
<string name="maplibre_attributionErrorNoBrowser">Non podes abrir a páxina web porque non hai un navegador web no dispositivo.</string>
<string name="maplibre_offline_error_region_definition_invalid">O parámetro OfflineRegionDefinition que se ingresou non coincide cos límites mundiais: %s</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<string name="maplibre_attributionsIconContentDescription">סמל שיוך. הפעל כדי להציג תיבת דו-שיח של שיוך.</string>
<string name="maplibre_myLocationViewContentDescription">סמן מיקום. מציג את המיקום הנוכחי שלך על המפה.</string>
<string name="maplibre_mapActionDescription">מציג מפה שנוצרה עם MapLibre. גלול באמצעות גרירה עם שתי אצבעות, זום באמצעות צביטה עם שתי אצבעות.</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Maps SDK for Android</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Android</string>
<string name="maplibre_attributionErrorNoBrowser">לא מותקן דפדפן אינטרנט במכשיר, לא ניתן לפתוח את דף האינטרנט.</string>
<string name="maplibre_offline_error_region_definition_invalid">בתנאי ש- OfflineRegionDefinition אינו מתאים לגבולות העולם: %s</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<resources>
<string name="maplibre_myLocationViewContentDescription">Hely nézet. Megmutatja, hol vagy a térképen.</string>
<string name="maplibre_mapActionDescription">Egy MapLibre-szal készült térkép megjelenítése. Húzd két ujjadat a görgetéshez. Csippentsd össze a nagyításhoz.</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Maps SDK Androidhoz</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Android</string>
<string name="maplibre_attributionErrorNoBrowser">Nincs webböngésző telepítve a készüléken, nem lehet megnyitni weboldalt.</string>
<string name="maplibre_offline_error_region_definition_invalid">A megadott OfflineRegionDefinition nem fér bele a világ kereteibe: %s</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<string name="maplibre_attributionsIconContentDescription">סמל שיוך. הפעל כדי להציג תיבת דו-שיח של שיוך.</string>
<string name="maplibre_myLocationViewContentDescription">סמן מיקום. מציג את המיקום הנוכחי שלך על המפה.</string>
<string name="maplibre_mapActionDescription">מציג מפה שנוצרה עם MapLibre. גלול באמצעות גרירה עם שתי אצבעות, זום באמצעות צביטה עם שתי אצבעות.</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Maps SDK for Android</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Android</string>
<string name="maplibre_attributionErrorNoBrowser">לא מותקן דפדפן אינטרנט במכשיר, לא ניתן לפתוח את דף האינטרנט.</string>
<string name="maplibre_offline_error_region_definition_invalid">בתנאי ש- OfflineRegionDefinition אינו מתאים לגבולות העולם: %s</string>
</resources>
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="maplibre_compassContentDescription">지도 나침반. 지도회전를 북쪽으로 재설정합니다.</string>
<string name="maplibre_compassContentDescription"> 지도 나침반. 지도회전을 북쪽으로 재설정합니다.</string>
<string name="maplibre_attributionsIconContentDescription">속성 정보. 속성 대화를 표시합니다.</string>
<string name="maplibre_myLocationViewContentDescription">로케이션 뷰. 지도에서 현재 위치를 보여줍니다.</string>
<string name="maplibre_mapActionDescription">맵박스로 생성된 지도 표시. 두 손가락으로 드래그하여 화면을 위 아래로 움직이세요. 두 손가락을 이용해 화면을 확대 축소 하세요.</string>
<string name="maplibre_attributionsDialogTitle">안드로이드를 위한 맵박스 맵 SDK</string>
<string name="maplibre_attributionErrorNoBrowser">웹 브라우저가 설치 되어 있지 않아, 웹 페이지를 열 수 없습니다.</string>
<string name="maplibre_mapActionDescription">MapLibre로 생성된 지도 표시. 두 손가락으로 드래그하여 화면을 위 아래로 움직이세요. 두 손가락을 이용해 화면을 확대 축소 하세요.</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Android</string>
<string name="maplibre_attributionErrorNoBrowser">웹 브라우저가 설치 되어 있지 않아서 웹 페이지를 열 수 없습니다.</string>
<string name="maplibre_offline_error_region_definition_invalid">제공된 오프라인지역정의가 월드바운즈에 적합하지 않습니다: %s</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<string name="maplibre_attributionsIconContentDescription">Įnašo ikona. Paspausk norėdamas pamatyti dialogą su detalėmis</string>
<string name="maplibre_myLocationViewContentDescription">Vartotojo vietos vaizdas. Nurodo tavo poziciją žemėlapyje</string>
<string name="maplibre_mapActionDescription">Rodomas MapLibre kurtas žemėlapis. Naviguok tempdamas du pirštus. Valdyk žemėlapio pritraukimą suimdamas/atitolindamas du pirštus.</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Android SDK</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Android</string>
<string name="maplibre_offline_error_region_definition_invalid">Pasirinktas OfflineRegionDefinition netalpa į rėžius: %s</string>

</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<string name="maplibre_attributionsIconContentDescription">Attributie icoon. Activeer voor het tonen van het attributie dialoog. </string>
<string name="maplibre_myLocationViewContentDescription">Locatie Element. Dit toont jouw locatie op de map.</string>
<string name="maplibre_mapActionDescription">Toont een map gemaakt met MapLibre. Scroll door het slepen met twee vingers. Zoom door vingers te nijpen.</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Android SDK</string>
<string name="maplibre_attributionsDialogTitle">MapLibre Android</string>
<string name="maplibre_offline_error_region_definition_invalid">Aangeleverde OfflineRegionDefinition past niet in de wereld omtrek: %s</string>

</resources>
Loading

0 comments on commit 2039784

Please sign in to comment.