Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global ubo bind custom layer #14

Closed
wants to merge 55 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
23bc2cc
Free up disk space in android-build-cpp-test (#3064)
louwers Dec 3, 2024
5a7e740
[pre-commit.ci] pre-commit autoupdate (#3063)
pre-commit-ci[bot] Dec 3, 2024
c548212
Add latency to surface updates (#3056)
adrian-cojocaru Dec 3, 2024
5c8dd71
Use CMake 3.24.0+ for Android (#3065)
louwers Dec 3, 2024
61d385b
fix: Disable accessibility on hidden compass button (#3068)
ocarrascoe Dec 4, 2024
112edb6
Fix crash on unsupported attribute type conversion (#3066)
TimSylvester Dec 4, 2024
1b87543
Fix link to getting started guide (#3071)
westnordost Dec 9, 2024
2f13366
Use MapLibre Android as attribution string across languages (#3080)
louwers Dec 11, 2024
780b736
Prepare Android release workflow for Vulkan release (#3081)
louwers Dec 11, 2024
66e0037
Prepare for official MapLibre Android + Vulkan release (#3086)
louwers Dec 11, 2024
72d2c70
Fix issue in android-release.yml (#3087)
louwers Dec 11, 2024
12f596c
Batch up scheduling of deferred deletions (#3030)
TimSylvester Dec 13, 2024
b44b644
Remove `Pass3D` (#3077)
TimSylvester Dec 13, 2024
fa27705
Add bold support for CJK characters (#3069)
wangyingfang Dec 16, 2024
2771d4a
Release MapLibre iOS 6.9.0 (#3094)
louwers Dec 16, 2024
d60857e
Bump the github-actions group across 1 directory with 2 updates (#3093)
dependabot[bot] Dec 16, 2024
a843410
Specify Vulkan version needed in AndroidManifest.xml (#3095)
louwers Dec 16, 2024
c94864f
Prepare MapLibre Android 11.7.1 release (#3097)
louwers Dec 18, 2024
b7bf486
chore(deps): update dependency gradle to v8.12 (#3102)
renovate[bot] Dec 20, 2024
8023e6d
Add optional map mode argument to render (#3109)
kkirov Dec 30, 2024
525a313
Fix icon label isn't centered with the icon for CJK/local glyphy on i…
wangyingfang Dec 30, 2024
ccd80c5
Fix broken .geojson url (#3111)
justinclift Jan 2, 2025
0efd06c
Fix readme typo (#3113)
sargunv Jan 3, 2025
660f78c
Use bazel_dep for libuv (#3114)
louwers Jan 4, 2025
c7e6b0c
Consolidate developer documentation in mdBook docs (#3115)
louwers Jan 6, 2025
cf9f41c
Add Initial PMTiles support (#2882)
tdcosta100 Jan 7, 2025
f582327
UBO consolidation (#3089)
alexcristici Jan 8, 2025
62b92e2
Allow constraining camera to maximum bounds (#2475)
christian-boks Jan 9, 2025
aa844c1
Release MapLibre iOS 6.10.0 (#3127)
louwers Jan 9, 2025
f700a41
Release MapLibre iOS 6.10.0 (#3130)
louwers Jan 9, 2025
c1f76cf
Fix in-flight frame update Vulkan (#3122)
adrian-cojocaru Jan 9, 2025
a27fbba
Prepare MapLibre Android 11.8.0 release (#3129)
louwers Jan 9, 2025
57f42d9
Update Android changelog (#3134)
louwers Jan 9, 2025
9f02e29
Replace macro with run-time string concatenation (#3124)
alexcristici Jan 10, 2025
20f1a03
Add benchmark and test for color parser (#3139)
louwers Jan 13, 2025
79d625b
[qt] Drop support for Qt5 and update to Qt 6.8.1 (#3138)
ntadej Jan 14, 2025
527e70b
Allow compiling with Rust code (#3137)
louwers Jan 16, 2025
42490d5
Add timeout-minutes to windows-ci workflow (#3149)
louwers Jan 16, 2025
0dea8ba
Bump Ubuntu docker base 22.04 -> 24.04 (#3150)
nyurik Jan 17, 2025
140586b
Fix broken links in node readme (#3147)
kudlav Jan 21, 2025
0a88a0f
Put git configuration core.longpaths=true in Windows documentation (#…
tdcosta100 Jan 21, 2025
5b45d70
Update vcpkg to 2025.01.13 (#3158)
tdcosta100 Jan 21, 2025
6c88f72
Fix TextureMode crash (#3144)
adrian-cojocaru Jan 21, 2025
922d897
Add some documentation on Android benchmark (#3133)
louwers Jan 21, 2025
d960b11
Fix scheduler test failure (#3145)
TimSylvester Jan 21, 2025
4ae61fb
Use timestamps for image descriptor updates (#3152)
adrian-cojocaru Jan 21, 2025
b9b511e
Add NSString initializer MLNVectorTileSource (#3163)
louwers Jan 21, 2025
10f5c90
Fix DocC GitHub Pages Deployment (#3164)
louwers Jan 22, 2025
a69c5dc
Support defining a custom style layer from iOS Swift (#3154)
christian-boks Jan 22, 2025
ec4d6e6
Add documentation custom style layers (#3165)
louwers Jan 22, 2025
6f5b72f
Deploy DocC docs from Ubuntu workflow (#3170)
louwers Jan 22, 2025
c7b63cd
Add more detail documentation Android test app, one minor typo. (#3173)
SomeoneElseOSM Jan 24, 2025
c79b6dc
Add end-of-file-fixer pre-commit hook (#3176)
louwers Jan 24, 2025
76fd411
bind global uniform buffers at the end of the custom layer tweaker
yousifd Jan 23, 2025
5daf870
convert twaker execute paint parameters to mutable reference
yousifd Jan 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .bazelignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
bazel-bin
bazel-out
bazel-testlogs
node_modules
node_modules
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ common --incompatible_disallow_empty_glob

coverage --experimental_ui_max_stdouterr_bytes=10485760

common:macos --linkopt=-L/opt/homebrew/lib
common:macos --linkopt=-L/opt/homebrew/lib
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.3.1
8.0.0
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ contact_links:
- name: "💬 Chat with us on Slack"
url: https://slack.openstreetmap.us/
about: "Join #maplibre-native on the Open Street Map Slack"

Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ runs:
if-no-files-found: error
path: |
./render-test/android/RenderTestsApp-${{ inputs.flavor }}.apk
./render-test/android/RenderTests-${{ inputs.flavor }}.apk
./render-test/android/RenderTests-${{ inputs.flavor }}.apk
2 changes: 1 addition & 1 deletion .github/actions/get-pr-number/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ runs:

- id: cat
run: echo pr-number="$(cat ./pr_number)" >> $GITHUB_OUTPUT
shell: bash
shell: bash
5 changes: 0 additions & 5 deletions .github/actions/qt5-build/Dockerfile

This file was deleted.

6 changes: 0 additions & 6 deletions .github/actions/qt5-build/action.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/actions/qt5-build/entrypoint.sh

This file was deleted.

2 changes: 1 addition & 1 deletion .github/actions/save-pr-number/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ runs:
uses: actions/upload-artifact@v3
with:
name: pr-number
path: ./pr_number
path: ./pr_number
2 changes: 1 addition & 1 deletion .github/changed-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ android:
- 'test/**'
- 'vendor/**'
- '.gitmodules'
- '!**/*.md'
- '!**/*.md'
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"enabledManagers": ["gradle-wrapper", "bazel"]
}
}
12 changes: 12 additions & 0 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,18 @@ jobs:
working-directory: test/android

steps:
- name: Free Disk Space (Ubuntu)
if: startsWith(runner.name, 'GitHub Actions')
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: false
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: false

- uses: actions/checkout@v4
with:
submodules: recursive
Expand Down
80 changes: 34 additions & 46 deletions .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,10 @@ name: android-release

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

jobs:
build:
runs-on: ubuntu-24.04
runs-on: MapLibre_Native_Ubuntu_24_04_x84_16_core
defaults:
run:
working-directory: platform/android
Expand All @@ -28,17 +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
with:
distribution: "temurin"
Expand All @@ -65,6 +45,7 @@ jobs:
- name: Update version name
run: |
RELEASE_VERSION="$( git describe --tags --match=android-v*.*.* --abbrev=0 | sed 's/^android-v//' )"
echo version="$RELEASE_VERSION" >> "$GITHUB_ENV"
echo "Latest version from tag: $RELEASE_VERSION"
if [ -n "$RELEASE_VERSION" ]; then
sed -i -e "s/^VERSION_NAME=.*/VERSION_NAME=${RELEASE_VERSION}/" MapLibreAndroid/gradle.properties
Expand All @@ -74,20 +55,9 @@ jobs:
shell: bash

- name: Build package
run: make apackage
env:
RENDERER: ${{ env.backend_lowercase }}

- name: Build release Test App
run: |
MAPLIBRE_DEVELOPER_CONFIG_XML='${{ secrets.MAPLIBRE_DEVELOPER_CONFIG_XML }}'
if [ -n "${MAPLIBRE_DEVELOPER_CONFIG_XML}" ]; then
echo "${MAPLIBRE_DEVELOPER_CONFIG_XML}" > MapLibreAndroidTestApp/src/main/res/values/developer-config.xml
make android
else
echo "No secrets.MAPLIBRE_DEVELOPER_CONFIG_XML variable set, skipping apk build..."
fi
shell: bash
RENDERER=vulkan make apackage
RENDERER=drawable make apackage

# create github release
- name: Prepare release
Expand All @@ -99,15 +69,15 @@ jobs:
echo version_tag="$( git describe --tags --match=android-v*.*.* --abbrev=0 )" >> "$GITHUB_OUTPUT"
shell: bash

- name: Check if version is valid semver
- name: Check if version is pre-release
id: check_version
run: |
version_tag="${{ steps.prepare_release.outputs.version_tag }}"
if [[ $version_tag =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Valid semver: $version_tag"
version="${{ env.version }}"
if [[ $version =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Valid semver: $version"
echo "prerelease=false" >> "$GITHUB_ENV"
else
echo "Invalid semver: $version_tag"
echo "Invalid semver: $version"
echo "prerelease=true" >> "$GITHUB_ENV"
fi

Expand All @@ -123,25 +93,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 +153,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 }}
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages-android-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: ./gradlew dokkaGenerate

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.6.9
uses: JamesIves/github-pages-deploy-action@v4.7.2
with:
branch: gh-pages
folder: platform/android/MapLibreAndroid/build/dokka/html
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages-android-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: make mkdocs-build

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.6.9
uses: JamesIves/github-pages-deploy-action@v4.7.2
with:
branch: gh-pages
folder: platform/android/site
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages-cpp-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: doxygen

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.6.9
uses: JamesIves/github-pages-deploy-action@v4.7.2
with:
branch: gh-pages
folder: docs/doxygen/html
Expand Down
74 changes: 74 additions & 0 deletions .github/workflows/gh-pages-docc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: gh-pages-docc

permissions:
id-token: write
pages: write
contents: write

on:
workflow_dispatch:
workflow_run:
workflows:
- ios-ci
types:
- completed

jobs:
gh-pages-docc-build:
if: ${{ github.ref_name == 'main' }}
name: Build DocC Docs
runs-on: macos-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-west-2
role-to-assume: ${{ vars.OIDC_AWS_ROLE_TO_ASSUME }}
role-session-name: ${{ github.run_id }}

- name: Build DocC documentation
working-directory: .
run: |
HOSTING_BASE_PATH="maplibre-native/ios/latest" platform/ios/scripts/docc.sh

# workaround since colons in filenames are not allowed in artifacts
# https://github.com/actions/upload-artifact/issues/333
- name: Create ZIP archive
run: |
cd build
zip -r docs.zip docs/

- uses: actions/upload-artifact@v4
with:
name: docc-docs
path: build/docs.zip

gh-pages-docc-deploy:
needs: gh-pages-docc-build
name: Deploy DocC Docs
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- name: Download DocC docs artifacts
uses: actions/download-artifact@v4
with:
name: docc-docs
path: build

- name: Unzip documentation
run: |
cd build
unzip docs.zip
rm docs.zip

- name: Deploy DocC documentation (main) 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build/docs
target-folder: ios/latest/
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages-mdbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
name: book
path: artifacts/book
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.6.9
uses: JamesIves/github-pages-deploy-action@v4.7.2
with:
branch: gh-pages
folder: artifacts/book
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/ios-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
- name: Build CppUnitTests .ipa and .xctest for AWS Device Farm
run: |
set -e
bazel run --//:renderer=metal //platform/ios:xcodeproj
bazel run //platform/ios:xcodeproj --@rules_xcodeproj//xcodeproj:extra_common_flags="--//:renderer=metal"
build_dir="$(mktemp -d)"
xcodebuild build-for-testing -scheme CppUnitTests -project MapLibre.xcodeproj -derivedDataPath "$build_dir"
ios_cpp_test_app_dir="$(dirname "$(find "$build_dir" -name CppUnitTestsApp.app)")"
Expand Down Expand Up @@ -199,15 +199,6 @@ jobs:
run: |
HOSTING_BASE_PATH="maplibre-native/ios/latest" platform/ios/scripts/docc.sh

- name: Deploy DocC documentation (main) 🚀
if: github.ref == 'refs/heads/main'
uses: JamesIves/[email protected]
continue-on-error: true
with:
branch: gh-pages
folder: build/docs
target-folder: ios/latest/

ios-release:
runs-on: macos-14
needs: ios-build
Expand Down
Loading