Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ kotlin.code.style=official
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true

wallet.versionCode = 17
wallet.versionName = 0.0.17=multi-profile-preview
wallet.versionCode = 18
wallet.versionName = 0.0.17-platform-passkey-provider-preview

6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ logback = "3.0.0"
test-json = "20231013"
coroutines = "1.10.1"
androidxtest = "1.6.1"
softauth = "fix~rp-origin-SNAPSHOT"
ktlint = "12.2.0"
gps-ic = "16.0.0-alpha06"
registryDigitalcredentialsMdoc = "1.0.0-alpha01"
datastore = "1.1.7"
cbor = "4.5.6"

[libraries]
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
Expand Down Expand Up @@ -48,12 +48,12 @@ logback = { group = "com.github.tony19", name = "logback-android", version.ref =
test-json = { group = "org.json", name = "json", version.ref = "test-json" }
androidx-test-runner = { group = "androidx.test", name = "runner", version.ref = "androidxtest" }
androidx-test-rules = { group = "androidx.test", name = "rules", version.ref = "androidxtest" }
softauth = { group = "com.github.yubicolabs", name = "softauthn", version.ref = "softauth" }
playservices-identity-credentials = { group = "com.google.android.gms", name = "play-services-identity-credentials", version.ref = "gps-ic" }
androidx-registry-digitalcredentials-mdoc = { group = "androidx.credentials.registry", name = "registry-digitalcredentials-mdoc", version.ref = "registryDigitalcredentialsMdoc" }
androidx-registry-provider = { group = "androidx.credentials.registry", name = "registry-provider", version.ref = "registryDigitalcredentialsMdoc" }
androidx-registry-provider-play-services = { group = "androidx.credentials.registry", name = "registry-provider-play-services", version.ref = "registryDigitalcredentialsMdoc" }
androidx-datastore-preferences = { group = "androidx.datastore", name = "datastore-preferences", version.ref = "datastore"}
androidx-datastore-preferences = { group = "androidx.datastore", name = "datastore-preferences", version.ref = "datastore" }
cbor = { group = "com.upokecenter", name = "cbor", version.ref = "cbor" }

[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
Expand Down
2 changes: 1 addition & 1 deletion wrapper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ dependencies {
implementation(libs.yubikit.fido)
implementation(libs.logback)
implementation(libs.androidx.datastore.preferences)
implementation(libs.cbor)

// digital credentials api
implementation(libs.playservices.identity.credentials)
implementation(libs.androidx.registry.provider)
implementation(libs.androidx.registry.provider.play.services)
implementation(libs.androidx.registry.digitalcredentials.mdoc)
implementation(libs.softauth)

testImplementation(libs.junit)
testImplementation(libs.test.json)
Expand Down
6 changes: 2 additions & 4 deletions wrapper/src/main/java/io/yubicolabs/wwwwallet/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ import io.yubicolabs.wwwwallet.bridging.DebugMenuHandler
import io.yubicolabs.wwwwallet.bridging.WalletJsBridge
import io.yubicolabs.wwwwallet.bridging.WalletJsBridge.Companion.JAVASCRIPT_BRIDGE_NAME
import io.yubicolabs.wwwwallet.credentials.AndroidContainer
import io.yubicolabs.wwwwallet.credentials.ContainerYubico
import io.yubicolabs.wwwwallet.credentials.SoftwareContainer
import io.yubicolabs.wwwwallet.credentials.YubicoContainer
import io.yubicolabs.wwwwallet.logging.YOLOLogger
import io.yubicolabs.wwwwallet.webkit.WalletWebChromeClient
import io.yubicolabs.wwwwallet.webkit.WalletWebViewClient
Expand Down Expand Up @@ -77,9 +76,8 @@ class MainActivity : ComponentActivity() {
WalletJsBridge(
webView,
Dispatchers.Main,
ContainerYubico(activity = this),
YubicoContainer(activity = this),
AndroidContainer(context = this),
SoftwareContainer(applicationContext),
BleClientHandler(activity = this),
BleServerHandler(activity = this),
if (BuildConfig.DEBUG) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class MainViewModel : ViewModel() {
when {
value.startsWith("https://") -> value
value.startsWith("http://") -> value.replace("http", "https")
value.first().isLetter() -> "https://$value" // forgot the https?
value.isNotEmpty() && value.first().isLetter() -> "https://$value" // forgot the https?
else -> value // for direct ip addresses
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class WalletJsBridge(
private val dispatcher: CoroutineDispatcher,
private val securityKeyCredentialsContainer: Container,
private val clientDeviceCredentialsContainer: Container,
private val emulatedCredentialsContainer: Container,
private val bleClientHandler: BleClientHandler,
private val bleServerHandler: BleServerHandler,
private val debugMenuHandler: DebugMenuHandler?,
Expand All @@ -47,8 +46,6 @@ class WalletJsBridge(
"security-key" -> securityKeyCredentialsContainer
"client-device" -> clientDeviceCredentialsContainer
"hybrid" -> null // explicitly not supported
// not in spec: added for testing
"emulator" -> emulatedCredentialsContainer
else -> {
// error case: unknown hint.
YOLOLogger.e(tagForLog, "Hint '$hint' not supported. Ignoring.")
Expand Down
Loading