Releases: RedMadRobot/PINkman
Releases · RedMadRobot/PINkman
v1.3.2
v1.3.1
v1.3.0
v1.2.0
v1.1.3
v1.1.2
v1.1.1
Changelog
Added
- SAM interface to provide a better Java interop (#15)
Changed
- Migration to Kotlin DSL
- Update dependencies to the latest versions (including security-crypto 1.0.0-rc04 with Tink 1.5.0 support)
v1.1.0
PINkman meets the asynchronous world.
PINkman adds support for Kotlin Coroutines and RxJava 3. From this release on, you can call several methods in async manner:
fun createPinAsync(...): Completable
fun changePinAsync(...): Completable
fun isValidPinAsync(...): Single<Boolean>
// Coroutines
suspend fun createPinAsync(...)
suspend fun changePinAsync(...)
suspend fun isValidPinAsync(...): Boolean
So, you can refactor your CreatePinViewModel
as following:
class CreatePinViewModel @ViewModelInject constructor(private val pinkman: Pinkman) : ViewModel() {
val pinIsCreated = MutableLiveData<Boolean>()
fun createPin(pin: String) {
viewModelScope.launch {
pinkman.createPinAsync(pin)
pinIsCreated.postValue(true)
}
}
}
Changes
Added
v1.0.2
KeyGenParameterSpec hardening for pinkman core
Especially for Android P users additional security params was added to KeyGenParameterSpec