From 2a92478d017788a12b843ce99e64ac2ae62e0c4d Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Wed, 8 Dec 2021 15:31:09 +0300 Subject: [PATCH] nfc plugin improvement. --- android/app/build.gradle | 5 +- android/app/src/main/AndroidManifest.xml | 73 +++++--- android/build.gradle | 9 +- android/gradle.properties | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- lib/pages/BookAppointment/BookConfirm.dart | 2 +- lib/pages/BookAppointment/QRCode.dart | 10 +- .../dialog/clinic_list_dialog.dart | 3 +- .../widgets/reminder_dialog_prescription.dart | 1 - lib/pages/ToDoList/widgets/paymentDialog.dart | 175 ++++++++---------- lib/pages/landing/landing_page.dart | 5 - lib/widgets/nfc/nfc_reader_sheet.dart | 61 ++---- pubspec.yaml | 8 +- 13 files changed, 167 insertions(+), 189 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 25230849..a465569d 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -28,7 +28,7 @@ apply plugin: 'com.google.gms.google-services' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 30 + compileSdkVersion 31 sourceSets { main.java.srcDirs += 'src/main/kotlin' @@ -111,8 +111,7 @@ dependencies { implementation "com.opentok.android:opentok-android-sdk:2.19.1" - - compile 'com.facebook.stetho:stetho:1.5.1' + implementation 'com.facebook.stetho:stetho:1.5.1' implementation 'com.facebook.stetho:stetho-urlconnection:1.5.1' diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 8aa7ad73..ba03f512 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -5,7 +5,7 @@ In most cases you can leave this as-is, but you if you want to provide additional functionality it is fine to subclass or reimplement FlutterApplication and put your custom class here. --> - + @@ -13,7 +13,7 @@ - + @@ -22,18 +22,24 @@ - - - + + + + + - - - - + + + + - + @@ -42,10 +48,10 @@ + android:showOnLockScreen="true" + android:usesCleartextTraffic="true"> - - + + - - - + + + + - - + + - + - + + - +