From 6402a29e575c1e21ebe3616bcfaef9f6ddb375ed Mon Sep 17 00:00:00 2001 From: Robert Szuba Date: Fri, 15 Dec 2017 13:52:36 +0100 Subject: [PATCH 01/31] SDKAND-533 Remove fido related classes --- app/build.gradle | 6 +- app/proguard-rules-onegini-sdk.pro | 3 - app/src/main/AndroidManifest.xml | 12 --- .../onegini/mobile/exampleapp/OneginiSDK.java | 4 - .../view/activity/FidoActivity.java | 84 ------------------- .../MobileAuthenticationFidoActivity.java | 49 ----------- .../FidoAuthenticationRequestHandler.java | 63 -------------- ...obileAuthenticationFidoRequestHandler.java | 71 ---------------- .../OneginiAuthenticatorComperator.java | 10 +-- app/src/main/res/layout/activity_fido.xml | 54 ------------ app/src/main/res/values/strings.xml | 2 - 11 files changed, 10 insertions(+), 348 deletions(-) delete mode 100644 app/src/main/java/com/onegini/mobile/exampleapp/view/activity/FidoActivity.java delete mode 100644 app/src/main/java/com/onegini/mobile/exampleapp/view/activity/MobileAuthenticationFidoActivity.java delete mode 100644 app/src/main/java/com/onegini/mobile/exampleapp/view/handler/FidoAuthenticationRequestHandler.java delete mode 100644 app/src/main/java/com/onegini/mobile/exampleapp/view/handler/MobileAuthenticationFidoRequestHandler.java delete mode 100644 app/src/main/res/layout/activity_fido.xml diff --git a/app/build.gradle b/app/build.gradle index ba01b220..c577f9f5 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -59,7 +59,11 @@ android { } buildTypes { release { - minifyEnabled false + minifyEnabled true + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules-onegini-sdk.pro', 'proguard-rules-example-app.pro' + } + debug { + minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules-onegini-sdk.pro', 'proguard-rules-example-app.pro' } } diff --git a/app/proguard-rules-onegini-sdk.pro b/app/proguard-rules-onegini-sdk.pro index 54572e47..0f074783 100644 --- a/app/proguard-rules-onegini-sdk.pro +++ b/app/proguard-rules-onegini-sdk.pro @@ -39,9 +39,6 @@ @retrofit2.http.* ; } -# Samsung FIDO --keep class com.samsung.sds.fido.** { *; } --dontwarn com.samsung.sds.fido.** -dontnote ** # SQLCipher diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index f17e5573..b189f5d2 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -17,8 +17,6 @@ - - - - { @@ -43,22 +43,22 @@ private int compareByType(final int o1, final int o2) { return 0; } - // o1 == PIN && o2 == FINGERPRINT || FIDO + // o1 == PIN && o2 == FINGERPRINT || CUSTOM if (o1 == OneginiAuthenticator.PIN) { return -1; } - // o2 == PIN && o1 == FINGERPRINT || FIDO + // o2 == PIN && o1 == FINGERPRINT || CUSTOM if (o2 == OneginiAuthenticator.PIN) { return 1; } - // o1 == FINGERPRINT && o2 == FIDO + // o1 == FINGERPRINT && o2 == CUSTOM if (o1 == OneginiAuthenticator.FINGERPRINT) { return -1; } - // o2 == FINGERPRINT && o1 == FIDO + // o2 == FINGERPRINT && o1 == CUSTOM return 1; } diff --git a/app/src/main/res/layout/activity_fido.xml b/app/src/main/res/layout/activity_fido.xml deleted file mode 100644 index 35dac863..00000000 --- a/app/src/main/res/layout/activity_fido.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - -