File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
src/main/java/com/dylanc/viewbinding/base
viewbinding-nonreflection-ktx Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ plugins {
66
77android {
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
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ plugins {
55
66android {
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
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ plugins {
66
77android {
88 compileSdkVersion 30
9- buildToolsVersion " 30.0.2"
109
1110 defaultConfig {
1211 minSdkVersion buildConfig. minSdkVersion
@@ -40,7 +39,7 @@ android {
4039}
4140
4241dependencies {
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'
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ plugins {
66
77android {
88 compileSdkVersion 30
9- buildToolsVersion " 30.0.2"
109
1110 defaultConfig {
1211 minSdkVersion buildConfig. minSdkVersion
@@ -40,7 +39,7 @@ android {
4039}
4140
4241dependencies {
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'
You can’t perform that action at this time.
0 commit comments