From fb21a94810c78b534cf481bbef3d89753872b1e6 Mon Sep 17 00:00:00 2001 From: Gaurav Naresh Pandit <57807284+gnpandit12@users.noreply.github.com> Date: Thu, 26 May 2022 19:55:28 +0530 Subject: [PATCH] SDK updated to version 0.6 (#5) --- README.md | 5 ++-- app/build.gradle | 11 ++++---- app/src/main/AndroidManifest.xml | 3 +-- .../com/example/attestrapp/MainActivity.kt | 26 +------------------ .../main/res/layout-hdpi/activity_main.xml | 11 -------- .../main/res/layout-xhdpi/activity_main.xml | 11 -------- .../main/res/layout-xxhdpi/activity_main.xml | 12 --------- app/src/main/res/layout/activity_main.xml | 12 --------- build.gradle | 4 +-- gradle/wrapper/gradle-wrapper.properties | 2 +- 10 files changed, 13 insertions(+), 84 deletions(-) diff --git a/README.md b/README.md index c572107..0aa055b 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,7 @@ Add this dependency to your project: com.attestr attestr-flowx - 0.4.0 - + 0.6 ``` ### Gradle users @@ -23,7 +22,7 @@ Add this dependency to your project: Add this dependency to your project's build file: ```groovy -implementation "com.attestr:attestr-flowx:0.4.0" +implementation "com.attestr:attestr-flowx:0.6" ``` ## Usage diff --git a/app/build.gradle b/app/build.gradle index 7c19133..024b252 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,7 +11,7 @@ android { minSdk 21 targetSdk 31 versionCode 1 - versionName "1.0" + versionName "2.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } @@ -32,11 +32,12 @@ android { buildFeatures { viewBinding true } + namespace 'com.example.attestrapp' } dependencies { - implementation 'androidx.appcompat:appcompat:1.4.0' - implementation 'com.google.android.material:material:1.4.0' - implementation 'androidx.constraintlayout:constraintlayout:2.1.2' - implementation "com.attestr:attestr-flowx:0.4.0" + implementation 'androidx.appcompat:appcompat:1.4.1' + implementation 'com.google.android.material:material:1.6.0' + implementation 'androidx.constraintlayout:constraintlayout:2.1.4' + implementation 'com.attestr:attestr-flowx:0.6' } \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index f812a51..6824d13 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,7 +1,6 @@ + xmlns:tools="http://schemas.android.com/tools"> ?, - view: View, - position: Int, - id: Long - ) { - selectedLocale = languages[position] - } - - override fun onNothingSelected(parent: AdapterView<*>?) { - selectedLocale = languages[0] - } - } attestrFlowx = AttestrFlowx() } @@ -96,7 +72,7 @@ class MainActivity : AppCompatActivity(), View.OnClickListener, AttestrFlowXList if (!TextUtils.isEmpty(handShakeID) && !TextUtils.isEmpty(clientKey)) { attestrFlowx?.init(clientKey, handShakeID, this) attestrFlowx?.launch( - selectedLocale, + null, isRetry, null ) diff --git a/app/src/main/res/layout-hdpi/activity_main.xml b/app/src/main/res/layout-hdpi/activity_main.xml index efc56b2..6c885d3 100644 --- a/app/src/main/res/layout-hdpi/activity_main.xml +++ b/app/src/main/res/layout-hdpi/activity_main.xml @@ -61,17 +61,6 @@ android:spinnerMode="dialog" tools:ignore="SpeakableTextPresentCheck" /> - -