build.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. android {
  4. compileSdkVersion 29
  5. defaultConfig {
  6. applicationId "com.mylove.logger"
  7. minSdkVersion 14
  8. targetSdkVersion 29
  9. versionCode 1
  10. versionName "1.0"
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. }
  13. signingConfigs {
  14. release {
  15. storeFile file('log.jks')
  16. storePassword "123456"
  17. keyAlias "log"
  18. keyPassword "123456"
  19. }
  20. }
  21. buildTypes {
  22. debug {
  23. // buildConfigField "boolean", "LOG_DEBUG", "true"
  24. minifyEnabled false
  25. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  26. }
  27. release {
  28. // buildConfigField "boolean", "LOG_DEBUG", "false"
  29. minifyEnabled false
  30. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  31. signingConfig signingConfigs.release
  32. }
  33. }
  34. // compileOptions {
  35. // sourceCompatibility 1.8
  36. // targetCompatibility 1.8
  37. // }
  38. }
  39. dependencies {
  40. implementation fileTree(include: ['*.jar'], dir: 'libs')
  41. implementation 'androidx.appcompat:appcompat:1.2.0'
  42. testImplementation 'junit:junit:4.13'
  43. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  44. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  45. implementation project(':loglib')
  46. implementation 'com.yanyi.benyanyi:PermissionHelper:1.1.4'
  47. implementation "androidx.core:core-ktx:1.3.2"
  48. implementation "org.jetbrains.kotlin:kotlin-stdlib:1.5.30"
  49. }
  50. repositories {
  51. mavenCentral()
  52. }