Skip to content

Commit

Permalink
Merge branch 'master' into master_changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
iiLubos authored Nov 13, 2023
2 parents 898ddf5 + 7c27b43 commit 2fc28ca
Show file tree
Hide file tree
Showing 177 changed files with 6,271 additions and 8,357 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ concurrency:

jobs:
android_build:
if: ( github.repository == 'MerginMaps/input' ) && (!contains(github.event.head_commit.message, 'Translate '))
if: ( github.repository == 'MerginMaps/mobile' ) && (!contains(github.event.head_commit.message, 'Translate '))
runs-on: macos-12
env:
QT_VERSION: '6.5.2'
QT_VERSION: '6.5.2' # use scripts/update_qt_version.bash to change
NDK_VERSION: r25
NDK_VERSION_FULL: r25b
JDK_VERSION: 11
Expand All @@ -33,7 +33,7 @@ jobs:
INPUT_SDK_VERSION_ARM64: arm64-android-20230824-200
CCACHE_DIR: /Users/runner/work/ccache
GITHUB_TOKEN: ${{ secrets.INPUTAPP_BOT_GITHUB_TOKEN }}
CACHE_VERSION: 2
CACHE_VERSION: 0
QT_ANDROID_KEYSTORE_ALIAS: input
QT_ANDROID_KEYSTORE_KEY_PASS: ${{ secrets.INPUTKEYSTORE_STOREPASS }}
QT_ANDROID_KEYSTORE_STORE_PASS: ${{ secrets.INPUTKEYSTORE_STOREPASS }}
Expand Down Expand Up @@ -161,11 +161,11 @@ jobs:
# download
wget -O \
input-sdk-arm-android.tar.gz \
https://github.com/MerginMaps/input-sdk/releases/download/${{ env.INPUT_SDK_VERSION_ARM }}/mergin-maps-input-sdk-qt-${{ env.QT_VERSION }}-${{ env.INPUT_SDK_VERSION_ARM }}.tar.gz
https://github.com/MerginMaps/mobile-sdk/releases/download/${{ env.INPUT_SDK_VERSION_ARM }}/mergin-maps-input-sdk-qt-${{ env.QT_VERSION }}-${{ env.INPUT_SDK_VERSION_ARM }}.tar.gz
wget -O \
input-sdk-arm64-android.tar.gz \
https://github.com/MerginMaps/input-sdk/releases/download/${{ env.INPUT_SDK_VERSION_ARM64 }}/mergin-maps-input-sdk-qt-${{ env.QT_VERSION }}-${{ env.INPUT_SDK_VERSION_ARM64 }}.tar.gz
https://github.com/MerginMaps/mobile-sdk/releases/download/${{ env.INPUT_SDK_VERSION_ARM64 }}/mergin-maps-input-sdk-qt-${{ env.QT_VERSION }}-${{ env.INPUT_SDK_VERSION_ARM64 }}.tar.gz
# unpack
mkdir -p ${{ github.workspace }}/input-sdk/arm-android
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/code_style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,18 @@ on:
- published

env:
QT_VERSION: '6.5.2'
QT_VERSION: '6.5.2' # use scripts/update_qt_version.bash to change
CACHE_VERSION: 0

jobs:
code_style_cpp:
name: C++ code convention check
if: ( github.repository == 'MerginMaps/input' ) && (!contains(github.event.head_commit.message, 'Translate '))
if: ( github.repository == 'MerginMaps/mobile' ) && (!contains(github.event.head_commit.message, 'Translate '))
runs-on: macos-latest
steps:
- name: Install astyle
run: |
brew update
brew install astyle
- name: Checkout input
Expand All @@ -42,7 +43,7 @@ jobs:
code_style_cmake:
name: CMake code convention check
if: ( github.repository == 'MerginMaps/input' ) && (!contains(github.event.head_commit.message, 'Translate '))
if: ( github.repository == 'MerginMaps/mobile' ) && (!contains(github.event.head_commit.message, 'Translate '))
runs-on: ubuntu-latest
steps:
- name: Install cmake-format
Expand All @@ -60,14 +61,15 @@ jobs:
cppcheck:
name: Cppcheck
if: ( github.repository == 'MerginMaps/input' ) && (!contains(github.event.head_commit.message, 'Translate '))
if: ( github.repository == 'MerginMaps/mobile' ) && (!contains(github.event.head_commit.message, 'Translate '))
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Requirements
run: |
brew update
brew install cppcheck
- name: Run cppcheck test
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gallery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ concurrency:

