Android Mobile SDK v1.0.0
This release introduces a breaking change to sdkUtils.getCurrentUserId()
, which now
requires a callback instead of returning a string.
Compatibility
Name | Version | Implementation |
---|---|---|
Compile SDK | 34 | compileSdk = q2libs.versions.compileSdk.get() |
Target SDK | 34 | targetSdk = q2libs.versions.targetSdk.get() |
Min SDK | 28 | minSdk = q2libs.versions.minSdk.get() |
Android Gradle Plugin | 8.1.1 | id(q2libs.plugins.android.application) |
Kotlin Gradle Plugin | 2.0.20 | id(q2libs.plugins.kotlin.android) |
Google Services Plugin | 4.3.15 | id(q2libs.plugins.google.services) |
Changes
sdkUtils.getCurrentUserId()
now uses a callback
The sdkUtils.getCurrentUserId()
function no longer returns a string. Instead, it now
requires a callback to return the pushUserId
.
Differences:
-abstract fun getCurrentUserId(): String?
+abstract fun getCurrentUserId(callback: GetUserIdCallback)
interface SDKPushUtils {
val pushRegistrationToken: String?
val deviceNickname: String?
val isEnabledForSAC: Boolean
val isPushEnabled: Boolean
val isPushEnabledAtOS: Boolean
- val pushUsername: String?
+ val pushUserId: Int
}