You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.5KB

  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 28
  4. //ndkVersion "25.1.xxx"
  5. defaultConfig {
  6. applicationId "com.zlmediakit.demo"
  7. minSdkVersion 15
  8. targetSdkVersion 28
  9. versionCode 1
  10. versionName "1.0"
  11. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  12. externalNativeBuild {
  13. externalNativeBuild {
  14. cmake {
  15. cppFlags "-std=c++11 -frtti -fexceptions"
  16. arguments "-DENABLE_API=on", "-DENABLE_API_STATIC_LIB=on", "-DENABLE_TESTS=off", "-DENABLE_PLAYER=off", "-DENABLE_SERVER_LIB=on"
  17. }
  18. }
  19. ndk {
  20. abiFilters "arm64-v8a" //, "armeabi-v7a"
  21. }
  22. }
  23. }
  24. buildTypes {
  25. release {
  26. minifyEnabled false
  27. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  28. }
  29. }
  30. externalNativeBuild {
  31. cmake {
  32. path "src/main/cpp/CMakeLists.txt"
  33. }
  34. }
  35. }
  36. dependencies {
  37. implementation fileTree(dir: 'libs', include: ['*.jar'])
  38. implementation 'com.android.support:appcompat-v7:28.0.0'
  39. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  40. testImplementation 'junit:junit:4.12'
  41. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  42. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  43. }