Skip to content

Commit 332bab4

Browse files
authored
Fix android CI (#4122)
* Fix android CI * Update version to 2025.7.0 * Fix apk size
1 parent 2072663 commit 332bab4

6 files changed

Lines changed: 12 additions & 17 deletions

File tree

.github/workflows/android.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -193,16 +193,12 @@ jobs:
193193
194194
- name: Configure app
195195
env:
196-
ANDROID_NDK_ROOT: ${{ steps.setup-ndk.outputs.ndk-path }}
197-
ANDROID_NDK_HOST: darwin-x86_64
198-
196+
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
199197
run: |
200198
mkdir -p ${{ github.workspace }}/build-mm
201199
cd ${{ github.workspace }}/build-mm
202200
203201
export PATH=${{ env.VCPKG_ROOT }}:$PATH
204-
export ANDROID_NDK_HOME=${{ steps.setup-ndk.outputs.ndk-path }}
205-
export ANDROID_NDK_ROOT=${{ steps.setup-ndk.outputs.ndk-path }}
206202
export ANDROID_ABI=${{ matrix.ANDROID_ABI }}
207203
208204
cmake \
@@ -226,8 +222,7 @@ jobs:
226222
227223
- name: Build APK
228224
env:
229-
ANDROID_NDK_ROOT: ${{ steps.setup-ndk.outputs.ndk-path }}
230-
ANDROID_NDK_HOST: darwin-x86_64
225+
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
231226
run: |
232227
cd ${{ github.workspace }}/build-mm
233228
ninja apk
@@ -250,11 +245,9 @@ jobs:
250245
- name: Build AAB
251246
if: ${{ github.ref_name == 'master' || startsWith( github.ref_name, 'dev/' ) || github.ref_type == 'tag' }}
252247
env:
253-
ANDROID_NDK_ROOT: ${{ steps.setup-ndk.outputs.ndk-path }}
254-
ANDROID_NDK_HOST: darwin-x86_64
255-
QT_BASE: ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}
248+
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
256249
run: |
257-
cd ${{ github.workspace }}/build-Input
250+
cd ${{ github.workspace }}/build-mm
258251
ninja aab
259252
260253
echo "AAB:"
@@ -272,4 +265,4 @@ jobs:
272265
uses: actions/upload-artifact@v4
273266
with:
274267
path: ${{ github.workspace }}/merginmaps-${{ env.INPUT_VERSION_CODE }}.aab
275-
name: Mergin Maps ${{ env.INPUT_VERSION_CODE }} AAB
268+
name: Mergin Maps ${{ env.INPUT_VERSION_CODE }} AAB [${{ matrix.ANDROID_ABI }}]

.zenodo.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"description": "<p>Mergin Maps mobile app is a QGIS powered app for Android and iOS devices.</p>",
33
"license": "GPLv3",
44
"title": "Mergin Maps mobile app",
5-
"version": "2025.6.0",
5+
"version": "2025.7.0",
66
"upload_type": "software",
77
"publication_date": "2022-02-24",
88
"creators": [
@@ -39,7 +39,7 @@
3939
"related_identifiers": [
4040
{
4141
"scheme": "url",
42-
"identifier": "https://github.com/MerginMaps/mobile/tree/2025.6.0",
42+
"identifier": "https://github.com/MerginMaps/mobile/tree/2025.7.0",
4343
"relation": "isSupplementTo"
4444
},
4545
{

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cff-version: 2025.6.0
1+
cff-version: 2025.7.0
22
message: "If you use this software, please cite it as below."
33
authors:
44
- family-names: "Martin"

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.22)
66

77
# Note: To update version use script/update_all_versions.bash
88
set(MM_VERSION_MAJOR "2025")
9-
set(MM_VERSION_MINOR "6")
9+
set(MM_VERSION_MINOR "7")
1010
set(MM_VERSION_PATCH "0")
1111

1212
if (VCPKG_TARGET_TRIPLET MATCHES ".*ios.*")

cmake_templates/build.gradle.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ android {
4646
compileSdkVersion androidCompileSdkVersion
4747
buildToolsVersion androidBuildToolsVersion
4848
ndkVersion androidNdkVersion
49+
// don't get rid of this line as it inflates the final bundle size 5x
50+
ndkPath '@INPUT_ANDROID_NDK_PATH@'
4951

5052
packagingOptions.jniLibs.useLegacyPackaging true
5153

vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"name": "merginmaps-mobile-app",
1111
"description": "Collect. Share. Publish.",
12-
"version": "2025.6.0",
12+
"version": "2025.7.0",
1313
"homepage": "https://github.com/merginmaps/mobile",
1414
"dependencies": [
1515
{

0 commit comments

Comments
 (0)