From d0ba699d75e908a22444decf69febaa7fb82ca73 Mon Sep 17 00:00:00 2001 From: Paras Date: Tue, 18 Jan 2022 09:45:23 +0530 Subject: [PATCH] fixed #4 and #7 --- android/app/build.gradle | 12 +- android/app/src/main/AndroidManifest.xml | 1 + android/build.gradle | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 4 +- android/local.properties | 4 +- lib/generated_plugin_registrant.dart | 1 + lib/main.dart | 51 +++- lib/pages/home_page.dart | 250 ++++++++++++++++-- lib/pages/host_scan_page.dart | 19 +- lib/pages/location_consent_page.dart | 10 +- lib/pages/settings_page.dart | 78 +++--- lib/pages/wifi_detail.dart | 242 ----------------- pubspec.lock | 26 +- pubspec.yaml | 6 +- 14 files changed, 366 insertions(+), 340 deletions(-) delete mode 100644 lib/pages/wifi_detail.dart diff --git a/android/app/build.gradle b/android/app/build.gradle index 7b842ba5..2a6ce2f9 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -31,11 +31,8 @@ if (keystorePropertiesFile.exists()) { } android { - compileSdkVersion 30 - - lintOptions { - checkReleaseBuilds false - } + compileSdkVersion 31 + sourceSets { main.java.srcDirs += 'src/main/kotlin' } @@ -44,7 +41,7 @@ android { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "org.fsociety.vernet" minSdkVersion 16 - targetSdkVersion 30 + targetSdkVersion 31 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } @@ -78,6 +75,9 @@ android { versionNameSuffix "-store" } } + lint { + checkReleaseBuilds false + } } flutter { diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 730bf3dc..ea67ebbf 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -20,6 +20,7 @@ android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" + android:exported="true" android:windowSoftInputMode="adjustResize">