Skip to content

Commit

Permalink
Merge branch 'main' into feat/common/snapped-course
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Sep 11, 2024
2 parents b78ace5 + 622a787 commit 90d6402
Show file tree
Hide file tree
Showing 26 changed files with 309 additions and 194 deletions.
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 2
updates:
- package-ecosystem: cargo
directory: /common
schedule:
interval: monthly
- package-ecosystem: swift
directory: /
schedule:
interval: monthly
- package-ecosystem: gradle
directory: /android
schedule:
interval: monthly
- package-ecosystem: npm
directory: /web
schedule:
interval: monthly
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ if useLocalFramework {
path: "./common/target/ios/libferrostar-rs.xcframework"
)
} else {
let releaseTag = "0.10.0"
let releaseChecksum = "e4eafc2331e5a6307cdd6257fe73ae8a977fca119938788d976d0218cfbfc5a8"
let releaseTag = "0.10.1"
let releaseChecksum = "cc959191f3d066f628264c103e5ea0c3544664ffd0e61907e082d7f1a4d8c5d2"
binaryTarget = .binaryTarget(
name: "FerrostarCoreRS",
url: "https://github.com/stadiamaps/ferrostar/releases/download/\(releaseTag)/libferrostar-rs.xcframework.zip",
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ plugins {

allprojects {
group = "com.stadiamaps.ferrostar"
version = "0.10.0"
version = "0.10.1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class LocalizedDistanceFormatter(
DecimalPrecision.NEAREST_TENTH
}
} else {
// Longer distances: use m
// Shorter distances: use m
unit = MeasureUnit.METER
distance =
if (distanceInMeters > 100) {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions android/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
[versions]
agp = "8.5.2"
kotlin = "2.0.0"
agp = "8.6.0"
kotlin = "2.0.20"
cargo-ndk = "0.3.4"
ktfmt = "0.19.0"
androidx-lifecycle = "2.8.4"
ktfmt = "0.20.1"
androidx-lifecycle = "2.8.5"
paparazzi = "1.3.4"
desugar_jdk_libs = "2.0.4"
ktx = "1.13.1"
kotlinx-coroutines = "1.8.1"
kotlinx-datetime = "0.6.0"
kotlinx-datetime = "0.6.1"
androidx-appcompat = "1.7.0"
androidx-activity-compose = "1.9.1"
compose = "2024.06.00"
androidx-activity-compose = "1.9.2"
compose = "2024.09.00"
okhttp = "4.12.0"
moshi = "1.15.1"
maplibre-compose = "0.0.16"
junit = "4.13.2"
junitVersion = "1.2.1"
junitCompose = "1.6.8"
junitCompose = "1.7.0"
espressoCore = "3.6.1"
okhttp-mock = "2.0.0"
mavenPublish = "0.29.0"
Expand Down
8 changes: 5 additions & 3 deletions apple/Sources/UniFFI/ferrostar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ private extension ForeignBytes {

private extension Data {
init(rustBuffer: RustBuffer) {
// TODO: This copies the buffer. Can we read directly from a
// Rust buffer?
self.init(bytes: rustBuffer.data!, count: Int(rustBuffer.len))
self.init(
bytesNoCopy: rustBuffer.data!,
count: Int(rustBuffer.len),
deallocator: .none
)
}
}

Expand Down
Loading

0 comments on commit 90d6402

Please sign in to comment.