-
Notifications
You must be signed in to change notification settings - Fork 27
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 #9 from orhanobut/refactoring
refactoring
- Loading branch information
Showing
42 changed files
with
1,392 additions
and
1,033 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
language: java | ||
|
||
script: | ||
- ./gradlew clean build |
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,37 +1,32 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 21 | ||
buildToolsVersion "21.1.1" | ||
compileSdkVersion 21 | ||
buildToolsVersion "21.1.1" | ||
|
||
defaultConfig { | ||
applicationId "com.orhanobut.android.beesample" | ||
minSdkVersion 10 | ||
targetSdkVersion 21 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
defaultConfig { | ||
applicationId "com.orhanobut.android.beesample" | ||
minSdkVersion 10 | ||
targetSdkVersion 21 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_7 | ||
targetCompatibility JavaVersion.VERSION_1_7 | ||
} | ||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_7 | ||
targetCompatibility JavaVersion.VERSION_1_7 | ||
} | ||
|
||
buildTypes { | ||
debug { | ||
build | ||
} | ||
} | ||
lintOptions { | ||
abortOnError false | ||
buildTypes { | ||
debug { | ||
build | ||
} | ||
} | ||
|
||
repositories { | ||
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } | ||
} | ||
lintOptions { | ||
abortOnError false | ||
} | ||
} | ||
|
||
dependencies { | ||
compile project(':bee') | ||
compile 'com.orhanobut:wasp:1.2-SNAPSHOT' | ||
compile project(':bee') | ||
} |
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
app/src/androidTest/java/com/orhanobut/android/beesample/ApplicationTest.java
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -18,4 +18,4 @@ | |
</activity> | ||
</application> | ||
|
||
</manifest> | ||
</manifest> |
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
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,24 +1,56 @@ | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
apply plugin: 'checkstyle' | ||
|
||
check.dependsOn('checkstyle') | ||
|
||
checkstyle { | ||
toolVersion = "6.0" | ||
} | ||
|
||
android { | ||
compileSdkVersion 21 | ||
buildToolsVersion "21.1.1" | ||
|
||
defaultConfig { | ||
minSdkVersion 10 | ||
targetSdkVersion 21 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
|
||
lintOptions { | ||
abortOnError false | ||
} | ||
compileSdkVersion 21 | ||
buildToolsVersion "21.1.2" | ||
|
||
defaultConfig { | ||
minSdkVersion 10 | ||
targetSdkVersion 22 | ||
} | ||
|
||
lintOptions { | ||
abortOnError false | ||
} | ||
} | ||
|
||
dependencies { | ||
androidTestCompile 'org.assertj:assertj-core:1.7.0' | ||
task checkstyle(type: Checkstyle) { | ||
configFile = rootProject.file('checkstyle.xml') | ||
source 'src' | ||
include '**/*.java' | ||
exclude '**/gen/**' | ||
|
||
classpath = files() | ||
} | ||
|
||
apply from: '../maven_push.gradle' | ||
// 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 'junit:junit:4.12' | ||
testCompile "org.robolectric:robolectric:3.0" | ||
testCompile 'org.assertj:assertj-core:1.7.0' | ||
} |
Oops, something went wrong.