Skip to content

Commit

Permalink
Updated kotlin version to 1.8.22 and AGP to 8.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
siarhei-luskanau committed Jan 17, 2024
1 parent 0cd6cba commit 90010c4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ import siarhei.luskanau.managed.virtual.device.databinding.FragmentFirstBinding
* A simple [Fragment] subclass as the default destination in the navigation.
*/
class FirstFragment : Fragment() {
private var _binding: FragmentFirstBinding? = null
private var bindingLocal: FragmentFirstBinding? = null

// This property is only valid between onCreateView and
// onDestroyView.
private val binding get() = _binding!!
private val binding get() = bindingLocal!!

override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
_binding = FragmentFirstBinding.inflate(inflater, container, false)
): View {
bindingLocal = FragmentFirstBinding.inflate(inflater, container, false)
return binding.root
}

Expand All @@ -37,6 +37,6 @@ class FirstFragment : Fragment() {

override fun onDestroyView() {
super.onDestroyView()
_binding = null
bindingLocal = null
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ import siarhei.luskanau.managed.virtual.device.databinding.FragmentSecondBinding
* A simple [Fragment] subclass as the second destination in the navigation.
*/
class SecondFragment : Fragment() {
private var _binding: FragmentSecondBinding? = null
private var bindingLocal: FragmentSecondBinding? = null

// This property is only valid between onCreateView and
// onDestroyView.
private val binding get() = _binding!!
private val binding get() = bindingLocal!!

override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
_binding = FragmentSecondBinding.inflate(inflater, container, false)
): View {
bindingLocal = FragmentSecondBinding.inflate(inflater, container, false)
return binding.root
}

Expand All @@ -37,6 +37,6 @@ class SecondFragment : Fragment() {

override fun onDestroyView() {
super.onDestroyView()
_binding = null
bindingLocal = null
}
}
10 changes: 5 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[versions]
agp = "8.2.0"
android-material = "1.10.0"
androidx-navigation = "2.7.5"
agp = "8.2.1"
android-material = "1.11.0"
androidx-navigation = "2.7.6"
androidx-test-espresso = "3.6.0-alpha02"
build-android-compileSdk = "34"
build-android-minSdk = "21"
build-android-targetSdk = "34"
build-javaVersion = "VERSION_17"
build-jvmTarget = "17"
detekt = "1.23.4"
kotlin = "1.9.21"
kotlin = "1.9.22"
kotlinx-kover = "0.7.4"
ktlint = "1.0.1"
ktlint = "1.1.1"

[libraries]
android-material = { module = "com.google.android.material:material", version.ref = "android-material" }
Expand Down

0 comments on commit 90010c4

Please sign in to comment.