From 7174dc12655dfd4e78a8fb1b67d27f215e86a189 Mon Sep 17 00:00:00 2001 From: Michael Feher Date: Tue, 27 Aug 2024 18:39:40 -0400 Subject: [PATCH] docs: add Android 14 service guide --- docs/astro.config.mjs | 24 +-- .../android/provider-service/authenticate.md | 13 -- .../android/provider-service/introduction.mdx | 163 ++++-------------- .../android/provider-service/register.md | 18 -- 4 files changed, 33 insertions(+), 185 deletions(-) delete mode 100644 docs/src/content/docs/clients/android/provider-service/authenticate.md delete mode 100644 docs/src/content/docs/clients/android/provider-service/register.md diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 389d998..38aeb3a 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -120,29 +120,7 @@ export default defineConfig({ }, { label: "Provider Service", - collapsed: true, - items: [ - { - label: "Introduction", - link: "/clients/android/provider-service/introduction", - }, - { - label: "Create Passkey", - link: "/clients/android/provider-service/create-passkey", - badge: { - text: "TODO", - variant: "danger" - }, - }, - { - label: "Get Passkey", - link: "/clients/android/provider-service/get-passkey", - badge: { - text: "TODO", - variant: "danger" - }, - } - ], + link: "/clients/android/provider-service/introduction", badge: { text: "^14", variant: "danger" diff --git a/docs/src/content/docs/clients/android/provider-service/authenticate.md b/docs/src/content/docs/clients/android/provider-service/authenticate.md deleted file mode 100644 index a9f70d7..0000000 --- a/docs/src/content/docs/clients/android/provider-service/authenticate.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: "Android 14: Authenticate" ---- - -```kotlin -// MainActivity.kt -val request = PendingIntentHandler.retrieveProviderCreateCredentialRequest(intent) -if (request.callingRequest is CreatePublicKeyCredentialRequest) { - val result = viewModel.processCreatePasskey(this@CreatePasskeyActivity, request) -} else { - val text = resources.getString(R.string.get_passkey_error) -} -``` diff --git a/docs/src/content/docs/clients/android/provider-service/introduction.mdx b/docs/src/content/docs/clients/android/provider-service/introduction.mdx index a4751dc..5e77402 100644 --- a/docs/src/content/docs/clients/android/provider-service/introduction.mdx +++ b/docs/src/content/docs/clients/android/provider-service/introduction.mdx @@ -2,7 +2,7 @@ title: "Android: Provider Service" --- -import {Aside} from '@astrojs/starlight/components'; +import { Aside, CardGrid, LinkCard } from "@astrojs/starlight/components";