Skip to content

Commit

Permalink
Fix #45
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanCaiCoding committed Apr 7, 2022
1 parent 685c851 commit 28185e9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
5 changes: 2 additions & 3 deletions viewbinding-base/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ plugins {

android {
compileSdkVersion 30
buildToolsVersion "30.0.2"

defaultConfig {
minSdkVersion buildConfig.minSdkVersion
Expand Down Expand Up @@ -34,8 +33,8 @@ android {
}

buildFeatures {
viewBinding = true
dataBinding = true
viewBinding true
dataBinding true
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ object ViewBindingUtil {
} catch (e: NoSuchMethodException) {
} catch (e: ClassCastException) {
} catch (e: InvocationTargetException) {
throw e.targetException
var tagException: Throwable? = e
while (tagException is InvocationTargetException) {
tagException = e.cause
}
throw tagException ?: IllegalArgumentException("ViewBinding generic was found, but creation failed.")
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions viewbinding-brvah/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ plugins {

android {
compileSdkVersion 30
buildToolsVersion "30.0.2"

defaultConfig {
minSdkVersion buildConfig.minSdkVersion
Expand Down Expand Up @@ -33,7 +32,7 @@ android {
}

buildFeatures {
viewBinding = true
viewBinding true
}
}

Expand Down
3 changes: 1 addition & 2 deletions viewbinding-ktx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ plugins {

android {
compileSdkVersion 30
buildToolsVersion "30.0.2"

defaultConfig {
minSdkVersion buildConfig.minSdkVersion
Expand Down Expand Up @@ -40,7 +39,7 @@ android {
}

dependencies {
implementation 'com.google.android.material:material:1.4.0'
implementation 'com.google.android.material:material:1.3.0'
implementation "androidx.lifecycle:lifecycle-common-java8:2.4.0-alpha03"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
Expand Down
3 changes: 1 addition & 2 deletions viewbinding-nonreflection-ktx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ plugins {

android {
compileSdkVersion 30
buildToolsVersion "30.0.2"

defaultConfig {
minSdkVersion buildConfig.minSdkVersion
Expand Down Expand Up @@ -40,7 +39,7 @@ android {
}

dependencies {
implementation 'com.google.android.material:material:1.4.0'
implementation 'com.google.android.material:material:1.3.0'
implementation "androidx.lifecycle:lifecycle-common-java8:2.4.0-alpha03"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
Expand Down

0 comments on commit 28185e9

Please sign in to comment.