build.gradle 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 30
  4. buildToolsVersion "30.0.2"
  5. defaultConfig {
  6. applicationId "com.shuoyue.facerecord"
  7. minSdkVersion 16
  8. targetSdkVersion 30
  9. versionCode 1001
  10. versionName "1.0.1"
  11. ndk {
  12. abiFilters 'armeabi', 'armeabi-v7a','arm64-v8a'
  13. }
  14. }
  15. viewBinding {
  16. enabled = true
  17. }
  18. signingConfigs {
  19. debug {
  20. storeFile file("key.jks") // 需要修改成您的签名文件路径
  21. storePassword '123456' // 需要修改成您的签名文件密码
  22. keyAlias 'window' // 需要修改成您的签名文件别名
  23. keyPassword '123456' // 需要修改成您的签名文件别名密码
  24. }
  25. release {
  26. storeFile file("key.jks") // 需要修改成您的签名文件路径
  27. storePassword '123456' // 需要修改成您的签名文件密码
  28. keyAlias 'window' // 需要修改成您的签名文件别名
  29. keyPassword '123456' // 需要修改成您的签名文件别名密码
  30. }
  31. }
  32. buildTypes {
  33. debug {
  34. minifyEnabled false
  35. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  36. signingConfig signingConfigs.debug
  37. debuggable true
  38. jniDebuggable true
  39. }
  40. release {
  41. minifyEnabled false
  42. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  43. signingConfig signingConfigs.release
  44. debuggable false
  45. jniDebuggable false
  46. }
  47. }
  48. lintOptions {
  49. checkReleaseBuilds false
  50. // Or, if you prefer, you can continue to check for errors in release builds,
  51. // but continue the build even when errors are found:
  52. abortOnError false
  53. }
  54. }
  55. dependencies {
  56. implementation fileTree(dir: 'libs', include: ['*.jar'])
  57. implementation 'androidx.appcompat:appcompat:1.3.0'
  58. implementation 'com.google.android.material:material:1.3.0'
  59. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  60. //retrofit2//
  61. implementation 'com.squareup.retrofit2:retrofit:2.9.0'
  62. implementation 'io.reactivex.rxjava2:rxjava:2.2.15'
  63. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  64. implementation files('libs/slf4j-api-1.7.26.jar')
  65. implementation files('libs/mina-core-2.0.21.jar')
  66. implementation project(path: ':facesdk')
  67. implementation 'com.google.code.gson:gson:2.8.6'
  68. implementation 'junit:junit:4.12'
  69. implementation 'com.tencent.bugly:crashreport:latest.release'
  70. debugImplementation 'com.hjq:logcat:5.0'//调试
  71. testImplementation 'com.squareup.leakcanary:leakcanary-android:1.5'
  72. implementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
  73. testImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
  74. implementation 'org.greenrobot:eventbus:3.1.1'//
  75. }