build.gradle 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. packagingOptions {
  21. pickFirst '**/libsqlite3.so'
  22. pickFirst '**/libsqlite3.arm.android.so'
  23. pickFirst '**/libsqlite3.x64.android.so'
  24. pickFirst '**/libsqlite3.arm64.android.so'
  25. pickFirst '**/libflutter.so'
  26. }
  27. defaultConfig {
  28. // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
  29. applicationId "com.vber.chicken_farm"
  30. // You can update the following values to match your application needs.
  31. // For more information, see: https://flutter.dev/to/review-gradle-config.
  32. minSdk = flutter.minSdkVersion
  33. targetSdk = flutter.targetSdkVersion
  34. versionCode = flutter.versionCode
  35. versionName = flutter.versionName
  36. ndk {
  37. // 仅保留MT6765支持的armeabi-v7a
  38. abiFilters 'armeabi-v7a'
  39. }
  40. }
  41. buildTypes {
  42. debug {
  43. minifyEnabled false
  44. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  45. }
  46. release {
  47. // TODO: Add your own signing config for the release build.
  48. // Signing with the debug keys for now, so `flutter run --release` works.
  49. signingConfig = signingConfigs.debug
  50. // 禁用代码压缩和混淆
  51. minifyEnabled false
  52. shrinkResources false
  53. }
  54. }
  55. lintOptions {
  56. checkReleaseBuilds false
  57. abortOnError false
  58. }
  59. }
  60. dependencies {
  61. // implementation fileTree(include: ['*.aar'], dir: 'libs')
  62. implementation files('libs\\lcrrgxmodule-release.aar')
  63. implementation files('libs\\ScanManager_V202105081630.jar')
  64. }