build.gradle 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 "4.1"
  11. }
  12. signingConfigs {
  13. debug {
  14. storeFile file("key.jks") // 需要修改成您的签名文件路径
  15. storePassword '123456' // 需要修改成您的签名文件密码
  16. keyAlias 'window' // 需要修改成您的签名文件别名
  17. keyPassword '123456' // 需要修改成您的签名文件别名密码
  18. }
  19. release {
  20. storeFile file("key.jks") // 需要修改成您的签名文件路径
  21. storePassword '123456' // 需要修改成您的签名文件密码
  22. keyAlias 'window' // 需要修改成您的签名文件别名
  23. keyPassword '123456' // 需要修改成您的签名文件别名密码
  24. }
  25. }
  26. buildTypes {
  27. debug {
  28. minifyEnabled false
  29. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  30. signingConfig signingConfigs.debug
  31. debuggable true
  32. jniDebuggable true
  33. }
  34. release {
  35. minifyEnabled false
  36. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  37. signingConfig signingConfigs.release
  38. debuggable false
  39. jniDebuggable false
  40. }
  41. }
  42. lintOptions {
  43. checkReleaseBuilds false
  44. // Or, if you prefer, you can continue to check for errors in release builds,
  45. // but continue the build even when errors are found:
  46. abortOnError false
  47. }
  48. viewBinding {
  49. enabled = true
  50. }
  51. }
  52. dependencies {
  53. implementation fileTree(dir: 'libs', include: ['*.jar'])
  54. implementation 'androidx.appcompat:appcompat:1.2.0'
  55. implementation project(path: ':faceplatform-ui')
  56. implementation 'com.google.android.material:material:1.2.1'
  57. implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
  58. implementation 'com.google.code.gson:gson:2.8.6'
  59. //retrofit2
  60. implementation 'com.squareup.retrofit2:retrofit:2.6.2'
  61. // implementation 'com.squareup.retrofit2:converter-gson:2.6.2'
  62. // implementation 'com.squareup.retrofit2:adapter-rxjava2:2.6.0'
  63. // implementation 'com.squareup.retrofit2:converter-scalars:2.0.0'
  64. //导入scalars包
  65. //rxjava2
  66. implementation 'io.reactivex.rxjava2:rxjava:2.2.15'
  67. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  68. implementation files('libs\\slf4j-api-1.7.26.jar')
  69. implementation files('libs\\mina-core-2.0.21.jar')
  70. implementation 'com.tencent.bugly:crashreport:latest.release'
  71. debugImplementation 'com.hjq:logcat:5.0'//调试
  72. }