diff --git a/android/.idea/appInsightsSettings.xml b/android/.idea/appInsightsSettings.xml
new file mode 100644
index 0000000..624203b
--- /dev/null
+++ b/android/.idea/appInsightsSettings.xml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android/.idea/codeStyles/Project.xml b/android/.idea/codeStyles/Project.xml
index ace66b2..6a6f4b9 100644
--- a/android/.idea/codeStyles/Project.xml
+++ b/android/.idea/codeStyles/Project.xml
@@ -6,17 +6,6 @@
-
-
-
diff --git a/android/.idea/compiler.xml b/android/.idea/compiler.xml
index fb7f4a8..b589d56 100644
--- a/android/.idea/compiler.xml
+++ b/android/.idea/compiler.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/android/.idea/deploymentTargetDropDown.xml b/android/.idea/deploymentTargetDropDown.xml
new file mode 100644
index 0000000..5296be1
--- /dev/null
+++ b/android/.idea/deploymentTargetDropDown.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android/.idea/gradle.xml b/android/.idea/gradle.xml
index 9876a12..54f23ef 100644
--- a/android/.idea/gradle.xml
+++ b/android/.idea/gradle.xml
@@ -4,10 +4,8 @@
diff --git a/android/.idea/kotlinc.xml b/android/.idea/kotlinc.xml
new file mode 100644
index 0000000..9a55c2d
--- /dev/null
+++ b/android/.idea/kotlinc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android/.idea/migrations.xml b/android/.idea/migrations.xml
new file mode 100644
index 0000000..f8051a6
--- /dev/null
+++ b/android/.idea/migrations.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android/.idea/misc.xml b/android/.idea/misc.xml
index 6199cc2..55c0ec2 100644
--- a/android/.idea/misc.xml
+++ b/android/.idea/misc.xml
@@ -1,6 +1,6 @@
-
+
diff --git a/android/app-start/build.gradle b/android/app-start/build.gradle
index 9874334..4266f74 100644
--- a/android/app-start/build.gradle
+++ b/android/app-start/build.gradle
@@ -20,35 +20,46 @@ apply plugin: 'kotlin-kapt'
apply plugin: 'dagger.hilt.android.plugin'
android {
- compileSdkVersion 30
+ namespace 'com.example.android.fido2'
+ compileSdk 33
defaultConfig {
applicationId 'com.example.android.fido2'
- minSdkVersion 21
- targetSdkVersion 30
+ minSdk 21
+ targetSdk 33
versionCode 1
versionName '1.0'
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
vectorDrawables.useSupportLibrary = true
- buildConfigField 'String', 'API_BASE_URL', "\"${getProperty('host')}/auth\""
- resValue 'string', 'host', getProperty('host')
+ buildConfigField 'String', 'API_BASE_URL', "\"https://webauthn-codelab.glitch.me/auth\""
+ resValue 'string', 'host', 'https://webauthn-codelab.glitch.me'
resValue 'string', 'asset_statements', """
[{
- "include": "${getProperty('host')}/.well-known/assetlinks.json"
+ "include": "https://webauthn-codelab.glitch.me/.well-known/assetlinks.json"
}]
"""
}
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
+ signingConfigs {
+ debug {
+ storeFile file('../debug.jks')
+ storePassword 'android'
+ keyAlias 'androiddebugkey'
+ keyPassword 'android'
+ }
}
- kotlinOptions {
- jvmTarget = '1.8'
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_17
+ targetCompatibility JavaVersion.VERSION_17
}
buildFeatures {
dataBinding true
+ buildConfig = true
}
buildTypes {
+ debug {
+ signingConfig signingConfigs.debug
+ }
release {
+ signingConfig signingConfigs.debug
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
@@ -58,46 +69,46 @@ android {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
- implementation 'com.google.android.gms:play-services-fido:19.0.0-beta'
+ implementation 'com.google.android.gms:play-services-fido:20.0.1'
- implementation 'androidx.appcompat:appcompat:1.3.1'
- implementation 'androidx.fragment:fragment-ktx:1.3.6'
+ implementation 'androidx.appcompat:appcompat:1.6.1'
+ implementation 'androidx.fragment:fragment-ktx:1.6.0'
- implementation 'androidx.core:core-ktx:1.6.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
+ implementation 'androidx.core:core-ktx:1.10.1'
+ implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation "androidx.datastore:datastore-preferences:1.0.0"
- def coroutine_version = '1.5.0'
+ def coroutine_version = '1.7.1'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutine_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutine_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-play-services:$coroutine_version"
- def hilt_version = '2.38.1'
+ def hilt_version = '2.47'
implementation "com.google.dagger:hilt-android:$hilt_version"
kapt "com.google.dagger:hilt-compiler:$hilt_version"
kapt "androidx.hilt:hilt-compiler:1.0.0"
- def lifecycle_version = '2.4.0-alpha03'
+ def lifecycle_version = '2.6.1'
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
- testImplementation 'androidx.arch.core:core-testing:2.1.0'
+ testImplementation 'androidx.arch.core:core-testing:2.2.0'
- implementation 'com.google.android.material:material:1.4.0'
+ implementation 'com.google.android.material:material:1.9.0'
- def okhttp_version = '4.9.0'
+ def okhttp_version = '4.11.0'
implementation "com.squareup.okhttp3:okhttp:$okhttp_version"
implementation "com.squareup.okhttp3:logging-interceptor:$okhttp_version"
implementation "ru.gildor.coroutines:kotlin-coroutines-okhttp:1.0"
testImplementation 'junit:junit:4.13.2'
- androidTestImplementation 'androidx.test:runner:1.4.0'
- androidTestImplementation 'androidx.test:rules:1.4.0'
+ androidTestImplementation 'androidx.test:runner:1.5.2'
+ androidTestImplementation 'androidx.test:rules:1.5.0'
- androidTestImplementation 'androidx.test.ext:junit:1.1.3'
- androidTestImplementation 'androidx.test.ext:truth:1.4.0'
- androidTestImplementation 'com.google.truth:truth:1.1.2'
+ androidTestImplementation 'androidx.test.ext:junit:1.1.5'
+ androidTestImplementation 'androidx.test.ext:truth:1.5.0'
+ androidTestImplementation 'com.google.truth:truth:1.1.3'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
diff --git a/android/app-start/src/main/AndroidManifest.xml b/android/app-start/src/main/AndroidManifest.xml
index 2744acd..8a01677 100644
--- a/android/app-start/src/main/AndroidManifest.xml
+++ b/android/app-start/src/main/AndroidManifest.xml
@@ -37,6 +37,7 @@
diff --git a/android/app-start/src/main/java/com/example/android/fido2/api/AuthApi.kt b/android/app-start/src/main/java/com/example/android/fido2/api/AuthApi.kt
index 1e4cc23..2670c86 100644
--- a/android/app-start/src/main/java/com/example/android/fido2/api/AuthApi.kt
+++ b/android/app-start/src/main/java/com/example/android/fido2/api/AuthApi.kt
@@ -401,7 +401,7 @@ class AuthApi @Inject constructor(
return PublicKeyCredentialUserEntity(
id!!.decodeBase64(),
name!!,
- null, // icon
+ "", // icon
displayName
)
}
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 1443938..4266f74 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -20,11 +20,12 @@ apply plugin: 'kotlin-kapt'
apply plugin: 'dagger.hilt.android.plugin'
android {
- compileSdkVersion 30
+ namespace 'com.example.android.fido2'
+ compileSdk 33
defaultConfig {
applicationId 'com.example.android.fido2'
- minSdkVersion 21
- targetSdkVersion 30
+ minSdk 21
+ targetSdk 33
versionCode 1
versionName '1.0'
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
@@ -46,14 +47,12 @@ android {
}
}
compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = '1.8'
+ sourceCompatibility JavaVersion.VERSION_17
+ targetCompatibility JavaVersion.VERSION_17
}
buildFeatures {
dataBinding true
+ buildConfig = true
}
buildTypes {
debug {
@@ -70,46 +69,46 @@ android {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
- implementation 'com.google.android.gms:play-services-fido:19.0.0-beta'
+ implementation 'com.google.android.gms:play-services-fido:20.0.1'
- implementation 'androidx.appcompat:appcompat:1.3.1'
- implementation 'androidx.fragment:fragment-ktx:1.3.6'
+ implementation 'androidx.appcompat:appcompat:1.6.1'
+ implementation 'androidx.fragment:fragment-ktx:1.6.0'
- implementation 'androidx.core:core-ktx:1.6.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
+ implementation 'androidx.core:core-ktx:1.10.1'
+ implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation "androidx.datastore:datastore-preferences:1.0.0"
- def coroutine_version = '1.5.0'
+ def coroutine_version = '1.7.1'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutine_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutine_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-play-services:$coroutine_version"
- def hilt_version = '2.38.1'
+ def hilt_version = '2.47'
implementation "com.google.dagger:hilt-android:$hilt_version"
kapt "com.google.dagger:hilt-compiler:$hilt_version"
kapt "androidx.hilt:hilt-compiler:1.0.0"
- def lifecycle_version = '2.4.0-alpha03'
+ def lifecycle_version = '2.6.1'
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
- testImplementation 'androidx.arch.core:core-testing:2.1.0'
+ testImplementation 'androidx.arch.core:core-testing:2.2.0'
- implementation 'com.google.android.material:material:1.4.0'
+ implementation 'com.google.android.material:material:1.9.0'
- def okhttp_version = '4.9.0'
+ def okhttp_version = '4.11.0'
implementation "com.squareup.okhttp3:okhttp:$okhttp_version"
implementation "com.squareup.okhttp3:logging-interceptor:$okhttp_version"
implementation "ru.gildor.coroutines:kotlin-coroutines-okhttp:1.0"
testImplementation 'junit:junit:4.13.2'
- androidTestImplementation 'androidx.test:runner:1.4.0'
- androidTestImplementation 'androidx.test:rules:1.4.0'
+ androidTestImplementation 'androidx.test:runner:1.5.2'
+ androidTestImplementation 'androidx.test:rules:1.5.0'
- androidTestImplementation 'androidx.test.ext:junit:1.1.3'
- androidTestImplementation 'androidx.test.ext:truth:1.4.0'
- androidTestImplementation 'com.google.truth:truth:1.1.2'
+ androidTestImplementation 'androidx.test.ext:junit:1.1.5'
+ androidTestImplementation 'androidx.test.ext:truth:1.5.0'
+ androidTestImplementation 'com.google.truth:truth:1.1.3'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 2744acd..8a01677 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -37,6 +37,7 @@
diff --git a/android/app/src/main/java/com/example/android/fido2/api/AuthApi.kt b/android/app/src/main/java/com/example/android/fido2/api/AuthApi.kt
index 2137043..0272a80 100644
--- a/android/app/src/main/java/com/example/android/fido2/api/AuthApi.kt
+++ b/android/app/src/main/java/com/example/android/fido2/api/AuthApi.kt
@@ -401,7 +401,7 @@ class AuthApi @Inject constructor(
return PublicKeyCredentialUserEntity(
id!!.decodeBase64(),
name!!,
- null, // icon
+ "", // icon
displayName
)
}
diff --git a/android/build.gradle b/android/build.gradle
index 517769d..d95d7f0 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -15,15 +15,15 @@
*/
buildscript {
- ext.kotlin_version = '1.5.21'
+ ext.kotlin_version = '1.8.22'
repositories {
google()
mavenCentral()
}
dependencies {
- classpath 'com.android.tools.build:gradle:7.0.0'
+ classpath 'com.android.tools.build:gradle:8.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- classpath 'com.google.dagger:hilt-android-gradle-plugin:2.38.1'
+ classpath 'com.google.dagger:hilt-android-gradle-plugin:2.47'
}
}
diff --git a/android/gradle/wrapper/gradle-wrapper.jar b/android/gradle/wrapper/gradle-wrapper.jar
index f6b961f..e708b1c 100644
Binary files a/android/gradle/wrapper/gradle-wrapper.jar and b/android/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
index 78c6495..0a6c63a 100644
--- a/android/gradle/wrapper/gradle-wrapper.properties
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Tue Nov 17 16:25:58 JST 2020
+#Wed Mar 15 12:21:42 JST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip