settings.gradle.kts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // pluginManagement {
  2. // def flutterSdkPath = {
  3. // def properties = new Properties()
  4. // file("local.properties").withInputStream { properties.load(it) }
  5. // def flutterSdkPath = properties.getProperty("flutter.sdk")
  6. // assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
  7. // return flutterSdkPath
  8. // }()
  9. // includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
  10. // repositories {
  11. // google()
  12. // mavenCentral()
  13. // gradlePluginPortal()
  14. // }
  15. // }
  16. // plugins {
  17. // id "dev.flutter.flutter-plugin-loader" version "1.0.0"
  18. // id "com.android.application" version "8.2.2" apply false
  19. // id "org.jetbrains.kotlin.android" version "2.0.10" apply false
  20. // id "com.google.gms.google-services" version "4.4.2" apply false
  21. // }
  22. // include ":app"
  23. pluginManagement {
  24. val flutterSdkPath = run {
  25. val properties = java.util.Properties()
  26. file("local.properties").inputStream().use { properties.load(it) }
  27. val flutterSdkPath = properties.getProperty("flutter.sdk")
  28. require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
  29. flutterSdkPath
  30. }
  31. includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
  32. repositories {
  33. google()
  34. mavenCentral()
  35. gradlePluginPortal()
  36. }
  37. }
  38. plugins {
  39. id("dev.flutter.flutter-plugin-loader") version "1.0.0"
  40. id("com.android.application") version "8.7.0" apply false
  41. // START: FlutterFire Configuration
  42. id("com.google.gms.google-services") version("4.3.15") apply false
  43. // END: FlutterFire Configuration
  44. id("org.jetbrains.kotlin.android") version "1.8.22" apply false
  45. }
  46. include(":app")