build.gradle 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // +----------------------------------------------------------------------
  2. // | Created by Yunbao
  3. // +----------------------------------------------------------------------
  4. // | Copyright (c) 2013~2022 http://www.yunbaokj.com All rights reserved.
  5. // +----------------------------------------------------------------------
  6. // | Author: https://gitee.com/yunbaokji/
  7. // +----------------------------------------------------------------------
  8. // | Date: 2022-02-17
  9. // +----------------------------------------------------------------------
  10. apply plugin: 'com.android.library'
  11. android {
  12. compileSdkVersion rootProject.ext.android.compileSdkVersion
  13. buildToolsVersion rootProject.ext.android.buildToolsVersion
  14. defaultConfig {
  15. minSdkVersion rootProject.ext.android.minSdkVersion
  16. targetSdkVersion rootProject.ext.android.targetSdkVersion
  17. versionCode rootProject.ext.android.versionCode
  18. versionName rootProject.ext.android.versionName
  19. manifestPlaceholders = rootProject.ext.manifestPlaceholders
  20. ndk {
  21. abiFilters "armeabi-v7a", "arm64-v8a"
  22. }
  23. }
  24. aaptOptions {
  25. cruncherEnabled = false
  26. useNewCruncher = false
  27. }
  28. buildTypes {
  29. release {
  30. minifyEnabled false
  31. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  32. }
  33. }
  34. }
  35. repositories {
  36. flatDir {
  37. dirs 'libs', '../libs'
  38. }
  39. }
  40. dependencies {
  41. compile fileTree(include: ['*.jar'], dir: 'libs')
  42. //socket.io
  43. compile('io.socket:socket.io-client:1.0.0') {
  44. exclude group: 'org.json', module: 'json'
  45. }
  46. //金山播放和推流SDK
  47. compile 'com.ksyun.media:libksylive-java:3.0.4'
  48. compile 'com.ksyun.media:libksylive-armv7a:3.0.4'
  49. compile 'com.ksyun.media:libksylive-arm64:3.0.4'
  50. //common
  51. compile project(':common')
  52. }