diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 1099d4ff4..a101e55c9 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -7,6 +7,16 @@ plugins { id("dev.flutter.flutter-gradle-plugin") } +val agpMajorVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION + .substringBefore('.') + .toInt() +val builtInKotlinProperty = providers.gradleProperty("android.builtInKotlin").orNull +val isBuiltInKotlinEnabled = agpMajorVersion >= 9 && + (builtInKotlinProperty == null || builtInKotlinProperty.toBoolean()) +if (!isBuiltInKotlinEnabled) { + apply(plugin = "org.jetbrains.kotlin.android") +} + android { namespace = "com.example.piliplus" compileSdk = flutter.compileSdkVersion diff --git a/pubspec.lock b/pubspec.lock index bec5b4844..e53656aac 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -126,10 +126,10 @@ packages: dependency: "direct main" description: name: battery_plus - sha256: ad16fcb55b7384be6b4bbc763d5e2031ac7ea62b2d9b6b661490c7b9741155bf + sha256: f14567a9548ac57c010df641acbd35869429b3dc234fec0bb61b01f429285e61 url: "https://pub.dev" source: hosted - version: "7.0.0" + version: "7.1.0" battery_plus_platform_interface: dependency: transitive description: @@ -307,10 +307,10 @@ packages: dependency: "direct main" description: name: connectivity_plus - sha256: "62ffa266d9a23b79fb3fcbc206afc00bb979417ba57b1324c546b5aab95ba057" + sha256: cad0e811a289ea2a941119dc483c204ec1684cbb9a8fc7351fe4a230b8313160 url: "https://pub.dev" source: hosted - version: "7.1.1" + version: "7.2.0" connectivity_plus_platform_interface: dependency: transitive description: @@ -388,10 +388,10 @@ packages: dependency: "direct main" description: name: device_info_plus - sha256: "6a642e1daa10190af89ba6cb6386c0df7d071a3592080bfe1e44faa63ae1df65" + sha256: "0891702f96b2e465fe567b7ec448380e6b1c14f60af552a8536d9f583b6b8442" url: "https://pub.dev" source: hosted - version: "13.1.0" + version: "13.2.0" device_info_plus_platform_interface: dependency: transitive description: @@ -428,10 +428,10 @@ packages: dependency: "direct main" description: name: dlna_dart - sha256: "8a4f0e4f378615c99f2af679dc9f0c72fe4a0fb2f3eea96b637fe691dfcf0649" + sha256: da607931548720331b7503f72c426fa7fbd19e9144a4778d293c16a5bc186407 url: "https://pub.dev" source: hosted - version: "0.1.0" + version: "0.1.1" dynamic_color: dependency: "direct main" description: @@ -993,7 +993,7 @@ packages: description: path: "pkgs/jnigen" ref: HEAD - resolved-ref: "4dab66c9aa059bc730c2fb86c5716eaac3bd9f4b" + resolved-ref: "170d0550b6d906aa09bb10910774c43a0ddf46c0" url: "https://github.com/dart-lang/native.git" source: git version: "0.17.0-wip" @@ -1258,10 +1258,10 @@ packages: dependency: "direct main" description: name: package_info_plus - sha256: "4bf625947f6c7713ee242296a682e23e44823c09cf9d79e4f1238923c92db852" + sha256: f5c435dc0e0d461e5b32471a870f769b6a1cc46930637efe24fbc535314e78ad url: "https://pub.dev" source: hosted - version: "10.1.0" + version: "10.2.0" package_info_plus_platform_interface: dependency: transitive description: @@ -1479,13 +1479,12 @@ packages: source: hosted version: "5.1.0" screen_brightness_android: - dependency: "direct overridden" + dependency: transitive description: - path: screen_brightness_android - ref: main - resolved-ref: "350f4433ca48d84f4dd0bfa509ab8aea734a6105" - url: "https://github.com/bggRGjQaUbCoE/screen_brightness.git" - source: git + name: screen_brightness_android + sha256: "2008ad8e9527cc968f7a4de1ec58b476d495b3c612a149dbd6550c4f046da147" + url: "https://pub.dev" + source: hosted version: "2.1.6" screen_brightness_ios: dependency: transitive @@ -1547,10 +1546,10 @@ packages: dependency: "direct main" description: name: share_plus - sha256: a857d8b1479250aff6b57a51b2c02d31ca05848d441817c43f1640c885c286c0 + sha256: "9eee8283462d91a7a1c8bdb67d08874abd75a2f8fae3bc0ca033035e375fb3d8" url: "https://pub.dev" source: hosted - version: "13.1.0" + version: "13.2.0" share_plus_platform_interface: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 014d9e019..d00e14256 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -219,11 +219,6 @@ dependency_overrides: url: https://github.com/My-Responsitories/media-kit.git path: media_kit_video ref: version_1.2.5 - screen_brightness_android: - git: - url: https://github.com/bggRGjQaUbCoE/screen_brightness.git - path: screen_brightness_android - ref: main cached_network_image_ce: git: url: https://github.com/My-Responsitories/flutter_cached_network_image_ce.git