diff --git a/app/build.gradle.kts b/app/build.gradle.kts index bc915f12ef03..940bfc686f2c 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -179,7 +179,7 @@ android { } composeOptions { - kotlinCompilerExtensionVersion = "1.4.8" + kotlinCompilerExtensionVersion = "1.5.8" } flavorDimensions += listOf("versionCode", "platform") diff --git a/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/allergensalert/AllergensAlertFragment.kt b/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/allergensalert/AllergensAlertFragment.kt index f5b5cbc3e24f..6ca1ad05f49a 100644 --- a/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/allergensalert/AllergensAlertFragment.kt +++ b/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/allergensalert/AllergensAlertFragment.kt @@ -110,6 +110,7 @@ class AllergensAlertFragment : NavigationBaseFragment() { _binding = null } + @Deprecated("Deprecated in Java") override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) { // Set search as invisible menu.findItem(R.id.action_search).isVisible = false diff --git a/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/categories/fragment/CategoryListFragment.kt b/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/categories/fragment/CategoryListFragment.kt index 8b7b51501e84..314400e5c9d1 100644 --- a/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/categories/fragment/CategoryListFragment.kt +++ b/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/categories/fragment/CategoryListFragment.kt @@ -82,6 +82,7 @@ class CategoryListFragment : BaseFragment() { super.onDestroyView() } + @Deprecated("Deprecated in Java") override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) { inflater.inflate(R.menu.menu_main, menu) val searchManager = requireActivity().getSystemService()!! diff --git a/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/preferences/PreferencesFragment.kt b/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/preferences/PreferencesFragment.kt index c7ffd527b58f..8ab7d95ab33c 100644 --- a/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/preferences/PreferencesFragment.kt +++ b/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/preferences/PreferencesFragment.kt @@ -328,6 +328,7 @@ class PreferencesFragment : PreferenceFragmentCompat(), INavigationItem { } } + @Deprecated("Deprecated in Java") override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) { menu.findItem(R.id.action_search).isVisible = false } diff --git a/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/product/view/ProductViewFragment.kt b/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/product/view/ProductViewFragment.kt index fbbc74422664..8bc439a36c98 100644 --- a/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/product/view/ProductViewFragment.kt +++ b/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/product/view/ProductViewFragment.kt @@ -98,6 +98,7 @@ class ProductViewFragment : Fragment(), IProductView, OnRefreshListener { requireActivity() ) + @Deprecated("Deprecated in Java") override fun onOptionsItemSelected(item: MenuItem) = onOptionsItemSelected(requireActivity(), item) override fun onRefresh() { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 159a7ffeac76..072410d6a98c 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] # https://kotlinlang.org/docs/releases.html#release-details -kotlin = "1.8.22" +kotlin = "1.9.22" # https://github.com/Kotlin/kotlinx.coroutines kotlin-coroutines = "1.7.3" # https://github.com/FasterXML/jackson