Upgrade dependencies
buildTools 31.0.0 -> 32.0.0 material 1.4.0 -> 1.5.0 navigation 2.3.5 -> 2.4.0 room 2.4.0 -> 2.4.1
This commit is contained in:
parent
717e530b3c
commit
fa236d369d
5 changed files with 12 additions and 9 deletions
|
@ -10,7 +10,7 @@ plugins {
|
|||
|
||||
android {
|
||||
compileSdk = 31
|
||||
buildToolsVersion = "31.0.0"
|
||||
buildToolsVersion = "32.0.0"
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "dev.jdtech.jellyfin"
|
||||
|
@ -72,7 +72,7 @@ dependencies {
|
|||
|
||||
|
||||
// Material
|
||||
implementation("com.google.android.material:material:1.4.0")
|
||||
implementation("com.google.android.material:material:1.5.0")
|
||||
|
||||
// ConstraintLayout
|
||||
implementation("androidx.constraintlayout:constraintlayout:2.1.3")
|
||||
|
@ -83,7 +83,7 @@ dependencies {
|
|||
implementation("androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion")
|
||||
|
||||
// Navigation
|
||||
val navigationVersion = "2.3.5"
|
||||
val navigationVersion = "2.4.0"
|
||||
implementation("androidx.navigation:navigation-fragment-ktx:$navigationVersion")
|
||||
implementation("androidx.navigation:navigation-ui-ktx:$navigationVersion")
|
||||
|
||||
|
@ -92,13 +92,13 @@ dependencies {
|
|||
implementation("androidx.recyclerview:recyclerview-selection:1.1.0")
|
||||
|
||||
// Room
|
||||
val roomVersion = "2.4.0"
|
||||
val roomVersion = "2.4.1"
|
||||
implementation("androidx.room:room-runtime:$roomVersion")
|
||||
kapt("androidx.room:room-compiler:$roomVersion")
|
||||
implementation("androidx.room:room-ktx:$roomVersion")
|
||||
|
||||
// Preference
|
||||
val preferenceVersion = "1.1.1"
|
||||
val preferenceVersion = "1.2.0"
|
||||
implementation("androidx.preference:preference-ktx:$preferenceVersion")
|
||||
|
||||
// Jellyfin
|
||||
|
|
|
@ -60,12 +60,12 @@ class MainActivity : AppCompatActivity() {
|
|||
|
||||
loadDownloadLocation(applicationContext)
|
||||
|
||||
viewModel.navigateToAddServer.observe(this, {
|
||||
viewModel.navigateToAddServer.observe(this) {
|
||||
if (it) {
|
||||
navController.navigate(HomeFragmentDirections.actionHomeFragmentToAddServerFragment())
|
||||
viewModel.doneNavigateToAddServer()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
override fun onSupportNavigateUp(): Boolean {
|
||||
|
|
|
@ -46,7 +46,7 @@ class HomeFragment : Fragment() {
|
|||
super.onCreate(savedInstanceState)
|
||||
setHasOptionsMenu(true)
|
||||
|
||||
findNavController().graph.startDestination = R.id.homeFragment
|
||||
findNavController().graph.setStartDestination(R.id.homeFragment)
|
||||
}
|
||||
|
||||
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
|
||||
|
|
|
@ -91,6 +91,7 @@
|
|||
app:popExitAnim="@anim/nav_default_pop_exit_anim" />
|
||||
<argument
|
||||
android:name="libraryType"
|
||||
android:defaultValue="unknown"
|
||||
app:argType="string"
|
||||
app:nullable="true" />
|
||||
</fragment>
|
||||
|
@ -109,6 +110,7 @@
|
|||
app:nullable="true" />
|
||||
<argument
|
||||
android:name="itemType"
|
||||
android:defaultValue="unknown"
|
||||
app:argType="string" />
|
||||
<argument
|
||||
android:name="playerItem"
|
||||
|
|
|
@ -15,7 +15,8 @@ buildscript {
|
|||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle.kts files
|
||||
val navVersion = "2.3.5"
|
||||
val navVersion = "2.5.0-alpha01"
|
||||
// NOTE: 2.5.0-alpha01 is used because 2.4.0 is incompatible with AGP 7.1
|
||||
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:$navVersion")
|
||||
|
||||
val hiltVersion = "2.40.5"
|
||||
|
|
Loading…
Reference in a new issue