Commit graph

17912 commits

Author SHA1 Message Date
Bars107
fbf52256cd Merge 2015-01-22 16:01:58 +02:00
Viktar Palstsiuk
2f0c960e96 Translated using Weblate (Belarusian)
Currently translated at 100.0% (1607 of 1607 strings)
2015-01-22 09:34:05 +01:00
Victor Shcherb
fa725d7603 Test gradle 2015-01-22 09:12:56 +02:00
Victor Shcherb
a6587d7db0 Merge branch 'master' of github.com:osmandapp/Osmand 2015-01-22 08:51:40 +02:00
Victor Shcherb
1c6787757a Fix default builds 2015-01-22 08:51:34 +02:00
Victor Shcherb
7f0b421df4 Fix default builds 2015-01-22 08:51:01 +02:00
Weblate
3b7d96f496 Merge remote-tracking branch 'origin/master' 2015-01-22 07:28:10 +01:00
Lu Ca
3717027b81 Translated using Weblate (Sardinian)
Currently translated at 90.8% (555 of 611 strings)
2015-01-22 07:28:07 +01:00
jan madsen
4c6727d498 Translated using Weblate (Danish)
Currently translated at 100.0% (611 of 611 strings)
2015-01-22 07:28:05 +01:00
ezjerry liao
647f861406 Translated using Weblate (Traditional Chinese)
Currently translated at 100.0% (1607 of 1607 strings)
2015-01-22 07:28:02 +01:00
Lu Ca
6c8292656f Translated using Weblate (Sardinian)
Currently translated at 100.0% (1607 of 1607 strings)
2015-01-22 07:28:00 +01:00
Mirco Zorzo
853b3cd21e Translated using Weblate (Italian)
Currently translated at 100.0% (1607 of 1607 strings)
2015-01-22 07:27:58 +01:00
Konfrare Albert
db6e25f11a Translated using Weblate (Catalan)
Currently translated at 99.9% (1606 of 1607 strings)
2015-01-22 07:27:57 +01:00
Victor Shcherb
4a6c3454a4 Fix gradle 2015-01-22 08:27:32 +02:00
Victor Shcherb
1b4ff29a15 Merge branch 'master' of github.com:osmandapp/Osmand 2015-01-22 00:32:37 +02:00
Victor Shcherb
c10a7cd69d Update gradle 2015-01-22 00:32:16 +02:00
Mirco Zorzo
5c286fd0aa Translated using Weblate (Italian)
Currently translated at 100.0% (1607 of 1607 strings)
2015-01-21 18:34:21 +01:00
Denis
c5b153bf19 Added some new fragments 2015-01-21 17:51:12 +02:00
ezjerry liao
9f52c583d3 Translated using Weblate (Traditional Chinese)
Currently translated at 100.0% (1607 of 1607 strings)
2015-01-21 16:26:39 +01:00
josep constanti
a8efc41997 Translated using Weblate (Catalan)
Currently translated at 99.9% (1606 of 1607 strings)
2015-01-21 16:13:53 +01:00
Konfrare Albert
3d66b920e8 Translated using Weblate (Catalan)
Currently translated at 99.9% (1606 of 1607 strings)
2015-01-21 16:13:31 +01:00
Lu Ca
10d7c06888 Translated using Weblate (Sardinian)
Currently translated at 100.0% (1607 of 1607 strings)
2015-01-21 16:02:07 +01:00
Victor Shcherb
ba69664505 Merge branch 'master' of github.com:osmandapp/Osmand 2015-01-21 13:55:50 +01:00
Victor Shcherb
735ba68cc7 Update gradle 2015-01-21 13:43:07 +01:00
Weblate
bb2a22ebcd Merge remote-tracking branch 'origin/master' 2015-01-21 13:22:46 +01:00
Nicolas Palix
a54a2b44f7 Translated using Weblate (French)
Currently translated at 100.0% (1607 of 1607 strings)
2015-01-21 13:22:42 +01:00
Victor Shcherb
7f9e54ba08 Merge branch 'master' of github.com:osmandapp/Osmand 2015-01-21 13:22:34 +01:00
Victor Shcherb
d5271ae5a7 Update gradle 2015-01-21 13:22:26 +01:00
권 조
ab3a0bc3b6 Translated using Weblate (Korean)
Currently translated at 100.0% (1607 of 1607 strings)
2015-01-21 12:16:05 +01:00
Victor Shcherb
966a1ae9b4 Merge branch 'master' of github.com:osmandapp/Osmand 2015-01-21 11:52:03 +01:00
Victor Shcherb
b6ddfbc0f9 Update gradle script 2015-01-21 11:51:58 +01:00
Ldm Public
9dda372488 Translated using Weblate (French)
Currently translated at 100.0% (1607 of 1607 strings)
2015-01-21 11:46:08 +01:00
Ivan Vantu5z
0fa78384a4 Translated using Weblate (Russian)
Currently translated at 100.0% (1607 of 1607 strings)
2015-01-21 11:31:05 +01:00
Hans-Christoph Steiner
9bb03894a5 generate OpenStreetMap shortlinks using current char set (~ instead of @)
OpenStreetMap has changed the shortlink charset to use ~ instead of @ to be
support services like Twitter where @ has meaning.  OpenStreetMap still will
parse the old format, but only generates new shortlinks using "~".  This
commit changes OsmAnd to have the same behavior.

References:
https://wiki.openstreetmap.org/wiki/Shortlink#Code_for_encoding_.26_decoding
e84b2bd22f/app/assets/javascripts/application.js (L188)

