build.gradle 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. plugins {
  2. id "com.android.application"
  3. id "kotlin-android"
  4. // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
  5. id "dev.flutter.flutter-gradle-plugin"
  6. }
  7. android {
  8. namespace = "com.example.tp5"
  9. compileSdk = flutter.compileSdkVersion
  10. ndkVersion = flutter.ndkVersion
  11. compileOptions {
  12. sourceCompatibility = JavaVersion.VERSION_1_8
  13. targetCompatibility = JavaVersion.VERSION_1_8
  14. }
  15. kotlinOptions {
  16. jvmTarget = JavaVersion.VERSION_1_8
  17. }
  18. defaultConfig {
  19. // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
  20. applicationId = "com.example.tp5"
  21. // You can update the following values to match your application needs.
  22. // For more information, see: https://flutter.dev/to/review-gradle-config.
  23. // minSdk = flutter.minSdkVersion
  24. minSdk = 33
  25. targetSdk = flutter.targetSdkVersion
  26. versionCode = flutter.versionCode
  27. versionName = flutter.versionName
  28. }
  29. buildTypes {
  30. release {
  31. // TODO: Add your own signing config for the release build.
  32. // Signing with the debug keys for now, so `flutter run --release` works.
  33. signingConfig = signingConfigs.debug
  34. }
  35. }
  36. }
  37. flutter {
  38. source = "../.."
  39. }