Move NavigationExtensions.kt to :app:ui:base

This commit is contained in:
cketti 2020-05-21 22:14:29 +02:00
parent 779f2a7b9a
commit 6bb407087e
7 changed files with 7 additions and 7 deletions

View file

@ -6,7 +6,7 @@ import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.setupActionBarWithNavController
import com.fsck.k9.jmap.R
import com.fsck.k9.ui.base.K9Activity
import com.fsck.k9.ui.findNavController
import com.fsck.k9.ui.base.extensions.findNavController
class AddAccountActivity : K9Activity() {
private lateinit var navController: NavController

View file

@ -8,6 +8,8 @@ dependencies {
implementation project(":app:core")
api "androidx.appcompat:appcompat:${versions.androidxAppCompat}"
api "androidx.navigation:navigation-fragment-ktx:${versions.androidxNavigation}"
api "androidx.navigation:navigation-ui-ktx:${versions.androidxNavigation}"
implementation "androidx.core:core-ktx:${versions.androidxCore}"
implementation "com.jakewharton.timber:timber:${versions.timber}"

View file

@ -1,4 +1,4 @@
package com.fsck.k9.ui
package com.fsck.k9.ui.base.extensions
import androidx.annotation.IdRes
import androidx.fragment.app.FragmentActivity

View file

@ -27,8 +27,6 @@ dependencies {
implementation "androidx.recyclerview:recyclerview:${versions.androidxRecyclerView}"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.androidxLifecycle}"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:${versions.androidxLifecycle}"
implementation "androidx.navigation:navigation-fragment-ktx:${versions.androidxNavigation}"
implementation "androidx.navigation:navigation-ui-ktx:${versions.androidxNavigation}"
implementation "androidx.constraintlayout:constraintlayout:${versions.androidxConstraintLayout}"
implementation "androidx.cardview:cardview:${versions.androidxCardView}"
implementation "androidx.localbroadcastmanager:localbroadcastmanager:1.0.0"

View file

@ -10,7 +10,7 @@ import androidx.navigation.ui.setupActionBarWithNavController
import com.fsck.k9.Account
import com.fsck.k9.ui.R
import com.fsck.k9.ui.base.K9Activity
import com.fsck.k9.ui.findNavController
import com.fsck.k9.ui.base.extensions.findNavController
class ManageFoldersActivity : K9Activity() {
private lateinit var navController: NavController

View file

@ -8,7 +8,7 @@ import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.setupActionBarWithNavController
import com.fsck.k9.ui.R
import com.fsck.k9.ui.base.K9Activity
import com.fsck.k9.ui.findNavController
import com.fsck.k9.ui.base.extensions.findNavController
class OnboardingActivity : K9Activity() {
private lateinit var navController: NavController

View file

@ -8,7 +8,7 @@ import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.setupActionBarWithNavController
import com.fsck.k9.ui.R
import com.fsck.k9.ui.base.K9Activity
import com.fsck.k9.ui.findNavController
import com.fsck.k9.ui.base.extensions.findNavController
class SettingsActivity : K9Activity() {
private lateinit var navController: NavController