diff --git a/build.gradle b/build.gradle index 9dd3365..6077e66 100644 --- a/build.gradle +++ b/build.gradle @@ -1,11 +1,11 @@ buildscript { - ext.kotlin_version = '1.4.31' + ext.kotlin_version = '1.5.0' repositories { google() jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:4.1.2' + classpath 'com.android.tools.build:gradle:4.2.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index ee9c8ef..8150090 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip diff --git a/sample/build.gradle b/sample/build.gradle index 632f002..f3964cb 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -32,6 +32,6 @@ android { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'androidx.appcompat:appcompat:1.2.0' - implementation 'androidx.fragment:fragment-ktx:1.3.0' + implementation 'androidx.fragment:fragment-ktx:1.3.3' implementation project(':ViewBinding-ktx') } diff --git a/sample/src/main/java/com/wada811/viewbindingktx/ViewBindingFragment.kt b/sample/src/main/java/com/wada811/viewbindingktx/ViewBindingFragment.kt index 052bea6..77e5012 100644 --- a/sample/src/main/java/com/wada811/viewbindingktx/ViewBindingFragment.kt +++ b/sample/src/main/java/com/wada811/viewbindingktx/ViewBindingFragment.kt @@ -11,7 +11,7 @@ class ViewBindingFragment : Fragment(R.layout.view_stub) { private val viewStubBinding: ViewStubBinding by viewBinding() override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) - viewStubBinding.viewStub.setOnInflateListener { stub, inflated -> + viewStubBinding.viewStub.setOnInflateListener { _, inflated -> val binding = ViewBindingFragmentBinding.bind(inflated) binding.text.text = requireArguments().getString(EXTRA_TEXT) }