File tree 5 files changed +10
-10
lines changed
src/main/java/com/dylanc/viewbinding/base
viewbinding-nonreflection-ktx
5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ plugins {
6
6
7
7
android {
8
8
compileSdkVersion 30
9
- buildToolsVersion " 30.0.2"
10
9
11
10
defaultConfig {
12
11
minSdkVersion buildConfig. minSdkVersion
@@ -34,8 +33,8 @@ android {
34
33
}
35
34
36
35
buildFeatures {
37
- viewBinding = true
38
- dataBinding = true
36
+ viewBinding true
37
+ dataBinding true
39
38
}
40
39
}
41
40
Original file line number Diff line number Diff line change @@ -76,7 +76,11 @@ object ViewBindingUtil {
76
76
} catch (e: NoSuchMethodException ) {
77
77
} catch (e: ClassCastException ) {
78
78
} catch (e: InvocationTargetException ) {
79
- throw e.targetException
79
+ var tagException: Throwable ? = e
80
+ while (tagException is InvocationTargetException ) {
81
+ tagException = e.cause
82
+ }
83
+ throw tagException ? : IllegalArgumentException (" ViewBinding generic was found, but creation failed." )
80
84
}
81
85
}
82
86
}
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ plugins {
5
5
6
6
android {
7
7
compileSdkVersion 30
8
- buildToolsVersion " 30.0.2"
9
8
10
9
defaultConfig {
11
10
minSdkVersion buildConfig. minSdkVersion
@@ -33,7 +32,7 @@ android {
33
32
}
34
33
35
34
buildFeatures {
36
- viewBinding = true
35
+ viewBinding true
37
36
}
38
37
}
39
38
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ plugins {
6
6
7
7
android {
8
8
compileSdkVersion 30
9
- buildToolsVersion " 30.0.2"
10
9
11
10
defaultConfig {
12
11
minSdkVersion buildConfig. minSdkVersion
@@ -40,7 +39,7 @@ android {
40
39
}
41
40
42
41
dependencies {
43
- implementation ' com.google.android.material:material:1.4 .0'
42
+ implementation ' com.google.android.material:material:1.3 .0'
44
43
implementation " androidx.lifecycle:lifecycle-common-java8:2.4.0-alpha03"
45
44
testImplementation ' junit:junit:4.13.2'
46
45
androidTestImplementation ' androidx.test.ext:junit:1.1.3'
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ plugins {
6
6
7
7
android {
8
8
compileSdkVersion 30
9
- buildToolsVersion " 30.0.2"
10
9
11
10
defaultConfig {
12
11
minSdkVersion buildConfig. minSdkVersion
@@ -40,7 +39,7 @@ android {
40
39
}
41
40
42
41
dependencies {
43
- implementation ' com.google.android.material:material:1.4 .0'
42
+ implementation ' com.google.android.material:material:1.3 .0'
44
43
implementation " androidx.lifecycle:lifecycle-common-java8:2.4.0-alpha03"
45
44
testImplementation ' junit:junit:4.13.2'
46
45
androidTestImplementation ' androidx.test.ext:junit:1.1.3'
You can’t perform that action at this time.
0 commit comments