SmartAuth v2 SDK extensions for both Swift and Kotlin platform SDKs: Swift (BLAuthClient.swift): - Social login, MFA, passkeys, providers, devices, step-up, login history - New types: BLMfaChallenge, BLTotpSetup, BLMfaStatus, BLAuthProvider, etc. - BLAuthState: added .mfaRequired case Swift (BLAuthUI.swift) — 4 reusable views: - BLLoginView, BLMfaChallengeView, BLPasskeyView, BLStepUpSheet Kotlin (BLAuthClient.kt): - Social login, MFA, providers, devices, step-up, login history - MFA challenge detection in login(), encodeMap() helper Kotlin (BLPasskeyManager.kt) — Credential Manager passkey wrapper Kotlin (BLAuthUI.kt) — 5 Compose screens matching Swift BLAuthUI Kotlin build.gradle.kts — Credential Manager dependencies Tests: Swift (6 methods), Kotlin (5 methods)
62 lines
1.9 KiB
Plaintext
62 lines
1.9 KiB
Plaintext
plugins {
|
|
id("com.android.library") version "8.7.3"
|
|
id("org.jetbrains.kotlin.android") version "2.1.0"
|
|
id("org.jetbrains.kotlin.plugin.serialization") version "2.1.0"
|
|
}
|
|
|
|
android {
|
|
namespace = "com.bytelyst.platform"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
minSdk = 26
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
compilerOptions {
|
|
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
|
|
}
|
|
}
|
|
|
|
group = "com.bytelyst.platform"
|
|
version = "0.1.0"
|
|
|
|
dependencies {
|
|
// HTTP
|
|
api("com.squareup.okhttp3:okhttp:4.12.0")
|
|
|
|
// Serialization
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3")
|
|
|
|
// Coroutines
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
|
|
|
|
// Android
|
|
implementation("androidx.security:security-crypto:1.0.0")
|
|
implementation("androidx.biometric:biometric:1.1.0")
|
|
implementation("androidx.core:core-ktx:1.15.0")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")
|
|
|
|
// Credential Manager (Passkeys)
|
|
implementation("androidx.credentials:credentials:1.5.0-beta01")
|
|
implementation("androidx.credentials:credentials-play-services-auth:1.5.0-beta01")
|
|
|
|
// Testing
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.4")
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.4")
|
|
testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
|
|
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0")
|
|
testImplementation("org.robolectric:robolectric:4.14.1")
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
}
|