Commit 87b07ad
committed
fix: remaining android-maps-utils 5.1.1 API breaks
Two more spots the compiler hadn't reached yet in the previous fix pass:
- GeoJsonPointStyle (Kotlin, android-maps-utils 5.1.1) exposes
isDraggable()/setDraggable(), getTitle()/setTitle(),
getSnippet()/setSnippet() as plain functions, not var properties,
so app-utils-ktx/GeoJSON.kt's `pointStyle.isDraggable = true` style
assignments don't compile; switched to explicit setter calls.
- KmlContainer.getProperty() now returns String? (nullable); KML.kt
passed it straight to Log.i's non-null second parameter, added !!
(guarded by the existing hasProperty() check just above it).
- The JSONObject-argument GeoJsonLayer constructor is now annotated
@throws(JSONException::class) in Kotlin, which surfaces in Java as
a checked exception. snippets/app-utils (Java)'s
addGeoJsonLayerJsonObject() didn't declare it; added `throws
JSONException` to match its sibling method's existing pattern.1 parent 5b87f73 commit 87b07ad
3 files changed
Lines changed: 5 additions & 5 deletions
File tree
- snippets
- app-utils-ktx/src/main/java/com/example/app_utils_ktx
- app-utils/src/main/java/com/example/app_utils
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
0 commit comments