Last active
June 15, 2020 18:30
-
-
Save Pulimet/0a39b2ffdb78561e42ccc51cc756e9fb to your computer and use it in GitHub Desktop.
MyLog Library Article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
Properties properties = new Properties() | |
if (project.rootProject.file("local.properties").exists()) { | |
properties.load(project.rootProject.file("local.properties").newDataInputStream()) | |
} | |
defaultConfig { | |
buildConfigField "boolean", "isThreadNameVisible", properties.getProperty("logger.isThreadNameVisible", "false") | |
buildConfigField "boolean", "isTimeVisible", properties.getProperty("logger.isTimeVisible","false") | |
buildConfigField "boolean", "isPackageNameVisible", properties.getProperty("logger.isPackageNameVisible", "false") | |
buildConfigField "boolean", "isClassNameVisible", properties.getProperty("logger.isClassNameVisible", "true") | |
buildConfigField "boolean", "isMethodNameVisible", properties.getProperty("logger.isMethodNameVisible", "true") | |
buildConfigField "boolean", "isSpacingEnabled", properties.getProperty("logger.isSpacingEnabled", "false") | |
buildConfigField "boolean", "isLengthShouldWrap", properties.getProperty("logger.isLengthShouldWrap", "true") | |
buildConfigField "int", "classNameLength", properties.getProperty("logger.classNameLength", "15") | |
buildConfigField "int", "methodNameLength", properties.getProperty("logger.methodNameLength", "20") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment