build.gradle 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // +———————————————————————————————————
  2. // | Created by Yunbao
  3. // +———————————————————————————————————
  4. // | Copyright (c) 2013~2022 http://www.yunbaokj.com All rights reserved.
  5. // +———————————————————————————————————
  6. // | Author: https://gitee.com/yunbaokeji
  7. // +———————————————————————————————————
  8. // | Date: 2022-04-30
  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. buildTypes {
  25. release {
  26. minifyEnabled false
  27. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  28. }
  29. }
  30. sourceSets {
  31. main {
  32. jniLibs.srcDirs = ['libs']
  33. }
  34. }
  35. }
  36. repositories {
  37. flatDir {
  38. dirs 'libs','../libs'
  39. }
  40. }
  41. dependencies {
  42. compile fileTree(include: ['*.jar'], dir: 'libs')
  43. compile rootProject.ext.dependencies["appcompat-v7"]
  44. //common
  45. compile project(':common')
  46. }