build.gradle 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdkVersion rootProject.ext.compileSdkVersion
  6. buildToolsVersion rootProject.ext.build_tools_version
  7. defaultConfig {
  8. applicationId "com.wdkl.ncs.s433.transbox"
  9. minSdkVersion rootProject.ext.minSdkVersion
  10. targetSdkVersion rootProject.ext.targetSdkVersion
  11. versionCode rootProject.ext.versionCode
  12. versionName rootProject.ext.versionName
  13. ndk {
  14. //选择要添加的对应cpu类型的.so库。
  15. abiFilters 'armeabi-v7a', 'armeabi-v8a', 'armeabi-v8a'
  16. }
  17. }
  18. signingConfigs {
  19. release {
  20. storeFile file("keystore_wuyuqing_3128/rk3128.jks")
  21. storePassword "111111"
  22. keyAlias "rk3128"
  23. keyPassword "111111"
  24. }
  25. debug {
  26. storeFile file("keystore_wuyuqing_3128/rk3128.jks")
  27. storePassword "111111"
  28. keyAlias "rk3128"
  29. keyPassword "111111"
  30. }
  31. }
  32. buildTypes {
  33. release {
  34. minifyEnabled false
  35. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  36. }
  37. }
  38. compileOptions {
  39. sourceCompatibility JavaVersion.VERSION_1_8
  40. targetCompatibility JavaVersion.VERSION_1_8
  41. }
  42. lintOptions{
  43. checkReleaseBuilds false
  44. abortOnError false
  45. }
  46. aaptOptions {
  47. noCompress "ttc", "mp3", "apk" //表示不让aapt压缩的文件后缀
  48. }
  49. }
  50. dependencies {
  51. implementation 'androidx.appcompat:appcompat:1.3.0'
  52. implementation 'com.google.android.material:material:1.4.0'
  53. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  54. implementation 'androidx.preference:preference:1.1.1'
  55. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  56. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  57. implementation 'org.apache.commons:commons-text:1.6'
  58. /**
  59. * netty
  60. */
  61. implementation 'io.netty:netty-all:4.1.42.Final'
  62. implementation 'org.greenrobot:eventbus:3.0.0'
  63. implementation 'com.github.anrwatchdog:anrwatchdog:1.3.0'
  64. implementation project(':serialport')
  65. /**
  66. * json
  67. */
  68. implementation 'com.alibaba:fastjson:1.2.23'
  69. implementation files('libs/log4j-1.2.17.jar')
  70. //志合api
  71. implementation files('libs/smdt.jar')
  72. }