智慧水务管理系统 - 精河县供水工程综合管理平台

build.gradle 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. plugins {
  2. id "com.android.application"
  3. id "kotlin-android"
  4. id "dev.flutter.flutter-gradle-plugin"
  5. }
  6. def localProperties = new Properties()
  7. def localPropertiesFile = rootProject.file('local.properties')
  8. if (localPropertiesFile.exists()) {
  9. localPropertiesFile.withReader('UTF-8') { reader ->
  10. localProperties.load(reader)
  11. }
  12. }
  13. def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
  14. if (flutterVersionCode == null) {
  15. flutterVersionCode = '1'
  16. }
  17. def flutterVersionName = localProperties.getProperty('flutter.versionName')
  18. if (flutterVersionName == null) {
  19. flutterVersionName = '1.0'
  20. }
  21. android {
  22. namespace "com.xayunmei.water_management"
  23. compileSdk 34
  24. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. targetCompatibility JavaVersion.VERSION_1_8
  27. }
  28. kotlinOptions {
  29. jvmTarget = '1.8'
  30. }
  31. sourceSets {
  32. main.java.srcDirs += 'src/main/kotlin'
  33. }
  34. defaultConfig {
  35. applicationId "com.xayunmei.water_management"
  36. minSdk 23
  37. targetSdk 34
  38. versionCode flutterVersionCode.toInteger()
  39. versionName flutterVersionName
  40. }
  41. buildTypes {
  42. release {
  43. signingConfig signingConfigs.debug
  44. minifyEnabled false
  45. shrinkResources false
  46. }
  47. }
  48. }
  49. flutter {
  50. source '../..'
  51. }
  52. dependencies {
  53. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.10"
  54. }