From eda8030ad01c4bf097651ce604e2ed5da92bdf13 Mon Sep 17 00:00:00 2001 From: Aditya Wasan Date: Sun, 31 Dec 2023 02:51:49 -0500 Subject: init: add passkeys module Signed-off-by: Aditya Wasan --- gradle/libs.versions.toml | 4 + passkeys/.gitignore | 1 + passkeys/build.gradle.kts | 30 ++++ passkeys/proguard-rules.pro | 21 +++ passkeys/src/main/AndroidManifest.xml | 12 ++ .../main/res/drawable/ic_launcher_background.xml | 170 +++++++++++++++++++++ .../main/res/drawable/ic_launcher_foreground.xml | 30 ++++ .../src/main/res/mipmap-anydpi-v26/ic_launcher.xml | 6 + .../res/mipmap-anydpi-v26/ic_launcher_round.xml | 6 + passkeys/src/main/res/mipmap-hdpi/ic_launcher.webp | Bin 0 -> 1404 bytes .../main/res/mipmap-hdpi/ic_launcher_round.webp | Bin 0 -> 2898 bytes passkeys/src/main/res/mipmap-mdpi/ic_launcher.webp | Bin 0 -> 982 bytes .../main/res/mipmap-mdpi/ic_launcher_round.webp | Bin 0 -> 1772 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.webp | Bin 0 -> 1900 bytes .../main/res/mipmap-xhdpi/ic_launcher_round.webp | Bin 0 -> 3918 bytes .../src/main/res/mipmap-xxhdpi/ic_launcher.webp | Bin 0 -> 2884 bytes .../main/res/mipmap-xxhdpi/ic_launcher_round.webp | Bin 0 -> 5914 bytes .../src/main/res/mipmap-xxxhdpi/ic_launcher.webp | Bin 0 -> 3844 bytes .../main/res/mipmap-xxxhdpi/ic_launcher_round.webp | Bin 0 -> 7778 bytes passkeys/src/main/res/values-night/themes.xml | 16 ++ passkeys/src/main/res/values/colors.xml | 10 ++ passkeys/src/main/res/values/strings.xml | 3 + passkeys/src/main/res/values/themes.xml | 16 ++ settings.gradle.kts | 2 + 24 files changed, 327 insertions(+) create mode 100644 passkeys/.gitignore create mode 100644 passkeys/build.gradle.kts create mode 100644 passkeys/proguard-rules.pro create mode 100644 passkeys/src/main/AndroidManifest.xml create mode 100644 passkeys/src/main/res/drawable/ic_launcher_background.xml create mode 100644 passkeys/src/main/res/drawable/ic_launcher_foreground.xml create mode 100644 passkeys/src/main/res/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 passkeys/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml create mode 100644 passkeys/src/main/res/mipmap-hdpi/ic_launcher.webp create mode 100644 passkeys/src/main/res/mipmap-hdpi/ic_launcher_round.webp create mode 100644 passkeys/src/main/res/mipmap-mdpi/ic_launcher.webp create mode 100644 passkeys/src/main/res/mipmap-mdpi/ic_launcher_round.webp create mode 100644 passkeys/src/main/res/mipmap-xhdpi/ic_launcher.webp create mode 100644 passkeys/src/main/res/mipmap-xhdpi/ic_launcher_round.webp create mode 100644 passkeys/src/main/res/mipmap-xxhdpi/ic_launcher.webp create mode 100644 passkeys/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp create mode 100644 passkeys/src/main/res/mipmap-xxxhdpi/ic_launcher.webp create mode 100644 passkeys/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp create mode 100644 passkeys/src/main/res/values-night/themes.xml create mode 100644 passkeys/src/main/res/values/colors.xml create mode 100644 passkeys/src/main/res/values/strings.xml create mode 100644 passkeys/src/main/res/values/themes.xml diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7af21254..025bcc38 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,6 +3,7 @@ agp = "8.4.1" androidxActivity = "1.9.0" bouncycastle = "1.78.1" coroutines = "1.8.1" +credentials = "1.3.0-alpha04" flowbinding = "1.2.0" hilt = "2.51.1" kotlin = "2.0.0" @@ -20,6 +21,9 @@ androidx-autofill = "androidx.autofill:autofill:1.3.0-alpha01" androidx-biometricKtx = "androidx.biometric:biometric-ktx:1.2.0-alpha05" androidx-constraintlayout = "androidx.constraintlayout:constraintlayout:2.2.0-alpha13" androidx-core-ktx = "androidx.core:core-ktx:1.13.1" +#noinspection CredentialDependency +androidx-credentials = { module = "androidx.credentials:credentials", version.ref = "credentials" } +androidx-credentials-play-services = { module = "androidx.credentials:credentials-play-services-auth", version.ref = "credentials" } androidx-documentfile = "androidx.documentfile:documentfile:1.1.0-alpha01" androidx-fragment-ktx = "androidx.fragment:fragment-ktx:1.7.1" androidx-lifecycle-common = { module = "androidx.lifecycle:lifecycle-common", version.ref = "lifecycle" } diff --git a/passkeys/.gitignore b/passkeys/.gitignore new file mode 100644 index 00000000..42afabfd --- /dev/null +++ b/passkeys/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/passkeys/build.gradle.kts b/passkeys/build.gradle.kts new file mode 100644 index 00000000..c2df2b85 --- /dev/null +++ b/passkeys/build.gradle.kts @@ -0,0 +1,30 @@ +/* + * Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved. + * SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception + */ +@file:Suppress("UnstableApiUsage") + +plugins { + id("com.github.android-password-store.android-library") + id("com.github.android-password-store.kotlin-android") + id("com.github.android-password-store.psl-plugin") +} + +android { + defaultConfig { + minSdk = 23 + consumerProguardFiles("consumer-rules.pro") + } + sourceSets { getByName("test") { resources.srcDir("src/main/assets") } } + namespace = "app.passwordstore.passkeys" +} + +dependencies { + implementation(libs.androidx.annotation) + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.credentials) + implementation(libs.androidx.credentials.play.services) + implementation(libs.kotlinx.coroutines.core) + implementation(libs.thirdparty.logcat) + testImplementation(libs.bundles.testDependencies) +} diff --git a/passkeys/proguard-rules.pro b/passkeys/proguard-rules.pro new file mode 100644 index 00000000..481bb434 --- /dev/null +++ b/passkeys/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/passkeys/src/main/AndroidManifest.xml b/passkeys/src/main/AndroidManifest.xml new file mode 100644 index 00000000..7a44af6e --- /dev/null +++ b/passkeys/src/main/AndroidManifest.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/passkeys/src/main/res/drawable/ic_launcher_background.xml b/passkeys/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..140f8294 --- /dev/null +++ b/passkeys/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/passkeys/src/main/res/drawable/ic_launcher_foreground.xml b/passkeys/src/main/res/drawable/ic_launcher_foreground.xml new file mode 100644 index 00000000..5c3bfcd6 --- /dev/null +++ b/passkeys/src/main/res/drawable/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/passkeys/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/passkeys/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..5ad9ce15 --- /dev/null +++ b/passkeys/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/passkeys/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/passkeys/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..5ad9ce15 --- /dev/null +++ b/passkeys/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/passkeys/src/main/res/mipmap-hdpi/ic_launcher.webp b/passkeys/src/main/res/mipmap-hdpi/ic_launcher.webp new file mode 100644 index 00000000..c209e78e Binary files /dev/null and b/passkeys/src/main/res/mipmap-hdpi/ic_launcher.webp differ diff --git a/passkeys/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/passkeys/src/main/res/mipmap-hdpi/ic_launcher_round.webp new file mode 100644 index 00000000..b2dfe3d1 Binary files /dev/null and b/passkeys/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ diff --git a/passkeys/src/main/res/mipmap-mdpi/ic_launcher.webp b/passkeys/src/main/res/mipmap-mdpi/ic_launcher.webp new file mode 100644 index 00000000..4f0f1d64 Binary files /dev/null and b/passkeys/src/main/res/mipmap-mdpi/ic_launcher.webp differ diff --git a/passkeys/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/passkeys/src/main/res/mipmap-mdpi/ic_launcher_round.webp new file mode 100644 index 00000000..62b611da Binary files /dev/null and b/passkeys/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ diff --git a/passkeys/src/main/res/mipmap-xhdpi/ic_launcher.webp b/passkeys/src/main/res/mipmap-xhdpi/ic_launcher.webp new file mode 100644 index 00000000..948a3070 Binary files /dev/null and b/passkeys/src/main/res/mipmap-xhdpi/ic_launcher.webp differ diff --git a/passkeys/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/passkeys/src/main/res/mipmap-xhdpi/ic_launcher_round.webp new file mode 100644 index 00000000..1b9a6956 Binary files /dev/null and b/passkeys/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ diff --git a/passkeys/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/passkeys/src/main/res/mipmap-xxhdpi/ic_launcher.webp new file mode 100644 index 00000000..28d4b77f Binary files /dev/null and b/passkeys/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ diff --git a/passkeys/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/passkeys/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp new file mode 100644 index 00000000..9287f508 Binary files /dev/null and b/passkeys/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ diff --git a/passkeys/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/passkeys/src/main/res/mipmap-xxxhdpi/ic_launcher.webp new file mode 100644 index 00000000..aa7d6427 Binary files /dev/null and b/passkeys/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ diff --git a/passkeys/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/passkeys/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp new file mode 100644 index 00000000..9126ae37 Binary files /dev/null and b/passkeys/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ diff --git a/passkeys/src/main/res/values-night/themes.xml b/passkeys/src/main/res/values-night/themes.xml new file mode 100644 index 00000000..f0a927fb --- /dev/null +++ b/passkeys/src/main/res/values-night/themes.xml @@ -0,0 +1,16 @@ + + + + \ No newline at end of file diff --git a/passkeys/src/main/res/values/colors.xml b/passkeys/src/main/res/values/colors.xml new file mode 100644 index 00000000..09837df6 --- /dev/null +++ b/passkeys/src/main/res/values/colors.xml @@ -0,0 +1,10 @@ + + + #FFBB86FC + #FF6200EE + #FF3700B3 + #FF03DAC5 + #FF018786 + #FF000000 + #FFFFFFFF + \ No newline at end of file diff --git a/passkeys/src/main/res/values/strings.xml b/passkeys/src/main/res/values/strings.xml new file mode 100644 index 00000000..485ed028 --- /dev/null +++ b/passkeys/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + passkeys + \ No newline at end of file diff --git a/passkeys/src/main/res/values/themes.xml b/passkeys/src/main/res/values/themes.xml new file mode 100644 index 00000000..4210ce7d --- /dev/null +++ b/passkeys/src/main/res/values/themes.xml @@ -0,0 +1,16 @@ + + + + \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts index d8f2b2b4..fe4dc826 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -96,6 +96,8 @@ include("passgen:diceware") include("passgen:random") +include("passkeys") + include("sentry-stub") include("ui:compose") -- cgit v1.2.3