Skip to content

Commit

Permalink
Switch to a new ULID library (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m authored Nov 7, 2023
1 parent 9f2a03d commit a1abaf4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion org.thepalaceproject.android.platform
3 changes: 1 addition & 2 deletions simplified-app-palace/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ dependencies {
implementation(libs.androidx.viewpager)
implementation(libs.androidx.viewpager2)
implementation(libs.androidx.webkit)
implementation(libs.azam.ulidj)
implementation(libs.firebase.analytics)
implementation(libs.firebase.annotations)
implementation(libs.firebase.common)
Expand Down Expand Up @@ -616,6 +617,4 @@ dependencies {
implementation(libs.truevfs.driver.zip)
implementation(libs.truevfs.kernel.impl)
implementation(libs.truevfs.kernel.spec)
implementation(libs.ulid.kotlin)
implementation(libs.ulid.kotlin.jvm)
}
3 changes: 1 addition & 2 deletions simplified-books-time-tracking/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ dependencies {
implementation(libs.rxandroid2)
implementation(libs.rxjava2)
implementation(libs.slf4j)
implementation(libs.ulid.kotlin)
implementation(libs.ulid.kotlin.jvm)
implementation(libs.azam.ulidj)
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.nypl.simplified.books.time.tracking

import android.content.Context
import io.azam.ulidj.ULID
import io.reactivex.Observable
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.disposables.Disposable
Expand All @@ -11,7 +12,6 @@ import org.librarysimplified.audiobook.api.PlayerEvent
import org.nypl.simplified.accounts.api.AccountID
import org.nypl.simplified.profiles.controller.api.ProfilesControllerType
import org.slf4j.LoggerFactory
import ulid.ULID
import java.io.File
import java.net.URI
import java.util.concurrent.TimeUnit
Expand Down Expand Up @@ -183,7 +183,7 @@ class TimeTrackingService(

private fun createTimeTrackingEntry() {
currentTimeTrackingEntry = TimeTrackingEntry(
id = ULID.randomULID(),
id = ULID.random(),
duringMinute = dateFormatter.print(DateTime.now()),
secondsPlayed = 0
)
Expand Down
3 changes: 1 addition & 2 deletions simplified-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,7 @@ val dependencyObjects = listOf(
libs.truevfs.driver.zip,
libs.truevfs.kernel.impl,
libs.truevfs.kernel.spec,
libs.ulid.kotlin,
libs.ulid.kotlin.jvm,
libs.azam.ulidj,
)

dependencies {
Expand Down

0 comments on commit a1abaf4

Please sign in to comment.