---------------- OsmAnd-java/src/net/osmand/util/MapUtils.java ----------------
2015-01-21 11:25:51 +01:00
Hans-Christoph Steiner
50eed92015 parse lat/lon/zoom from OpenStreetMap shortlinks
This is a nice format of shortlink since it uses a public, offline algorithm
to generate them.  So Osmand can get what it needs from the shortlink
without going online.

https://wiki.openstreetmap.org/wiki/Shortlink
2015-01-21 11:25:51 +01:00
Hans-Christoph Steiner
8d927de6ac if incoming URL was properly parsed, remove GeoIntentActivity from backstack
When a user clicks on a URL that OsmAnd claims, they will first go to the
GeoIntentActivity, which will show them the processing, and any errors,
then it'll take them to the map.  Since the map will stay in the same task
as the original Activity where the user clicked it, the user is very likely
to be clicking on the back button.  Calling finish() here gives them one
less thing to click back on, since GeoIntentActivity will be removed.

closes #1037 https://github.com/osmandapp/Osmand/pull/1037
2015-01-21 11:25:51 +01:00
Hans-Christoph Steiner
2537d92a6a update MapUtils.decodeShortLinkString() to also parse zoom
This method is used to parse the custom OpenStreetMap shortlink algorithm
that encodes lat, lon, and zoom.  The previous version,
MapUtils.decodeShortLocString(), only parsed lat, lon from the shortlink.
2015-01-21 11:25:51 +01:00
Hans-Christoph Steiner
50abbb0d57 consolidate IntentFilter for matching HTTP map URIs with no specific path
This puts them all into a single <intent-filter> to improve readability and
reduce the number of IntentFilters used.  This also adds some new domains:

* maps.yandex.com
* map.baidu.cn
* map.baidu.com
* wb.amap.com
* www.amap.com
2015-01-21 11:25:51 +01:00
jan madsen
a3a1dabe28 Translated using Weblate (Danish)
Currently translated at 100.0% (1606 of 1606 strings)
2015-01-21 11:23:49 +01:00
jan madsen
d7849536c1 Translated using Weblate (Danish)
Currently translated at 100.0% (1607 of 1607 strings)
2015-01-21 11:06:12 +01:00
Hans-Christoph Steiner
147f2adf05 add BaiduMap as a URL pattern (http://map.baidu.com)
This is a mapping service that is popular in China.
2015-01-21 11:00:46 +01:00
Hans-Christoph Steiner
baf25cbb14 include test lat/lon to 5 decimal places since that's the common format
This makes the test more realistic, since most services are using at least
this much accuracy.
2015-01-21 11:00:46 +01:00
Hans-Christoph Steiner
32f7cccd0f rework OpenStreetMap URL parsing to handle current formats
It seems this code is quite out of date, because none of the URL formats
listed in the tests seem to work.  This commit updates the URL formats in
the tests, then makes all of them parse properly.  It also changes the
parsing technique, leveraging java.net.URL's built-in parsing abilities to
assist.  Also, I plan on adding a lot more URL formats, so the current code
structure made it very difficult to add to.  So each service will be split
out into its own section, starting here.
2015-01-21 11:00:46 +01:00
Hans-Christoph Steiner
7729aa7350 remove scheme arg from GeoPointParserUtil.parse(), java.net.URI provides it
Since the first step in parse() is to create a URI instance, the scheme
should come from URI.getScheme() instead of an arg.
2015-01-21 11:00:46 +01:00
Hans-Christoph Steiner
ba15646534 old-ndk-build.sh: support standard ANDROID_HOME env var
Google has defined the ANDROID_HOME env var as the standard env var to
point to the Android SDK install.  It is not so well documented, but it is
documented here and there:

https://developer.android.com/tools/testing/testing_ui.html#builddeploy
http://books.sonatype.com/mvnref-book/reference/android-dev-sect-config-build.html
2015-01-21 11:00:46 +01:00
Hans-Christoph Steiner
56eee3216f use http://osmand.net/go URL as HTTP url for sharing
For the record, I do not think it is a good idea to share location using
HTTP, it should always be HTTPS.  There are too many privacy concerns.
@vshcherb says he plans on adding HTTPS to osmand.net, so that will be good
once it happens.
2015-01-21 11:00:46 +01:00
Hans-Christoph Steiner
01bb7d091f split geo: URL creation to MapUtils.buildGeoUrl(lat, lon, z)
This follow the pattern set by MapUtils.buildShortOsmUrl().
2015-01-21 11:00:46 +01:00
Hans-Christoph Steiner
597f4b0a89 also match OSM short hostnames: osm.org and openstreetmap.org
osm.org is the official short URL for OpenStreetMap, with proper HTTPS
coming soon.  openstreetmap.org is the temporary short URL since it already
supports HTTPS.
2015-01-21 11:00:46 +01:00
Hans-Christoph Steiner
c54d8d47e8 use HTTPS URL for sharing location
In order to maintain privacy when sharing location, this changes the shared
location link to use HTTPS, thereby hiding the location info from anyone
who might be snooping on the WiFi, ISP, internet, etc.

Unfortunately, http://osm.org does not yet work with HTTPS, but the
standard OSM URLs are short enough to fit into a text message. They are
planning on supporting https://osm.org in the future:
https://github.com/openstreetmap/operations/issues/2
2015-01-21 11:00:46 +01:00
Weblate
0eb640af8c Merge remote-tracking branch 'origin/master' 2015-01-21 10:56:47 +01:00