Skip to content

Commit 83d9437

Browse files
committed
Merge branch 'release-0.6.6' into release
2 parents 767d819 + 2748fae commit 83d9437

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+94949
-87721
lines changed

CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ set(Mapper_VERSION_MAJOR 0)
3939
set(Mapper_VERSION_MINOR 6)
4040
if(NOT Mapper_VERSION_PATCH)
4141
# This can be configured when running cmake
42-
set(Mapper_VERSION_PATCH 5)
42+
set(Mapper_VERSION_PATCH 6)
4343
endif()
4444

4545
set(MAPPER_VERSION_PRI "${PROJECT_SOURCE_DIR}/oo-mapper-version.pri")
@@ -55,6 +55,16 @@ if(NOT "${output_md5}" STREQUAL "${file_md5}")
5555
file(WRITE "${MAPPER_VERSION_PRI}" "${output}")
5656
endif()
5757

58+
set(android_manifest "${PROJECT_SOURCE_DIR}/android/AndroidManifest.xml")
59+
file(READ "${android_manifest}" current)
60+
if(NOT current MATCHES " android:versionName=.${Mapper_VERSION_MAJOR}\\.${Mapper_VERSION_MINOR}\\.${Mapper_VERSION_PATCH}. ")
61+
set(android_version_name "${Mapper_VERSION_MAJOR}.${Mapper_VERSION_MINOR}.${Mapper_VERSION_PATCH}")
62+
math(EXPR android_version_int "${Mapper_VERSION_MAJOR} * 10000 + ${Mapper_VERSION_MINOR} * 100 + ${Mapper_VERSION_PATCH}")
63+
string(REGEX REPLACE "( android:versionName=.)[0-9]*\\.[0-9]*\\.[0-9]*(. )" "\\1${android_version_name}\\2" output "${current}")
64+
string(REGEX REPLACE "( android:versionCode=.)[0-9]*(. )" "\\1${android_version_int}\\2" output "${output}")
65+
file(WRITE "${android_manifest}" "${output}")
66+
endif()
67+
5868
if(${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
5969
message(AUTHOR_WARNING "In-source builds are discouraged for development.")
6070
endif()

INSTALL.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ You can change the cmake option `Mapper_BUILD_PROJ` to adjust this.
5050

5151
## Getting the Source
5252

53-
Download a tarball from
53+
Download a zip or tar.gz Source code archive from
5454

5555
https://github.com/OpenOrienteering/mapper/releases
5656

@@ -216,10 +216,3 @@ to change this. As already stated, this is untested, and you might need to look
216216
additional tweaks.
217217

218218

219-
## Making a source package
220-
221-
Start from a clean git working directory. Run
222-
223-
```
224-
make Mapper_Source
225-
```

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,13 @@ OpenOrienteering Mapper runs on Android, Windows, Mac OS X and Linux.
1212
- [OpenOrienteering Blog](http://www.openorienteering.org/)
1313

1414

15-
## Contributing
16-
17-
### Writing Code
15+
## Reporting Issues and Asking for Help
1816

19-
For building Mapper from source see [`INSTALL.md`](https://github.com/OpenOrienteering/mapper/blob/master/INSTALL.md).
20-
Pull requests are very welcome.
17+
Issues and possible improvements can be posted to our public [Ticket system](https://github.com/OpenOrienteering/mapper/issues).
18+
Please make sure you provide all relevant information about your problem or idea.
2119

22-
- [Issue tracker](https://github.com/OpenOrienteering/mapper/issues)
23-
- [API documentation](http://www.openorienteering.org/api-docs/mapper/)
24-
- [Developer wiki](https://github.com/OpenOrienteering/mapper/wiki)
2520

21+
## Contributing
2622

2723
### Translating
2824

@@ -35,10 +31,14 @@ The Mapper manual lives in its [own repository](https://github.com/OpenOrienteer
3531
which contains all information for you to get started.
3632

3733

38-
### Reporting Issues
34+
### Writing Code
3935

40-
Issues and possible improvements can be posted to our public [Ticket system](https://github.com/OpenOrienteering/mapper/issues).
41-
Please make sure you provide all relevant information about your problem or idea.
36+
For building Mapper from source see [`INSTALL.md`](https://github.com/OpenOrienteering/mapper/blob/master/INSTALL.md).
37+
Pull requests are very welcome.
38+
39+
- [Issue tracker](https://github.com/OpenOrienteering/mapper/issues)
40+
- [API documentation](http://www.openorienteering.org/api-docs/mapper/)
41+
- [Developer wiki](https://github.com/OpenOrienteering/mapper/wiki)
4242

4343

4444
## License

android/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="0.6.5" android:versionCode="5" package="org.openorienteering.mapper" android:installLocation="auto">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="0.6.6" android:versionCode="606" package="org.openorienteering.mapper" android:installLocation="auto">
33
<application android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="@string/long_app_name" android:icon="@drawable/icon">
44
<activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation"
55
android:name="org.openorienteering.mapper.MapperActivity"

doc/manual/pages/android-app.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,8 @@ Sets a point object at the GPS position. Selecting this button first enters an a
8989
(16) Symbol selector
9090

9191
Displays the active symbol, and opens the symbol selection screen when touched.
92+
93+
(17) Map parts selector
94+
95+
This button opens a popup for changing the active map part.
96+
237 Bytes
Loading

examples/complete map.omap

Lines changed: 5 additions & 5 deletions
Large diffs are not rendered by default.

examples/examples.pro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ CONFIG -= debug_and_release
2222
!equals(OUT_PWD, $$PWD) {
2323
# Copy examples to shadow build dir.
2424
examples.target = examples.stamp
25+
examples.depends =
26+
"$$PWD/complete map.omap"
27+
"$$PWD/forest sample.omap"
28+
"$$PWD/overprinting.omap"
2529
examples.commands = \
2630
$(COPY_FILE) \"$$PWD\"/*.omap \"$$OUT_PWD/\" && \
2731
echo > $$examples.target

0 commit comments

Comments
 (0)