Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,39 @@
# Change Log
Breaking changes and additions to Onfleet SDK will be documented in this file.

## [0.13.0]

Breaking changes to API

### Added Features

- PIN verification requirement on task completion
- Geofence enforcement (warn / block) on task completion
- Bulk pick-up task linking (BULK_PICK_UP child tasks)
- Encrypted media file handling on CoreManager

### Added

- PinVerification model added (`PinVerification` with hash + salt)
Comment thread
polivmi1 marked this conversation as resolved.
- Task now exposes `pinVerification` (PinVerification)
- Requirements now exposes `pin` (RequirementState) completion requirement
- TaskCompletionDetails now exposes `pinVerified`
- GeofenceConfig model added (`GeofenceConfig`: requirementLevel, radiusMeters, taskTypes)
- GeofenceRequirementLevel enum added (`OFF`, `WARN`, `BLOCK`)
- GeofenceAttempt model added (`GeofenceAttempt`: type, location, timestamp)
- GeofenceAttemptType enum added (`WARN`, `BLOCK`, with `fromCode()`)
- Organization now exposes `geofence` (GeofenceConfig) settings
- CompletedTask now exposes `geofenceAttempts` and `completedWithGeofenceWarning`
- TaskCompletionDetails now exposes `geofenceAttempts`, `completedWithGeofenceWarning`, `location`
- SyncStatus complete-error variants now carry `geofenceAttempts`
- BulkTask model added (`BulkTask`: taskType, taskId, shortId, orderId, linkedTaskRecipient, linkedTaskDestination)
- Task now exposes `bulkTasks` (List<BulkTask>)
- CoreManager has new media file methods: `saveMediaFile()`, `openMediaFileForPreview()`, `encryptInputStreamToFile()`, `deleteMediaFile()`, `isEncryptedMediaFile()`

### Changed

- Task/CompletedTask/Organization/Requirements/TaskCompletionDetails public constructor signatures expanded with the fields above (callers passing positional args must update)

## [0.12.0]

Breaking changes to API
Expand Down
22 changes: 11 additions & 11 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ plugins {
}

android {
compileSdk = 36
compileSdk = 37
buildToolsVersion = "36.0.0"

defaultConfig {
applicationId = "com.onfleet.sdk.onfleetclientexample"
minSdk = 26
targetSdk = 36
versionCode = 1
versionName = "0.12.0"
versionName = "0.13.0"
}
buildTypes {
release {
Expand All @@ -36,20 +36,20 @@ android {
}

dependencies {
implementation("com.onfleet:driver:0.12.0")
implementation("com.onfleet:driver:0.13.0")
implementation("androidx.appcompat:appcompat:1.7.1")
implementation("org.jetbrains.kotlin:kotlin-stdlib:2.1.0")
implementation("org.jetbrains.kotlin:kotlin-stdlib:2.4.0")
implementation("androidx.exifinterface:exifinterface:1.4.2")
implementation(platform("com.google.firebase:firebase-bom:34.11.0"))
implementation(platform("com.google.firebase:firebase-bom:34.16.0"))
implementation("com.google.firebase:firebase-messaging")
implementation("com.jakewharton.timber:timber:5.0.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2")
implementation("androidx.compose.ui:ui:1.10.5")
implementation("androidx.compose.ui:ui-tooling:1.10.5")
implementation("androidx.compose.foundation:foundation:1.10.5")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.11.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.11.0")
implementation("androidx.compose.ui:ui:1.11.4")
implementation("androidx.compose.ui:ui-tooling:1.11.4")
implementation("androidx.compose.foundation:foundation:1.11.4")
implementation("androidx.activity:activity-compose:1.13.0")
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.10.0")
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.11.0")
implementation("androidx.compose.material3:material3:1.4.0")
implementation("com.google.accompanist:accompanist-permissions:0.37.3")
}
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ class MainViewModel : ViewModel() {
signatureText = null,
attestationAge = null,
customRequirements = null,
pinVerified = null,
),
)
) {
Expand Down
10 changes: 5 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

plugins {
id("com.android.application") version "9.1.0" apply false
id("com.android.library") version "9.1.0" apply false
id("com.google.gms.google-services") version "4.4.4" apply false
id("org.jetbrains.kotlin.plugin.compose") version "2.1.0" apply false
id("org.jetbrains.kotlin.plugin.parcelize") version "2.1.0" apply false
id("com.android.application") version "9.2.1" apply false
id("com.android.library") version "9.2.1" apply false
id("com.google.gms.google-services") version "4.5.0" apply false
id("org.jetbrains.kotlin.plugin.compose") version "2.4.0" apply false
id("org.jetbrains.kotlin.plugin.parcelize") version "2.4.0" apply false
}

2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-all.zip
Loading