forked from orhanobut/logger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request orhanobut#78 from orhanobut/feature
Use Logger without init and rename tool to adapter
- Loading branch information
Showing
19 changed files
with
535 additions
and
326 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# CHANGELOG | ||
|
||
### 1.13 | ||
|
||
- LogTool is renamed to LogAdapter | ||
- Logger.init() is optional now. It used to be mandatory to call this method once. | ||
- Log.e(Throwable) will print out all stacktrace | ||
- Deprecated methods are removed | ||
- Dependencies are updated |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,53 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
subprojects { project -> | ||
group = GROUP | ||
version = VERSION_NAME | ||
|
||
buildscript { | ||
repositories { | ||
jcenter() | ||
apply plugin: 'checkstyle' | ||
|
||
task checkstyle(type: Checkstyle) { | ||
configFile rootProject.file('checkstyle.xml') | ||
source 'src/main/java' | ||
ignoreFailures false | ||
showViolations true | ||
include '**/*.java' | ||
|
||
classpath = files() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:1.3.0' | ||
classpath 'com.github.dcendents:android-maven-plugin:1.2' | ||
|
||
// NOTE: Do not place your application dependencies here; they belong | ||
// in the individual module build.gradle files | ||
afterEvaluate { | ||
if (project.tasks.findByName('check')) { | ||
check.dependsOn('checkstyle') | ||
} | ||
} | ||
|
||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:2.1.2' | ||
} | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
jcenter() | ||
} | ||
} | ||
|
||
ext { | ||
minSdkVersion = 8 | ||
targetSdkVersion = 23 | ||
compileSdkVersion = 23 | ||
buildToolsVersion = '24.0.0' | ||
sourceCompatibilityVersion = JavaVersion.VERSION_1_7 | ||
targetCompatibilityVersion = JavaVersion.VERSION_1_7 | ||
} | ||
|
||
ext.deps = [ | ||
// Test dependencies | ||
junit : 'junit:junit:4.12', | ||
truth : 'com.google.truth:truth:0.28', | ||
robolectric: 'org.robolectric:robolectric:3.1', | ||
mockito : "org.mockito:mockito-core:1.10.19" | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
# Project-wide Gradle settings. | ||
|
||
# IDE (e.g. Android Studio) users: | ||
# Gradle settings configured through the IDE *will override* | ||
# any settings specified in this file. | ||
|
||
# For more details on how to configure your build environment visit | ||
# http://www.gradle.org/docs/current/userguide/build_environment.html | ||
|
||
# Specifies the JVM arguments used for the daemon process. | ||
# The setting is particularly useful for tweaking memory settings. | ||
# Default value: -Xmx10248m -XX:MaxPermSize=256m | ||
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | ||
|
||
# When configured, Gradle will run in incubating parallel mode. | ||
# This option should only be used with decoupled projects. More details, visit | ||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects | ||
# org.gradle.parallel=true | ||
VERSION_NAME=1.13 | ||
GROUP=com.orhanobut | ||
|
||
POM_DESCRIPTION=Simple, Pretty and Advanced Logger | ||
POM_URL=https://github.com/orhanobut/logger | ||
POM_SCM_URL=https://github.com/orhanobut/logger | ||
POM_SCM_CONNECTION=scm:git@https://github.com/orhanobut/logger.git | ||
POM_SCM_DEV_CONNECTION=scm:git@https://github.com/orhanobut/logger.git | ||
POM_LICENCE_NAME=The Apache Software License, Version 2.0 | ||
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt | ||
POM_LICENCE_DIST=repo | ||
POM_DEVELOPER_ID=nr4bt | ||
POM_DEVELOPER_NAME=Orhan Obut |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,24 @@ | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
apply plugin: 'checkstyle' | ||
|
||
check.dependsOn('checkstyle') | ||
|
||
task checkstyle(type: Checkstyle) { | ||
configFile = rootProject.file('checkstyle.xml') | ||
source 'src' | ||
include '**/*.java' | ||
exclude '**/gen/**' | ||
|
||
classpath = files() | ||
} | ||
|
||
android { | ||
compileSdkVersion 21 | ||
buildToolsVersion "21.1.2" | ||
compileSdkVersion rootProject.ext.compileSdkVersion | ||
buildToolsVersion rootProject.ext.buildToolsVersion | ||
|
||
defaultConfig { | ||
minSdkVersion 8 | ||
targetSdkVersion 22 | ||
minSdkVersion rootProject.ext.minSdkVersion | ||
} | ||
|
||
lintOptions { | ||
abortOnError false | ||
textReport true | ||
textOutput 'stdout' | ||
} | ||
} | ||
|
||
// build a jar with source files | ||
task sourcesJar(type: Jar) { | ||
from android.sourceSets.main.java.srcDirs | ||
classifier = 'sources' | ||
} | ||
|
||
task javadoc(type: Javadoc) { | ||
failOnError false | ||
source = android.sourceSets.main.java.sourceFiles | ||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | ||
} | ||
|
||
// build a jar with javadoc | ||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
dependencies { | ||
testCompile deps.junit | ||
testCompile deps.truth | ||
testCompile deps.robolectric | ||
testCompile deps.mockito | ||
} | ||
|
||
dependencies { | ||
testCompile 'junit:junit:4.12' | ||
testCompile "org.robolectric:robolectric:3.0" | ||
testCompile 'org.assertj:assertj-core:1.7.0' | ||
} | ||
apply from: rootProject.file('maven_push.gradle') |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
POM_NAME=Logger | ||
POM_ARTIFACT_ID=logger | ||
POM_PACKAGING=aar |
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
Oops, something went wrong.