build.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. plugins {
  2. id "com.android.application"
  3. // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
  4. id "dev.flutter.flutter-gradle-plugin"
  5. }
  6. android {
  7. namespace "com.vber.chicken_farm"
  8. compileSdk flutter.compileSdkVersion
  9. ndkVersion flutter.ndkVersion
  10. compileOptions {
  11. sourceCompatibility JavaVersion.VERSION_1_8
  12. targetCompatibility JavaVersion.VERSION_1_8
  13. }
  14. sourceSets {
  15. main {
  16. jni.srcDirs = []
  17. jniLibs.srcDirs = ['libs']
  18. }
  19. }
  20. defaultConfig {
  21. // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
  22. applicationId "com.vber.chicken_farm"
  23. // You can update the following values to match your application needs.
  24. // For more information, see: https://flutter.dev/to/review-gradle-config.
  25. minSdk = flutter.minSdkVersion
  26. targetSdk = flutter.targetSdkVersion
  27. versionCode = flutter.versionCode
  28. versionName = flutter.versionName
  29. ndk {
  30. // 仅保留MT6765支持的armeabi-v7a
  31. abiFilters 'armeabi-v7a'
  32. }
  33. }
  34. buildTypes {
  35. release {
  36. // TODO: Add your own signing config for the release build.
  37. // Signing with the debug keys for now, so `flutter run --release` works.
  38. signingConfig = signingConfigs.debug
  39. }
  40. }
  41. lintOptions {
  42. checkReleaseBuilds false
  43. abortOnError false
  44. }
  45. }
  46. dependencies {
  47. // implementation fileTree(include: ['*.aar'], dir: 'libs')
  48. implementation files('libs\\lcrrgxmodule-release.aar')
  49. }
  50. flutter {
  51. source = "../.."
  52. }