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