Skip to content

Commit 4e19c93

Browse files
authored
Merge pull request #9 from InflationX/jb/fix-lint
Fix lint errors
2 parents 755f947 + bf00a00 commit 4e19c93

4 files changed

Lines changed: 14 additions & 7 deletions

File tree

ViewPumpSample/build.gradle

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 24
5-
buildToolsVersion "24.0.0"
4+
compileSdkVersion 25
5+
buildToolsVersion "25.0.1"
66

77
defaultConfig {
88
minSdkVersion 14
99
targetSdkVersion 24
1010
versionCode project.ext.versionCodeInt
1111
versionName version
1212
}
13+
1314
buildTypes {
1415
debug {
1516
minifyEnabled true
@@ -20,12 +21,16 @@ android {
2021
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2122
}
2223
}
24+
25+
lintOptions {
26+
disable 'AppCompatCustomView'
27+
}
2328
}
2429

2530
dependencies {
2631
compile project(':viewpump')
27-
compile 'com.android.support:support-v4:24.0.0'
28-
compile 'com.android.support:appcompat-v7:24.0.0'
32+
compile 'com.android.support:support-v4:25.0.1'
33+
compile 'com.android.support:appcompat-v7:25.0.1'
2934

3035
compile 'com.jakewharton:butterknife:8.2.1'
3136

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
jcenter()
55
}
66
dependencies {
7-
classpath 'com.android.tools.build:gradle:2.2.3'
7+
classpath 'com.android.tools.build:gradle:2.3.0'
88
}
99
}
1010

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-bin.zip

viewpump/src/main/java/io/github/inflationx/viewpump/ReflectionUtils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ public static void invokeMethod(Object object, Method method, Object... args) {
5050
try {
5151
if (method == null) return;
5252
method.invoke(object, args);
53-
} catch (IllegalAccessException | InvocationTargetException e) {
53+
} catch (IllegalAccessException e) {
54+
Log.d(TAG, "Can't access method using reflection", e);
55+
} catch (InvocationTargetException e) {
5456
Log.d(TAG, "Can't invoke method using reflection", e);
5557
}
5658
}

0 commit comments

Comments
 (0)