Skip to content

Commit

Permalink
Release v5.2.0 (#532)
Browse files Browse the repository at this point in the history
* chore: Fix redirect created when a new version is released

Previous link was broken

* chore: Remove untranslated strings from messages (#496)

Reduces memory use and APK size

* chore(CI): Update JDK setup action (#505)

* note to use specific ndk version

* chore: Improve contributor docs (#509)

* chore: Added instructions to build translations and run the Javascript bundler prior to building for Android

* chore: Added instructions for downloading and preparing offline maps wth the needed structure

* chore: Add detailed instructions on how to download maps and add them to phone

* chore: Add note about react-native run-android not opening bundler on all machines

* chore: Add note about com.mapeo changing with different release versions

* chore: Change asar to full flag name

* fix: Localize "Import Config" button (#510)

* fix: Change hardcoded message to intl FormattedMessage

* Add missing string to translations

* chore: prettier

* extract messages

Co-authored-by: Gregor MacLennan <[email protected]>

* feat: Updated translations (vi, es, po) (#498)

* New translations en.json (Vietnamese)

* New translations en.json (Vietnamese)

* New translations en.json (Vietnamese)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Spanish)

* New translations en.json (Portuguese, Brazilian)

Co-authored-by: Gregor MacLennan <[email protected]>

* fix: Fix import config button crash (#512)

* fix: Fix import config button crash

* Update version in package-lock

Co-authored-by: luandro <[email protected]>

* chore: Fix Github CI builds by removing NDK r22 (#516)

See #517 for explanation
An update to the Github Action virtual environment added NDK r22,
which CMake uses, ignoring $ANDROID_NDK_HOME.
Solution: Remove NDK r22 and update to latest NDK r21f

* fix: Write preset tags to observations (#514)

* fix: Add better variable naming and easier to understand logic

* fix: Cleaner and easier to understand logic on updating tags

* fix: Clean redundant code and sort updated value order in preparation for edge cases

* fix: Fix cutoff of text on OnePlus6T phone #502 (#511)

* fix: Fix cutoff of text on OnePlus6T phone #502

Use a custom Text component with fontFamily explicitly set, to work around bug facebook/react-native#15114 (comment)

* Fix implementation of style merging

* fix bugs

* feat: Add French translations

* feat: Add Sranan Tongo translations

* feat: Add Dutch translations

* fix: Update Thai, Khmer & Vietnamese translations

* feat: Updated translations for default configuration (vi, srn)

* Revert "feat: Updated translations for default configuration (vi, srn)"

This reverts commit c267a99.
Install was done using npm@7 which changed the package-lock format and broke the build

* chore: Re-apply c267a99 with correct npm@6 version and lockfile v1

* chore: Prepare release v5.2.0

Co-authored-by: Kira Oakley <[email protected]>
Co-authored-by: luandro <[email protected]>
Co-authored-by: Digidem Bot <[email protected]>
  • Loading branch information
4 people authored Apr 29, 2021
1 parent 69acfcf commit 1a558fb
Show file tree
Hide file tree
Showing 58 changed files with 995 additions and 2,922 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Node
uses: actions/setup-node@v1
- name: Use specific Java version for sdkmanager to work
uses: joschi/setup-jdk@v1
uses: joschi/setup-jdk@v2
with:
java-version: "openjdk8"
architecture: "x64"
Expand All @@ -37,6 +37,9 @@ jobs:
# mv android-ndk-r${ANDROID_NDK_VERSION} $ANDROID_NDK_HOME
# ls -al $ANDROID_NDK_HOME
# cat $ANDROID_NDK_HOME/source.properties
- name: Delete newer NDK version
run: |
rm -rf $ANDROID_HOME/ndk/22*
- name: Download Android Emulator Image
run: |
sdkmanager --update | grep -v = || true
Expand Down
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [5.2.0](https://github.com/digidem/mapeo-mobile/compare/v5.1.0...v5.2.0) (2021-04-06)


### Features

* Add Dutch translations ([5b66715](https://github.com/digidem/mapeo-mobile/commit/5b66715d62001211665873737fd87dc4094bce6f))
* Add French translations ([bc28822](https://github.com/digidem/mapeo-mobile/commit/bc288225f6ec82f4a6a1185e3991d1eca7aab3d0))
* Add Sranan Tongo translations ([3b88b99](https://github.com/digidem/mapeo-mobile/commit/3b88b9976087b55039cfd730d0dbad337a24f427))
* Updated default config with translations ([923b6a0](https://github.com/digidem/mapeo-mobile/commit/923b6a0cb83134039e2687efdfd85e1f1badf940))
* Updated translations (vi, es, po) ([#498](https://github.com/digidem/mapeo-mobile/issues/498)) ([5873ce2](https://github.com/digidem/mapeo-mobile/commit/5873ce29cedc45b1d8e76efe467c53fae9dbdc6d))


### Bug Fixes

* Fix cutoff of text on OnePlus6T phone [#502](https://github.com/digidem/mapeo-mobile/issues/502) ([#511](https://github.com/digidem/mapeo-mobile/issues/511)) ([a386c96](https://github.com/digidem/mapeo-mobile/commit/a386c96d207b0a77dae7142a63172d14a351fb2a)), closes [/github.com/facebook/react-native/issues/15114#issuecomment-335797756](https://github.com/digidem//github.com/facebook/react-native/issues/15114/issues/issuecomment-335797756)
* Fix import config button crash ([#512](https://github.com/digidem/mapeo-mobile/issues/512)) ([6093c3e](https://github.com/digidem/mapeo-mobile/commit/6093c3ec0f77f4246835f99bca777ba0750d7f7b))
* Fix Portuguese (Brazilian) translations ([178fb12](https://github.com/digidem/mapeo-mobile/commit/178fb1291fe9e93e585e4de44b09a6dfc9c5b3a9))
* Localize "Import Config" button ([#510](https://github.com/digidem/mapeo-mobile/issues/510)) ([53c5655](https://github.com/digidem/mapeo-mobile/commit/53c5655bf934b272d3fa6e5e6f3407ebd9fd70c1))
* Show "discard edits" not "discard observation" when cancelling edit ([#472](https://github.com/digidem/mapeo-mobile/issues/472)) ([211d855](https://github.com/digidem/mapeo-mobile/commit/211d855afd7ff5361bba55860f775c6a4e7ef3c9)), closes [#381](https://github.com/digidem/mapeo-mobile/issues/381)
* Update Thai and Nepali translations ([be8dc75](https://github.com/digidem/mapeo-mobile/commit/be8dc750b91c3a67fcaa61d3f5c90ea4c8580c42))
* Update Thai, Khmer & Vietnamese translations ([f54c5d8](https://github.com/digidem/mapeo-mobile/commit/f54c5d8d3d21a765e6c03e8d2eb5e853880560b0))
* Write preset tags to observations ([#514](https://github.com/digidem/mapeo-mobile/issues/514)) ([ab5e3b8](https://github.com/digidem/mapeo-mobile/commit/ab5e3b82f23619264a03c761af86441dfc3b2f13))

## [5.1.0](https://github.com/digidem/mapeo-mobile/compare/v5.0.3-rebase...v5.1.0) (2020-09-30)

### Features
Expand Down
22 changes: 17 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ able to control the mobile app.
### Pre-requisites

In order to develop the full app you will need the Android SDK installed and
[r19c of NDK](https://developer.android.com/ndk/guides/) in order to build
specifically [21.3.6528147 of the NDK](https://developer.android.com/ndk/guides/) in order to build
nodejs-mobile for Android.

You may need to open your app's `/android` folder in Android Studio, so that it detects, downloads and cofigures requirements that might be missing, like the NDK and CMake to build the native code part of the project.
Expand All @@ -100,7 +100,19 @@ Android Studio](https://developer.android.com/studio/run/managing-avds). Choose

### Starting the dev version of Mapeo Mobile

Connect your phone with USB, or start up the emulator, then build and run the
Build translations with:

```sh
npm run build:translations
```

Connect your phone with USB, or start up the emulator. Then start the Javascript bundler:

```sh
npm start
```

In another terminal window build and run the
dev version of the app on your device:

```sh
Expand All @@ -116,9 +128,9 @@ If you are tired of shaking the phone you can enter `npm run dev-menu` from your
computer.

`npm run android` does two things: starts "Metro bundler" in one window, and
then builds and installs the dev version of Mapeo on the connected device. To
start Metro bundler on its own (e.g. if you already have the app installed), use
`npm start`.
then builds and installs the dev version of Mapeo on the connected device.
That might not work on all machines, so in order to start the Metro bundler on
its own (e.g. if you already have the app installed), use `npm start`.

### Running end-to-end tests

Expand Down
36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,47 @@ icons/

### Offline Maps

First find out the bouding box of the map area that will be downloaded using the [boundingbox online tool](https://boundingbox.klokantech.com). Use the `CSV` Copy & Paste option to display the coordinates in the correct format.

Then install [mapbox-style-downloader](https://www.npmjs.com/package/mapbox-style-downloader):

```sh
npm i -g mapbox-style-downloader
```

Get a [Mapbox API token](https://account.mapbox.com/access-tokens/) and select a [Mapbox style](https://docs.mapbox.com/api/maps/styles/).

Use `mapbox-style-downloader` to download styles, tiles, glyphs, and sprites for offline use:

```sh
mapbox-style download mapbox://styles/mapbox/streets-v9 \
--asar \
--token='MAPBOX_API_TOKEN' \
-o styledir \
-z 8 \
-Z 13 \
-b '-60.1364 1.5626 -58.0627 3.475'
```

Check that everything was downloaded correctly with `mapbox-style serve` inside the `styledir` directory.

Connect phone to computer or move the files to a SD card or USB drive (an adapter will be needed).

Offline maps must be placed in this folder:

```txt
/sdcard/Android/data/com.mapeo/files/styles/default
```

This folder should contain these files derectly under this `default` folder:
> ⚠ with different mapeo releases `com.mapeo` changes, ex.: `com.mapeo.debug`
From the computer `adb push` can be used. Make sure you have [adb](https://adbinstaller.com/) installed. Use like so:

```sh
adb push /path/to/styledir/* /sdcard/Android/data/com.mapeo/files/styles/default
```

This folder should contain these files directly under this `default` folder:

```txt
style.json
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {
supportLibVersion = "29.0.0"
// Kotlin is needed by Detox testing framework
kotlinVersion = "1.3.50"
ndkVersion = "21.3.6528147"
ndkVersion = "21.4.7075529"
}
repositories {
google()
Expand Down
200 changes: 100 additions & 100 deletions android/gradlew.bat
Original file line number Diff line number Diff line change
@@ -1,100 +1,100 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem http://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem

@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto init

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:init
@rem Get command-line arguments, handling Windows variants

if not "%OS%" == "Windows_NT" goto win9xME_args

:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2

:win9xME_args_slurp
if "x%~1" == "x" goto execute

set CMD_LINE_ARGS=%*

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem http://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem

@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto init

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:init
@rem Get command-line arguments, handling Windows variants

if not "%OS%" == "Windows_NT" goto win9xME_args

:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2

:win9xME_args_slurp
if "x%~1" == "x" goto execute

set CMD_LINE_ARGS=%*

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega
6 changes: 4 additions & 2 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ workflows:
# debug log
set -x
node ./scripts/gh-pages-redirect.js /latest https://mapeo-apks.s3.amazonaws.com/release/${VERSION_NAME}/${RELEASE_APK_PATH##*/}
node ./scripts/gh-pages-redirect.js /latest https://mapeo-apks.s3.amazonaws.com/release/v${VERSION_NAME}/${RELEASE_APK_PATH##*/}
- [email protected]:
title: Upload universal (all ABIs) APK
inputs:
Expand Down Expand Up @@ -283,11 +283,13 @@ workflows:
# debug log
set -x
ANDROID_NDK_VERSION='21.3.6528147'
ANDROID_NDK_VERSION='21.4.7075529'
echo '### User Sources for Android SDK Manager' > $HOME/.android/repositories.cfg
yes | sdkmanager --licenses
sdkmanager --update | grep -v = || true
# Remove NDK r22 (can cause builds to fail)
rm -rf $ANDROID_HOME/ndk/22*
sdkmanager --install "ndk;${ANDROID_NDK_VERSION}"
echo "Updated to latest SDK:"
Expand Down
9 changes: 0 additions & 9 deletions messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,22 +93,13 @@
"screens.ManualGpsScreen.easting": {
"message": "Osten"
},
"screens.ManualGpsScreen.eastingSuffix": {
"message": "mE"
},
"screens.ManualGpsScreen.northing": {
"message": "Norden"
},
"screens.ManualGpsScreen.northingSuffix": {
"message": "mN"
},
"screens.ManualGpsScreen.title": {
"description": "title of manual GPS screen",
"message": "Koordinaten eingeben"
},
"screens.ManualGpsScreen.zoneLetter": {
"message": "Zone Letter"
},
"screens.ManualGpsScreen.zoneNumber": {
"message": "Zonennummer"
},
Expand Down
Loading

0 comments on commit 1a558fb

Please sign in to comment.