build.gradle 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. defaultConfig {
  12. applicationId "com.suyghur.dolin"
  13. minSdkVersion MIN_SDK_VERSION
  14. targetSdkVersion TARGET_SDK_VERSION
  15. versionCode 1
  16. versionName "1.0"
  17. ndk {
  18. // 设置支持的SO库架构
  19. abiFilters '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 MINIFY_ENABLE
  33. signingConfig signingConfigs.config
  34. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  35. }
  36. release {
  37. minifyEnabled MINIFY_ENABLE
  38. signingConfig signingConfigs.config
  39. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  40. }
  41. }
  42. lintOptions {
  43. abortOnError false
  44. }
  45. repositories {
  46. flatDir {
  47. dirs 'libs'
  48. }
  49. }
  50. dexOptions {
  51. preDexLibraries = false
  52. }
  53. compileOptions {
  54. sourceCompatibility JavaVersion.VERSION_1_8
  55. targetCompatibility JavaVersion.VERSION_1_8
  56. }
  57. kotlinOptions {
  58. jvmTarget = '1.8'
  59. }
  60. }
  61. dependencies {
  62. // implementation project(':library_caps')
  63. implementation 'com.google.android.material:material:1.3.0'
  64. implementation project(':library_zap')
  65. implementation project(':library_common')
  66. }