Skip to content

Commit 28185e9

Browse files
Fix #45
1 parent 685c851 commit 28185e9

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

viewbinding-base/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ plugins {
66

77
android {
88
compileSdkVersion 30
9-
buildToolsVersion "30.0.2"
109

1110
defaultConfig {
1211
minSdkVersion buildConfig.minSdkVersion
@@ -34,8 +33,8 @@ android {
3433
}
3534

3635
buildFeatures {
37-
viewBinding = true
38-
dataBinding = true
36+
viewBinding true
37+
dataBinding true
3938
}
4039
}
4140

viewbinding-base/src/main/java/com/dylanc/viewbinding/base/ViewBindingUtil.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ object ViewBindingUtil {
7676
} catch (e: NoSuchMethodException) {
7777
} catch (e: ClassCastException) {
7878
} 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.")
8084
}
8185
}
8286
}

viewbinding-brvah/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ plugins {
55

66
android {
77
compileSdkVersion 30
8-
buildToolsVersion "30.0.2"
98

109
defaultConfig {
1110
minSdkVersion buildConfig.minSdkVersion
@@ -33,7 +32,7 @@ android {
3332
}
3433

3534
buildFeatures {
36-
viewBinding = true
35+
viewBinding true
3736
}
3837
}
3938

viewbinding-ktx/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ plugins {
66

77
android {
88
compileSdkVersion 30
9-
buildToolsVersion "30.0.2"
109

1110
defaultConfig {
1211
minSdkVersion buildConfig.minSdkVersion
@@ -40,7 +39,7 @@ android {
4039
}
4140

4241
dependencies {
43-
implementation 'com.google.android.material:material:1.4.0'
42+
implementation 'com.google.android.material:material:1.3.0'
4443
implementation "androidx.lifecycle:lifecycle-common-java8:2.4.0-alpha03"
4544
testImplementation 'junit:junit:4.13.2'
4645
androidTestImplementation 'androidx.test.ext:junit:1.1.3'

viewbinding-nonreflection-ktx/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ plugins {
66

77
android {
88
compileSdkVersion 30
9-
buildToolsVersion "30.0.2"
109

1110
defaultConfig {
1211
minSdkVersion buildConfig.minSdkVersion
@@ -40,7 +39,7 @@ android {
4039
}
4140

4241
dependencies {
43-
implementation 'com.google.android.material:material:1.4.0'
42+
implementation 'com.google.android.material:material:1.3.0'
4443
implementation "androidx.lifecycle:lifecycle-common-java8:2.4.0-alpha03"
4544
testImplementation 'junit:junit:4.13.2'
4645
androidTestImplementation 'androidx.test.ext:junit:1.1.3'

0 commit comments

Comments
 (0)