Skip to content

Commit 9e8944b

Browse files
author
Michael Tran
committed
Merge branch 'bump-version-10.0.0' into 'master'
Bump version to 10.0.0 See merge request pace/mobile/android/pace-cloud-sdk!163
2 parents d0cd441 + 80f7757 commit 9e8944b

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ x.y.z Release notes (yyyy-MM-dd)
66
<!-- ### Fixes - Include, if needed -->
77
<!-- ### Internal - Include, if needed -->
88

9+
10+
10.0.0 Release notes (2021-09-16)
11+
=============================================================
12+
913
### Breaking changes
1014

1115
* Move everything that belongs to the GeoAPI from `AppKit`/`API` to `POIKit`: `AppKit.requestCofuGasStations(...)` moved to `POIKit.requestCofuGasStations(...)` and `AppKit.isPoiInRange(...)` moved to `POIKit.isPoiInRange(...)`

buildSrc/src/main/java/Versions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
object Versions {
22

33
const val DEFAULT_VERSION_CODE_LIBRARY = 1
4-
const val DEFAULT_VERSION_NAME_LIBRARY = "9.3.1"
4+
const val DEFAULT_VERSION_NAME_LIBRARY = "10.0.0"
55

66
const val COMPILE_SDK = 30
77
const val TARGET_SDK = 30

library/src/main/java/cloud/pace/sdk/poikit/database/POIKitDatabase.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@ abstract class POIKitDatabase : RoomDatabase() {
4545
lat /= geometry.size
4646
lon /= geometry.size
4747

48-
val id = cursor.getString(cursor.getColumnIndex("id"))
49-
database.execSQL("UPDATE GasStation SET latitude = $lat, longitude = $lon WHERE id = '$id'")
48+
val idIndex = cursor.getColumnIndex("id")
49+
if (idIndex >= 0) {
50+
val id = cursor.getString(idIndex)
51+
database.execSQL("UPDATE GasStation SET latitude = $lat, longitude = $lon WHERE id = '$id'")
52+
}
5053
}
5154
}
5255
}

0 commit comments

Comments
 (0)