Skip to content

Commit a9398e0

Browse files
committed
- add: GeocachingData.cacheUrlFull support for Lab caches
- add: `GeoDataExtra.PAR_LOMEDIA` as container for LoMedia objects
1 parent 09bbd8e commit a9398e0

File tree

5 files changed

+20
-3
lines changed

5 files changed

+20
-3
lines changed

Diff for: CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [0.9.52]
8+
### Added
9+
- `GeocachingData.cacheUrlFull` support for Lab caches
10+
- `GeoDataExtra.PAR_LOMEDIA` as container for LoMedia objects
11+
712
## [0.9.51]
813
### Added
914
- `GeoDataExtra.PAR_RTE_WARNINGS` as container with Route warnings

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Library for [Locus Map](https://www.locusmap.app) application for Android device
1616

1717
## Current version
1818

19-
Latest stable LT version: **0.9.51**
19+
Latest stable LT version: **0.9.52**
2020
Available versions on the maven repository: [here](https://repo1.maven.org/maven2/com/asamm/).
2121

2222
How to **update to new 0.9.x** version? More about it [here](https://github.com/asamm/locus-api/wiki/Update-to-version-0.9.0).

Diff for: gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ GRADLE_NEXUS_STAGING = 0.30.0
2323
LOCUS_LOGGER = 2.2
2424

2525
# Version
26-
API_CODE = 98
27-
API_VERSION = 0.9.51
26+
API_CODE = 99
27+
API_VERSION = 0.9.52
2828

2929
# ANDROID SUPPORT LIBS
3030
# https://developer.android.com/topic/libraries/support-library/revisions.html

Diff for: locus-api-core/src/main/java/locus/api/objects/extra/GeoDataExtra.kt

+7
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,13 @@ class GeoDataExtra : Storable() {
10561056
*/
10571057
const val PAR_LOPOINTS_GEOMETRY = 314
10581058

1059+
/**
1060+
* Container for LoMedia objects.
1061+
*
1062+
* "STRING" in ByteArray (JSON)
1063+
*/
1064+
const val PAR_LOMEDIA = 315
1065+
10591066
//*************************************************
10601067
// CALL BACK HELPERS
10611068
//*************************************************

Diff for: locus-api-core/src/main/java/locus/api/objects/geocaching/GeocachingData.kt

+5
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,11 @@ class GeocachingData : Storable() {
390390
*/
391391
val cacheUrlFull: String
392392
get() {
393+
// handle lab caches
394+
if (type == CACHE_TYPE_LAB_CACHE && cacheUrl.contains("adventurelab.page.link")) {
395+
return cacheUrl
396+
}
397+
393398
// if cache is from Groundspeak, return "coord.info" url
394399
if (source == CACHE_SOURCE_GEOCACHING_COM) {
395400
return "https://coord.info/$cacheID"

0 commit comments

Comments
 (0)