Skip to content

Release 2.1.0

Latest

Choose a tag to compare

@androidseb25 androidseb25 released this 21 Oct 12:20

SecNtfy-Android v2.1.0

This release aligns the Android :secntfy library with the latest API updates from the Apple Swift Package Manager (SPM) version (SecNtfy-SPM), ensuring cross-platform feature parity, robust payload deserialization, and improved device registration.

What's Changed

  • Optional Device Metadata (NTFY_Devices): Updated all properties to be optional (Int?, Boolean?, String?) and added D_IsSimulator, D_IsDebug, and D_AppVersion to ensure robust decoding of legacy payloads.
  • Key Update API (updateKeys): Added updateKeys() (and deprecated UpdateKeys()) to generate a fresh 2048-bit RSA key pair and publish the new public key to the server (/Device/Update).
  • Automatic Device Metadata Population: Automatically populate D_IsSimulator (emulator detection), D_IsDebug (ApplicationInfo.FLAG_DEBUGGABLE), and D_AppVersion (PackageManager) during configure(), matching the Swift implementation.
  • API Endpoints & Error Handling: Added updateDevice API method and improved ApiResponse decoding with message handling.
  • Unit Tests: Added comprehensive test cases for optional device metadata parsing and successful key rotation (/Device/Update).

Usage (JitPack)

implementation("com.github.SecNtfy:SecNtfy-Android:2.1.0")