build.gradle 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. }
  5. def keystorePropertiesFile = rootProject.file("keystore.properties")
  6. def keystoreProperties = new Properties()
  7. keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
  8. android {
  9. compileSdkVersion rootProject.ext.android.compileSdkVersion
  10. buildToolsVersion rootProject.ext.android.buildToolsVersion
  11. defaultConfig {
  12. applicationId "com.yyxx.support.demo"
  13. minSdkVersion rootProject.ext.android.minSdkVersion
  14. targetSdkVersion rootProject.ext.android.targetSdkVersion
  15. versionCode rootProject.ext.android.versionCode
  16. versionName rootProject.ext.android.versionName
  17. ndk {
  18. // 设置支持的SO库架构
  19. abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  20. }
  21. }
  22. signingConfigs {
  23. config {
  24. keyAlias keystoreProperties['keyAlias']
  25. keyPassword keystoreProperties['keyPassword']
  26. storeFile file(keystoreProperties['storeFile'])
  27. storePassword keystoreProperties['storePassword']
  28. }
  29. }
  30. buildTypes {
  31. debug {
  32. minifyEnabled false
  33. signingConfig signingConfigs.config
  34. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  35. }
  36. release {
  37. minifyEnabled false
  38. signingConfig signingConfigs.config
  39. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  40. }
  41. }
  42. lintOptions {
  43. abortOnError false
  44. }
  45. compileOptions {
  46. sourceCompatibility JavaVersion.VERSION_1_8
  47. targetCompatibility JavaVersion.VERSION_1_8
  48. }
  49. kotlinOptions {
  50. jvmTarget = "1.8"
  51. }
  52. }
  53. dependencies {
  54. implementation project(':library_support')
  55. implementation files('../libs/oaid_sdk_1.0.25.jar')
  56. implementation files('../libs/mmkv-static-1.2.8.jar')
  57. implementation files('../libs/android-support-v4.jar')
  58. }