Skip to content

Commit

Permalink
Merge pull request #58 from android/yaraki/extensions
Browse files Browse the repository at this point in the history
Ignore "extensions" for PublicKeyCredentialCreationOptions
  • Loading branch information
niharika2810 authored Jul 28, 2023
2 parents 6ab04bd + be9ca69 commit 9a9dec7
Show file tree
Hide file tree
Showing 17 changed files with 152 additions and 77 deletions.
45 changes: 45 additions & 0 deletions android/.idea/appInsightsSettings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions android/.idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion android/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions android/.idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions android/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions android/.idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions android/.idea/migrations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion android/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

67 changes: 39 additions & 28 deletions android/app-start/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand All @@ -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'
}
1 change: 1 addition & 0 deletions android/app-start/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

<activity
android:name=".ui.MainActivity"
android:exported="true"
android:windowSoftInputMode="stateUnchanged|adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ class AuthApi @Inject constructor(
parseSelection(reader)
)
"rp" -> builder.setRp(parseRp(reader))
"extensions" -> reader.skipValue() // Unused
}
}
reader.endObject()
Expand Down Expand Up @@ -401,7 +402,7 @@ class AuthApi @Inject constructor(
return PublicKeyCredentialUserEntity(
id!!.decodeBase64(),
name!!,
null, // icon
"", // icon
displayName
)
}
Expand Down
49 changes: 24 additions & 25 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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 {
Expand All @@ -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'
}
1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

<activity
android:name=".ui.MainActivity"
android:exported="true"
android:windowSoftInputMode="stateUnchanged|adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
Loading

0 comments on commit 9a9dec7

Please sign in to comment.