build.gradle 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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 COMPILE_SDK_VERSION
  10. buildToolsVersion BUILD_TOOLS_VERSION
  11. ndkVersion NDK_VERSION
  12. defaultConfig {
  13. applicationId "com.dolin.demo"
  14. minSdkVersion MIN_SDK_VERSION
  15. targetSdkVersion TARGET_SDK_VERSION
  16. versionCode 1
  17. versionName "1.0"
  18. ndk {
  19. // 设置支持的SO库架构
  20. abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  21. }
  22. }
  23. signingConfigs {
  24. config {
  25. keyAlias keystoreProperties['keyAlias']
  26. keyPassword keystoreProperties['keyPassword']
  27. storeFile file(keystoreProperties['storeFile'])
  28. storePassword keystoreProperties['storePassword']
  29. }
  30. }
  31. buildTypes {
  32. debug {
  33. minifyEnabled MINIFY_ENABLE
  34. signingConfig signingConfigs.config
  35. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  36. }
  37. release {
  38. minifyEnabled MINIFY_ENABLE
  39. signingConfig signingConfigs.config
  40. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  41. }
  42. }
  43. lintOptions {
  44. abortOnError false
  45. }
  46. repositories {
  47. flatDir {
  48. dirs 'libs'
  49. }
  50. }
  51. dexOptions {
  52. preDexLibraries = false
  53. }
  54. compileOptions {
  55. sourceCompatibility JavaVersion.VERSION_1_8
  56. targetCompatibility JavaVersion.VERSION_1_8
  57. }
  58. kotlinOptions {
  59. jvmTarget = '1.8'
  60. }
  61. }
  62. dependencies {
  63. // implementation project(':library_caps')
  64. implementation 'com.google.android.material:material:1.4.0'
  65. implementation project(':library_comm')
  66. implementation project(':library_zap')
  67. implementation project(':library_hawkeye')
  68. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
  69. }