2
0

build.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. apply plugin: 'com.android.library'
  2. group = 'com.github.wildfirechat'
  3. android {
  4. compileSdkVersion 34
  5. defaultConfig {
  6. minSdkVersion 21
  7. targetSdkVersion 34
  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. implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
  45. api 'com.squareup.okhttp3:okhttp:4.11.0'
  46. implementation 'com.squareup.okio:okio:3.2.0'
  47. }
  48. repositories {
  49. mavenCentral()
  50. }