Skip to content

Commit

Permalink
- add: GeocachingData.cacheUrlFull support for Lab caches
Browse files Browse the repository at this point in the history
- add: `GeoDataExtra.PAR_LOMEDIA` as container for LoMedia objects
  • Loading branch information
menion committed Mar 25, 2024
1 parent 09bbd8e commit a9398e0
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
//*************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a9398e0

Please sign in to comment.