From f308e7502a2d7dc5c2bc89e2868177e2ae97f4fb Mon Sep 17 00:00:00 2001 From: adameehanairagroup Date: Sun, 1 Nov 2026 19:50:30 +0530 Subject: [PATCH] fix(deps): align webview_flutter_android dependency and explicit compileSdk 34 --- android/app/build.gradle | 7 +++---- lib/screens/webview_screen.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index f62d916..2f8865e 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -1,6 +1,6 @@ plugins { id "com.android.application" - id "kotlin-android" + id "org.jetbrains.kotlin.android" id "dev.flutter.flutter-gradle-plugin" } @@ -24,8 +24,7 @@ if (flutterVersionName == null) { android { namespace "com.airagroup.aira_ai" - compileSdk flutter.compileSdkVersion - ndkVersion flutter.ndkVersion + compileSdk 34 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 @@ -43,7 +42,7 @@ android { defaultConfig { applicationId "com.airagroup.aira_ai" minSdkVersion 21 - targetSdkVersion flutter.targetSdkVersion + targetSdkVersion 34 versionCode flutterVersionCode.toInteger() versionName flutterVersionName multiDexEnabled true diff --git a/lib/screens/webview_screen.dart b/lib/screens/webview_screen.dart index 3867d15..f27ae41 100644 --- a/lib/screens/webview_screen.dart +++ b/lib/screens/webview_screen.dart @@ -108,7 +108,7 @@ class _WebViewScreenState extends State { // Auto-grant Camera and Microphone permissions for Voice chat & Image attachments androidController.setOnPlatformPermissionRequest( - (PlatformWebViewPermissionRequest request) { + (request) { request.grant(); }, ); diff --git a/pubspec.yaml b/pubspec.yaml index 5e9e42b..ab5494e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -13,7 +13,7 @@ dependencies: sdk: flutter cupertino_icons: ^1.0.8 webview_flutter: ^4.10.0 - webview_flutter_android: ^3.16.9 + webview_flutter_android: ^4.3.2 permission_handler: ^11.3.1 url_launcher: ^6.3.1 flutter_spinkit: ^5.2.1