jobs:
gallery_build:
if: ( github.repository == 'MerginMaps/input' ) && (!contains(github.event.head_commit.message, 'Translate '))
if: ( github.repository == 'MerginMaps/mobile' ) && (!contains(github.event.head_commit.message, 'Translate '))
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-2019]
runs-on: ${{ matrix.os }}
env:
QT_VERSION: '6.5.2'
QT_VERSION: '6.5.2' # use scripts/update_qt_version.bash to change
GITHUB_TOKEN: ${{ secrets.INPUTAPP_BOT_GITHUB_TOKEN }}
CACHE_VERSION: 0
XC_VERSION: ${{ '14.2' }} # macos-only
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ on:

jobs:
check_translation_files:
if: ( github.repository == 'MerginMaps/input' ) && (!contains(github.event.head_commit.message, 'Translate '))
if: ( github.repository == 'MerginMaps/mobile' ) && (!contains(github.event.head_commit.message, 'Translate '))
runs-on: ubuntu-latest
env:
QT_VERSION: '6.5.2'
QT_VERSION: '6.5.2' # use scripts/update_qt_version.bash to change
steps:

- uses: actions/checkout@v3
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ on:
- published

env:
QT_VERSION: '6.5.2'
QT_VERSION: '6.5.2' # use scripts/update_qt_version.bash to change
XC_VERSION: ${{ '14.2' }}
IOS_CMAKE_TOOLCHAIN_VERSION: "4.4.0"
INPUT_SDK_VERSION: arm64-ios-20230824-157
IOS_PROVISIONING_PROFILE_UUID: 59aaa8d7-516a-4592-8c58-d7d1c1f81610
KEYCHAIN: ${{ 'inputapp.keychain' }}
CCACHE_DIR: /Users/runner/work/ccache
CACHE_VERSION: 2
CACHE_VERSION: 0

concurrency:
group: ci-${{github.ref}}-ios
cancel-in-progress: true

jobs:
ios_build:
if: ( github.repository == 'MerginMaps/input' ) && (!contains(github.event.head_commit.message, 'Translate '))
if: ( github.repository == 'MerginMaps/mobile' ) && (!contains(github.event.head_commit.message, 'Translate '))
runs-on: macos-12
steps:
- name: Select latest Xcode
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
run: |
wget -O \
${{ github.workspace }}/input-sdk.tar.gz \
https://github.com/MerginMaps/input-sdk/releases/download/${{ env.INPUT_SDK_VERSION }}/mergin-maps-input-sdk-qt-${{ env.QT_VERSION }}-${{ env.INPUT_SDK_VERSION }}.tar.gz
https://github.com/MerginMaps/mobile-sdk/releases/download/${{ env.INPUT_SDK_VERSION }}/mergin-maps-input-sdk-qt-${{ env.QT_VERSION }}-${{ env.INPUT_SDK_VERSION }}.tar.gz
mkdir -p ${{ github.workspace }}/input-sdk/arm64-ios
cd ${{ github.workspace }}/input-sdk/arm64-ios
tar -xvzf ${{ github.workspace }}/input-sdk.tar.gz
Expand Down Expand Up @@ -231,5 +231,5 @@ jobs:
xcrun altool --upload-app -t ios -f build-INPUT/Input.ipa -u "$INPUTAPP_BOT_APPLEID_USER" -p "$INPUTAPP_BOT_APPLEID_PASS" --verbose
# Add comment to GitHub
GITHUB_API=https://api.github.com/repos/MerginMaps/input/commits/${GITHUB_SHA}/comments
GITHUB_API=https://api.github.com/repos/MerginMaps/mobile/commits/${GITHUB_SHA}/comments
curl -u inputapp-bot:${INPUTAPP_BOT_GITHUB_TOKEN} -X POST --data '{"body": "iOS - version '${CF_BUNDLE_VERSION}' just submitted!"}' ${GITHUB_API}
10 changes: 6 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ on:
env:
CCACHE_DIR: ~/.ccache
INPUT_SDK_VERSION: x64-linux-20230824-162
QT_VERSION: '6.5.2'
CACHE_VERSION: 1
QT_VERSION: '6.5.2' # use scripts/update_qt_version.bash to change
CACHE_VERSION: 0

