build.gradle 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion rootProject.ext.compileSdkVersion
  4. buildToolsVersion rootProject.ext.buildToolsVersion
  5. defaultConfig {
  6. applicationId "com.netease.yunxin.app.videocall"
  7. minSdkVersion rootProject.ext.minSdkVersion
  8. targetSdkVersion rootProject.ext.targetSdkVersion
  9. versionCode Integer.parseInt(VERSION_CODE)
  10. versionName VERSION_NAME
  11. ndk {
  12. rootProject.ext.ndkAbis.each { abi ->
  13. abiFilter(abi)
  14. }
  15. }
  16. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  17. }
  18. buildTypes {
  19. release {
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. targetCompatibility JavaVersion.VERSION_1_8
  27. }
  28. packagingOptions {
  29. pickFirst 'lib/arm64-v8a/libc++_shared.so'
  30. pickFirst 'lib/armeabi-v7a/libc++_shared.so'
  31. }
  32. def appKey = "Here, please fill your appKey!!!"
  33. // app key for code
  34. defaultConfig {
  35. buildConfigField "String", "APP_KEY", "\"${appKey}\""
  36. }
  37. // base server url
  38. defaultConfig {
  39. buildConfigField "String", "BASE_URL", "\"https://yiyong.netease.im/\""
  40. }
  41. configurations.all {
  42. // check for updates every build
  43. resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
  44. }
  45. }
  46. dependencies {
  47. implementation fileTree(dir: "libs", include: ["*.jar"])
  48. implementation 'androidx.appcompat:appcompat:1.3.0'
  49. implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
  50. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  51. api 'com.squareup.okhttp3:okhttp:3.11.0'
  52. api 'com.squareup.okhttp3:logging-interceptor:3.11.0'
  53. api 'com.squareup.retrofit2:retrofit:2.2.0'
  54. api 'com.squareup.retrofit2:converter-gson:2.2.0'
  55. implementation 'com.blankj:utilcodex:1.30.5'
  56. implementation 'com.github.bumptech.glide:glide:4.13.1'
  57. api 'com.netease.yunxin.kit.call:call-ui:1.8.1'
  58. }