Android Mobile SDK v1.1.0
This release includes new features such as Q2Utils.openUIModule()
and
Q2Utils.requestPermission()
for improved module access and permission handling.
Compatibility
Name | Version | Implementation |
---|---|---|
Compile SDK | 34 | compileSdk = q2libs.versions.compileSdk.get() |
Target SDK | 34 | targetSdk = q2libs.versions.targetSdk.get() |
Min SDK | 29 | minSdk = q2libs.versions.minSdk.get() |
Android Gradle Plugin | 8.2.2 | 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) |
New Features
Q2Utils.openUIModule()
A new helper function to open a UIModule from anywhere.
Usage Example:
fun openUIModule(
moduleId: String,
moduleData: String = "{}",
sdkUtils: SdkUtils,
callback: ValueCallback<String>
)
Q2Utils.requestPermission()
A function to request permissions from the user.
This is a suspend function, so it must be called from a coroutine.
Usage Example:
suspend fun requestPermission(
activity: Activity?,
permission: String,
rationale: Rationale? = null
)