concurrency:
group: ci-${{github.ref}}-linux
cancel-in-progress: true

jobs:
linux_build:
if: ( github.repository == 'MerginMaps/input' ) && (!contains(github.event.head_commit.message, 'Translate '))
if: ( github.repository == 'MerginMaps/mobile' ) && (!contains(github.event.head_commit.message, 'Translate '))
runs-on: ubuntu-22.04
steps:
- name: Checkout Input
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
run: |
wget -O \
${{ github.workspace }}/input-sdk.tar.gz \
https://github.com/MerginMaps/input-sdk/releases/download/${{ env.INPUT_SDK_VERSION }}/mergin-maps-input-sdk-qt-${{ env.QT_VERSION }}-${{ env.INPUT_SDK_VERSION }}.tar.gz
https://github.com/MerginMaps/mobile-sdk/releases/download/${{ env.INPUT_SDK_VERSION }}/mergin-maps-input-sdk-qt-${{ env.QT_VERSION }}-${{ env.INPUT_SDK_VERSION }}.tar.gz
mkdir -p ${{ github.workspace }}/input-sdk/x64-linux
cd ${{ github.workspace }}/input-sdk/x64-linux
tar -xvzf ${{ github.workspace }}/input-sdk.tar.gz
Expand Down Expand Up @@ -149,6 +149,8 @@ jobs:
- name: run tests
env:
TEST_MERGIN_URL: https://test.dev.merginmaps.com/
TEST_API_USERNAME: test_mobileapp
TEST_API_PASSWORD: ${{ secrets.TEST_API_PASSWORD }}
QT_QPA_PLATFORM: "offscreen"
run: |
cd build-Input-db/
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ on:
- published

env:
QT_VERSION: '6.5.2'
QT_VERSION: '6.5.2' # use scripts/update_qt_version.bash to change
INPUT_SDK_VERSION: x64-osx-20230824-181
CCACHE_DIR: /Users/runner/work/ccache
CACHE_VERSION: 2
CACHE_VERSION: 0
XC_VERSION: ${{ '14.2' }}

concurrency:
Expand All @@ -28,7 +28,7 @@ concurrency:

jobs:
macos_build:
if: ( github.repository == 'MerginMaps/input' ) && (!contains(github.event.head_commit.message, 'Translate '))
if: ( github.repository == 'MerginMaps/mobile' ) && (!contains(github.event.head_commit.message, 'Translate '))
runs-on: macos-12
steps:
- name: Checkout Input
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
run: |
wget -O \
${{ github.workspace }}/input-sdk.tar.gz \
https://github.com/MerginMaps/input-sdk/releases/download/${{ env.INPUT_SDK_VERSION }}/mergin-maps-input-sdk-qt-${{ env.QT_VERSION }}-${{ env.INPUT_SDK_VERSION }}.tar.gz
https://github.com/MerginMaps/mobile-sdk/releases/download/${{ env.INPUT_SDK_VERSION }}/mergin-maps-input-sdk-qt-${{ env.QT_VERSION }}-${{ env.INPUT_SDK_VERSION }}.tar.gz
mkdir -p ${{ github.workspace }}/input-sdk/x64-osx
cd ${{ github.workspace }}/input-sdk/x64-osx
tar -xvzf ${{ github.workspace }}/input-sdk.tar.gz
Expand Down Expand Up @@ -148,6 +148,8 @@ jobs:
- name: run tests
env:
TEST_MERGIN_URL: https://test.dev.merginmaps.com/
TEST_API_USERNAME: test_mobileapp2
TEST_API_PASSWORD: ${{ secrets.TEST_API_PASSWORD }}
run: |
cd build-Input-db/
ctest --output-on-failure
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ concurrency:

