diff --git a/CHANGELOG.md b/CHANGELOG.md index 49cacb6..60303b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [0.9.52] +### Added +- `GeocachingData.cacheUrlFull` support for Lab caches +- `GeoDataExtra.PAR_LOMEDIA` as container for LoMedia objects + ## [0.9.51] ### Added - `GeoDataExtra.PAR_RTE_WARNINGS` as container with Route warnings diff --git a/README.md b/README.md index a0d3ee9..d00d36b 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Library for [Locus Map](https://www.locusmap.app) application for Android device ## Current version -Latest stable LT version: **0.9.51** +Latest stable LT version: **0.9.52** Available versions on the maven repository: [here](https://repo1.maven.org/maven2/com/asamm/). 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 --git a/gradle.properties b/gradle.properties index 6392c10..4871a81 100644 --- a/gradle.properties +++ b/gradle.properties @@ -23,8 +23,8 @@ GRADLE_NEXUS_STAGING = 0.30.0 LOCUS_LOGGER = 2.2 # Version -API_CODE = 98 -API_VERSION = 0.9.51 +API_CODE = 99 +API_VERSION = 0.9.52 # ANDROID SUPPORT LIBS # https://developer.android.com/topic/libraries/support-library/revisions.html diff --git a/locus-api-core/src/main/java/locus/api/objects/extra/GeoDataExtra.kt b/locus-api-core/src/main/java/locus/api/objects/extra/GeoDataExtra.kt index 46d8511..60ad5f0 100644 --- a/locus-api-core/src/main/java/locus/api/objects/extra/GeoDataExtra.kt +++ b/locus-api-core/src/main/java/locus/api/objects/extra/GeoDataExtra.kt @@ -1056,6 +1056,13 @@ class GeoDataExtra : Storable() { */ const val PAR_LOPOINTS_GEOMETRY = 314 + /** + * Container for LoMedia objects. + * + * "STRING" in ByteArray (JSON) + */ + const val PAR_LOMEDIA = 315 + //************************************************* // CALL BACK HELPERS //************************************************* diff --git a/locus-api-core/src/main/java/locus/api/objects/geocaching/GeocachingData.kt b/locus-api-core/src/main/java/locus/api/objects/geocaching/GeocachingData.kt index 69215cc..11f0a01 100644 --- a/locus-api-core/src/main/java/locus/api/objects/geocaching/GeocachingData.kt +++ b/locus-api-core/src/main/java/locus/api/objects/geocaching/GeocachingData.kt @@ -390,6 +390,11 @@ class GeocachingData : Storable() { */ val cacheUrlFull: String get() { + // handle lab caches + if (type == CACHE_TYPE_LAB_CACHE && cacheUrl.contains("adventurelab.page.link")) { + return cacheUrl + } + // if cache is from Groundspeak, return "coord.info" url if (source == CACHE_SOURCE_GEOCACHING_COM) { return "https://coord.info/$cacheID"