Navaron Bracke

fix Gradle warning about deprecated apply script method

@@ -62,7 +62,3 @@ android { @@ -62,7 +62,3 @@ android {
62 flutter { 62 flutter {
63 source '../..' 63 source '../..'
64 } 64 }
65 -  
66 -dependencies {  
67 - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"  
68 -}  
1 -buildscript {  
2 - ext.kotlin_version = '1.9.22'  
3 - repositories {  
4 - google()  
5 - mavenCentral()  
6 - }  
7 -  
8 - dependencies {  
9 - classpath 'com.android.tools.build:gradle:8.2.2'  
10 - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"  
11 - }  
12 -}  
13 -  
14 allprojects { 1 allprojects {
15 repositories { 2 repositories {
16 google() 3 google()
@@ -5,12 +5,21 @@ pluginManagement { @@ -5,12 +5,21 @@ pluginManagement {
5 def flutterSdkPath = properties.getProperty("flutter.sdk") 5 def flutterSdkPath = properties.getProperty("flutter.sdk")
6 assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 6 assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
7 return flutterSdkPath 7 return flutterSdkPath
8 - }  
9 - settings.ext.flutterSdkPath = flutterSdkPath() 8 + }()
  9 +
  10 + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
10 11
11 - includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") 12 + repositories {
  13 + google()
  14 + mavenCentral()
  15 + gradlePluginPortal()
  16 + }
12 } 17 }
13 18
14 -include ":app" 19 +plugins {
  20 + id "dev.flutter.flutter-plugin-loader" version "1.0.0"
  21 + id "com.android.application" version "8.2.2" apply false
  22 + id "org.jetbrains.kotlin.android" version "1.9.22" apply false
  23 +}
15 24
16 -apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle" 25 +include ":app"