build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. apply plugin: 'com.android.library'
  2. group = 'com.github.wildfirechat'
  3. android {
  4. compileSdkVersion 28
  5. defaultConfig {
  6. minSdkVersion 16
  7. targetSdkVersion 28
  8. // testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  9. ndk {
  10. // TODO: changes this for your application if needed
  11. moduleName = "mmnet"
  12. //abiFilter "armeabi" //去掉armeabi架构,armeabi-v7a可以兼容armeabi架构。
  13. abiFilter "armeabi-v7a"
  14. abiFilter "arm64-v8a"
  15. abiFilter "x86"
  16. abiFilter "x86_64"
  17. }
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. sourceSets {
  26. main {
  27. jniLibs.srcDirs = ['libs']
  28. }
  29. }
  30. compileOptions {
  31. targetCompatibility 1.8
  32. sourceCompatibility 1.8
  33. }
  34. namespace 'cn.wildfirechat.client'
  35. lint {
  36. abortOnError false
  37. }
  38. buildFeatures {
  39. aidl true
  40. }
  41. }
  42. dependencies {
  43. api project(':mars-core-release')
  44. def lifecycle_version = '2.2.0'
  45. implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
  46. api 'com.squareup.okhttp3:okhttp:3.11.0'
  47. implementation 'com.squareup.okio:okio:1.14.0'
  48. }
  49. repositories {
  50. mavenCentral()
  51. }