Skip to content

Commit 63ae530

Browse files
committed
- fix: incorrect deserialization of HotSpot class
1 parent 2a63170 commit 63ae530

File tree

6 files changed

+11
-84
lines changed

6 files changed

+11
-84
lines changed

Diff for: .idea/gradle.xml

-21
This file was deleted.

Diff for: .idea/misc.xml

-56
This file was deleted.

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ 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.61] - 2024-10-03
8+
### Fixed
9+
- incorrectly deserialized custom `HotSpot`
10+
711
## [0.9.60] - 2024-09-19
812
### Changed
913
- rename of `HotSpot` object (from `KmlVec2`) & optimization in it's usage

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.60**
19+
Latest stable LT version: **0.9.61**
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 = 107
27-
API_VERSION = 0.9.60
26+
API_CODE = 108
27+
API_VERSION = 0.9.61
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/styles/HotSpot.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ data class HotSpot(
104104

105105
// return custom hotStop
106106
return HotSpot(
107-
x = dr.readDouble(),
108-
xUnits = Units.values()[dr.readInt()],
109-
y = dr.readDouble(),
110-
yUnits = Units.values()[dr.readInt()]
107+
x = x,
108+
xUnits = xUnits,
109+
y = y,
110+
yUnits = yUnits
111111
)
112112
}
113113

0 commit comments

Comments
 (0)