jobs:
win64_build:
if: ( github.repository == 'MerginMaps/input' ) && (!contains(github.event.head_commit.message, 'Translate '))
if: ( github.repository == 'MerginMaps/mobile' ) && (!contains(github.event.head_commit.message, 'Translate '))
runs-on: windows-2019

env:
QT_VERSION: '6.5.2'
QT_VERSION: '6.5.2' # use scripts/update_qt_version.bash to change
INPUT_SDK_VERSION: x64-windows-20230824-209
CCACHE_DIR: C:/ccache-cache # https://linux.die.net/man/1/ccache
CACHE_VERSION: 3
CACHE_VERSION: 0
VS_VERSION: "2019"
QT_ARCH: "win64_msvc2019_64"

Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
shell: bash
if: steps.cache-input-sdk.outputs.cache-hit != 'true'
run: |
URL="https://github.com/MerginMaps/input-sdk/releases/download/${{ env.INPUT_SDK_VERSION }}/mergin-maps-input-sdk-qt-${{ env.QT_VERSION }}-${{ env.INPUT_SDK_VERSION }}.zip"
URL="https://github.com/MerginMaps/mobile-sdk/releases/download/${{ env.INPUT_SDK_VERSION }}/mergin-maps-input-sdk-qt-${{ env.QT_VERSION }}-${{ env.INPUT_SDK_VERSION }}.zip"
echo "downloading: $URL"
curl -fsSL --connect-timeout 60 -o \
input-sdk.tar.gz \
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ app/android/AndroidManifest.xml
*.gpkg-shm
Input_keystore.keystore
CMakeLists.txt.user
app/android/build.gradle
app/android/.gradle/*
app/android/.gradle
14 changes: 5 additions & 9 deletions .zenodo.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"description": "<p>Mergin Maps Input app is a QGIS based mobile app for Android and iOS devices.</p>",
"description": "<p>Mergin Maps mobile app is a QGIS powered app for Android and iOS devices.</p>",
"license": "GPLv3",
"title": "Mergin Maps Input: QGIS in your pocket",
"version": "2.3.1",
"title": "Mergin Maps mobile app",
"version": "2.5.0",
"upload_type": "software",
"publication_date": "2022-02-24",
"creators": [
Expand All @@ -21,11 +21,7 @@
{
"affiliation": "Lutra Consulting",
"name": "Saber Razmjooei"
},
{
"affiliation": "@lutraconsulting",
"name": "Nedjima Belgacem"
},
},
{
"affiliation": "@lutraconsulting",
"name": "Martin Varga"
Expand All @@ -43,7 +39,7 @@
"related_identifiers": [
{
"scheme": "url",
"identifier": "https://github.com/MerginMaps/input/tree/2.3.1",
"identifier": "https://github.com/MerginMaps/mobile/tree/2.5.0",
"relation": "isSupplementTo"
},
{
Expand Down
6 changes: 3 additions & 3 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cff-version: 2.3.1
cff-version: 2.5.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Martin"
Expand All @@ -7,7 +7,7 @@ authors:
given-names: "Petrik"
- family-names: "Tomas"
given-names: "Mizera"
title: "Mergin Maps Input app"
title: "Mergin Maps mobile app"
doi: 10.5281/zenodo.6375198
date-released: 2017-12-18
url: "https://github.com/MerginMaps/input"
url: "https://github.com/MerginMaps/mobile"
Loading

0 comments on commit 2fc28ca

Please sign in to comment.