Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
zillachan committed Oct 12, 2017
1 parent 8d14f62 commit cdd6aab
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions example/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
compileSdkVersion 26
buildToolsVersion "26.0.2"

defaultConfig {
applicationId "pub.zilla.example"
minSdkVersion 19
targetSdkVersion 25
targetSdkVersion 26
versionCode 1
versionName "1.0"

Expand All @@ -28,9 +28,9 @@ dependencies {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
compile 'com.android.support:design:26.0.0-alpha1'
// compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
testCompile 'junit:junit:4.12'
compile 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
Expand Down
10 changes: 5 additions & 5 deletions valizilla/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
group='com.github.zillachan'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
// applicationId "pub.zilla.validzilla"
minSdkVersion 19
targetSdkVersion 25
targetSdkVersion 26
versionCode 9
versionName "1.1.3"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand All @@ -25,8 +25,8 @@ dependencies {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
compile 'com.android.support:design:26.0.0-alpha1'
testCompile 'junit:junit:4.12'
}

Expand Down
4 changes: 2 additions & 2 deletions valizilla/src/main/java/pub/zilla/validzilla/ValiZilla.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ private static void invokeSuccess(Object target, Class annotationClass, int... o
for (MethodModel methodModel : methodModels) {
if (methodModel.getAnnotation().annotationType().equals(annotationClass)) {
Class<?>[] parameterTypes = methodModel.getMethod().getParameterTypes();
if (parameterTypes.length == 0) {
if (parameterTypes.length == 0 && orders == null) {
methodModel.getMethod().invoke(target);
} else {
} else if (orders != null && parameterTypes.length != 0) {
methodModel.getMethod().invoke(target, orders);
}
}
Expand Down

0 comments on commit cdd6aab

Please sign in to comment.