Truetime Android Versions Save

Android NTP time library. Get the true current time impervious to device clock time changes

3.5

2 years ago

Bug fixes

  • #136 - fix vulnerability around exported broadcast receiver (unblocking sdk 31 support) 🙏 @anjalsaneen

3.4

5 years ago
  • Improved caching (Provide custom caching implementation) 🙏 @TonyTangAndroid
  • new Wiki with better instructions and information around using the library
  • use Single instead of Flowable for init call apis
  • update example to demonstrate usage better
  • remove "support-annotations" dependency

3.3

6 years ago

Features

  • provide api for server response delay max (millis) #57
  • provide root delay and root dispersion as api inputs (millis) #57
  • propagate InvalidNtpServerResponseException properly with violated property values #57

Fixes

  • bump the default server response delay to 200

3.2

6 years ago

Features

  • upgrade to RxJava 2.x (Observables are now Flowables)

Fixes:

  • api for providing NTP resolved IPs directly (see #42 for details)
  • fix manifest merge fail (see #44)
  • synchronize accessors (see #56)

2.2

7 years ago

Fixes

  • fix #39
  • fix #40

2.1

7 years ago

Fixes:

  • coerce signed 16.16 int -> double value and compare in milliseconds

2.0

7 years ago

Features:

  • Full NTP implementation #24 (this was a significant change and warranted the change of the apis)
  • Disk persistence! cache TrueTime info to disk, so we avoid network requests calls (even across app kills). This requires the boot permission as TrueTime is invalid across device boots #15
  • Add flag for logging #16

Fixes:

  • More stringent checks with custom InvalidNtpServerResponseException thrown with reason for failure
  • the maxConcurrent option was incorrectly being used on flatMap. While limiting the number of parallel SNTP calls made, it was also basically ignoring rest of the provided NTP hosts.

1.5

7 years ago
  • expose retry count
  • (Rx) fix: first -> take(1)

1.3

7 years ago
  • clean Singleton implementation
  • add TrueTime.isInitialized()

1.1

7 years ago

api cleanup:

  • #3 - make TrueTime a Singleton
  • #5 - return Observable<Date> vs Observable<Void>

minor fixes & cleanup