mirror of
https://github.com/bitwarden/android.git
synced 2024-11-21 17:05:44 +03:00
BIT-200: Update CODEOWNERS file and restructure folders accordingly (#26)
This commit is contained in:
parent
6f524318b7
commit
dc48420820
32 changed files with 108 additions and 75 deletions
39
.github/CODEOWNERS
vendored
39
.github/CODEOWNERS
vendored
|
@ -9,3 +9,42 @@
|
|||
|
||||
# DevOps for Actions and other workflow changes.
|
||||
.github/workflows @bitwarden/dept-devops
|
||||
|
||||
# Auth
|
||||
app/src/main/java/com/x8bit/bitwarden/data/auth @bitwarden/team-auth-dev
|
||||
app/src/main/java/com/x8bit/bitwarden/ui/auth @bitwarden/team-auth-dev
|
||||
app/src/test/java/com/x8bit/bitwarden/data/auth @bitwarden/team-auth-dev
|
||||
app/src/test/java/com/x8bit/bitwarden/ui/auth @bitwarden/team-auth-dev
|
||||
|
||||
# AutoFill
|
||||
app/src/main/java/com/x8bit/bitwarden/data/autofill @bitwarden/team-autofill-dev
|
||||
app/src/main/java/com/x8bit/bitwarden/ui/autofill @bitwarden/team-autofill-dev
|
||||
app/src/test/java/com/x8bit/bitwarden/data/autofill @bitwarden/team-autofill-dev
|
||||
app/src/test/java/com/x8bit/bitwarden/ui/autofill @bitwarden/team-autofill-dev
|
||||
|
||||
# Platform
|
||||
app/src/main/java/com/x8bit/bitwarden/data/platform @bitwarden/team-platform-dev
|
||||
app/src/main/java/com/x8bit/bitwarden/ui/platform @bitwarden/team-platform-dev
|
||||
app/src/main/java/com/x8bit/bitwarden/ui/BitwardenApplication.kt @bitwarden/team-platform-dev
|
||||
app/src/main/java/com/x8bit/bitwarden/ui/MainActivity.kt @bitwarden/team-platform-dev
|
||||
app/src/main/res @bitwarden/team-platform-dev
|
||||
app/src/main/AndroidManifest.xml @bitwarden/team-platform-dev
|
||||
app/src/test/java/com/x8bit/bitwarden/data/platform @bitwarden/team-platform-dev
|
||||
app/src/test/java/com/x8bit/bitwarden/ui/platform @bitwarden/team-platform-dev
|
||||
app/src/.gitignore @bitwarden/team-platform-dev
|
||||
app/src/build.gradle.kts @bitwarden/team-platform-dev
|
||||
app/src/proguard-rules.pro @bitwarden/team-platform-dev
|
||||
docs @bitwarden/team-platform-dev
|
||||
gradle @bitwarden/team-platform-dev
|
||||
|
||||
# Tools
|
||||
app/src/main/java/com/x8bit/bitwarden/data/tools @bitwarden/team-tools-dev
|
||||
app/src/main/java/com/x8bit/bitwarden/ui/tools @bitwarden/team-tools-dev
|
||||
app/src/test/java/com/x8bit/bitwarden/data/tools @bitwarden/team-tools-dev
|
||||
app/src/test/java/com/x8bit/bitwarden/ui/tools @bitwarden/team-tools-dev
|
||||
|
||||
# Vault
|
||||
app/src/main/java/com/x8bit/bitwarden/data/vault @bitwarden/team-vault-dev
|
||||
app/src/main/java/com/x8bit/bitwarden/ui/vault @bitwarden/team-vault-dev
|
||||
app/src/test/java/com/x8bit/bitwarden/data/vault @bitwarden/team-vault-dev
|
||||
app/src/test/java/com/x8bit/bitwarden/ui/vault @bitwarden/team-vault-dev
|
||||
|
|
|
@ -3,8 +3,8 @@ package com.x8bit.bitwarden
|
|||
import android.os.Bundle
|
||||
import androidx.activity.ComponentActivity
|
||||
import androidx.activity.compose.setContent
|
||||
import com.x8bit.bitwarden.ui.feature.rootnav.RootNavScreen
|
||||
import com.x8bit.bitwarden.ui.theme.BitwardenTheme
|
||||
import com.x8bit.bitwarden.ui.platform.feature.rootnav.RootNavScreen
|
||||
import com.x8bit.bitwarden.ui.platform.theme.BitwardenTheme
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.x8bit.bitwarden.data.datasource.network.api
|
||||
package com.x8bit.bitwarden.data.platform.datasource.network.api
|
||||
|
||||
import com.x8bit.bitwarden.data.datasource.network.models.ConfigResponseJson
|
||||
import com.x8bit.bitwarden.data.platform.datasource.network.model.ConfigResponseJson
|
||||
import retrofit2.http.GET
|
||||
|
||||
/**
|
|
@ -1,4 +1,4 @@
|
|||
package com.x8bit.bitwarden.data.datasource.network
|
||||
package com.x8bit.bitwarden.data.platform.datasource.network.core
|
||||
|
||||
import okhttp3.Request
|
||||
import okio.Timeout
|
|
@ -1,4 +1,4 @@
|
|||
package com.x8bit.bitwarden.data.datasource.network
|
||||
package com.x8bit.bitwarden.data.platform.datasource.network.core
|
||||
|
||||
import retrofit2.Call
|
||||
import retrofit2.CallAdapter
|
|
@ -1,4 +1,4 @@
|
|||
package com.x8bit.bitwarden.data.datasource.network
|
||||
package com.x8bit.bitwarden.data.platform.datasource.network.core
|
||||
|
||||
import retrofit2.Call
|
||||
import retrofit2.CallAdapter
|
|
@ -1,8 +1,8 @@
|
|||
package com.x8bit.bitwarden.data.datasource.network.di
|
||||
package com.x8bit.bitwarden.data.platform.datasource.network.di
|
||||
|
||||
import com.jakewharton.retrofit2.converter.kotlinx.serialization.asConverterFactory
|
||||
import com.x8bit.bitwarden.data.datasource.network.ResultCallAdapterFactory
|
||||
import com.x8bit.bitwarden.data.datasource.network.api.ConfigApi
|
||||
import com.x8bit.bitwarden.data.platform.datasource.network.api.ConfigApi
|
||||
import com.x8bit.bitwarden.data.platform.datasource.network.core.ResultCallAdapterFactory
|
||||
import dagger.Module
|
||||
import dagger.Provides
|
||||
import dagger.hilt.InstallIn
|
|
@ -1,4 +1,4 @@
|
|||
package com.x8bit.bitwarden.data.datasource.network.models
|
||||
package com.x8bit.bitwarden.data.platform.datasource.network.model
|
||||
|
||||
import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
|
@ -1,14 +1,14 @@
|
|||
package com.x8bit.bitwarden.ui.feature.auth
|
||||
package com.x8bit.bitwarden.ui.auth.feature.auth
|
||||
|
||||
import androidx.navigation.NavController
|
||||
import androidx.navigation.NavGraphBuilder
|
||||
import androidx.navigation.NavHostController
|
||||
import androidx.navigation.NavOptions
|
||||
import androidx.navigation.navigation
|
||||
import com.x8bit.bitwarden.ui.feature.createaccount.createAccountDestinations
|
||||
import com.x8bit.bitwarden.ui.feature.createaccount.navigateToCreateAccount
|
||||
import com.x8bit.bitwarden.ui.feature.landing.LANDING_ROUTE
|
||||
import com.x8bit.bitwarden.ui.feature.landing.landingDestination
|
||||
import com.x8bit.bitwarden.ui.auth.feature.createaccount.createAccountDestinations
|
||||
import com.x8bit.bitwarden.ui.auth.feature.createaccount.navigateToCreateAccount
|
||||
import com.x8bit.bitwarden.ui.auth.feature.landing.LANDING_ROUTE
|
||||
import com.x8bit.bitwarden.ui.auth.feature.landing.landingDestination
|
||||
|
||||
const val AUTH_ROUTE: String = "auth"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.x8bit.bitwarden.ui.feature.createaccount
|
||||
package com.x8bit.bitwarden.ui.auth.feature.createaccount
|
||||
|
||||
import androidx.navigation.NavController
|
||||
import androidx.navigation.NavGraphBuilder
|
|
@ -1,4 +1,4 @@
|
|||
package com.x8bit.bitwarden.ui.feature.createaccount
|
||||
package com.x8bit.bitwarden.ui.auth.feature.createaccount
|
||||
|
||||
import android.widget.Toast
|
||||
import androidx.compose.foundation.background
|
||||
|
@ -19,8 +19,8 @@ import androidx.compose.ui.res.stringResource
|
|||
import androidx.compose.ui.unit.dp
|
||||
import androidx.lifecycle.viewmodel.compose.viewModel
|
||||
import com.x8bit.bitwarden.R
|
||||
import com.x8bit.bitwarden.ui.base.util.EventsEffect
|
||||
import com.x8bit.bitwarden.ui.components.BitwardenTextField
|
||||
import com.x8bit.bitwarden.ui.platform.base.util.EventsEffect
|
||||
import com.x8bit.bitwarden.ui.platform.components.BitwardenTextField
|
||||
|
||||
/**
|
||||
* Top level composable for the create account screen.
|
|
@ -1,6 +1,6 @@
|
|||
package com.x8bit.bitwarden.ui.feature.createaccount
|
||||
package com.x8bit.bitwarden.ui.auth.feature.createaccount
|
||||
|
||||
import com.x8bit.bitwarden.ui.base.BaseViewModel
|
||||
import com.x8bit.bitwarden.ui.platform.base.BaseViewModel
|
||||
import dagger.hilt.android.lifecycle.HiltViewModel
|
||||
import javax.inject.Inject
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.x8bit.bitwarden.ui.feature.landing
|
||||
package com.x8bit.bitwarden.ui.auth.feature.landing
|
||||
|
||||
import androidx.navigation.NavController
|
||||
import androidx.navigation.NavGraphBuilder
|
|
@ -1,4 +1,4 @@
|
|||
package com.x8bit.bitwarden.ui.feature.landing
|
||||
package com.x8bit.bitwarden.ui.auth.feature.landing
|
||||
|
||||
import androidx.compose.foundation.Image
|
||||
import androidx.compose.foundation.background
|
||||
|
@ -24,8 +24,8 @@ import androidx.compose.ui.unit.dp
|
|||
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
||||
import androidx.lifecycle.viewmodel.compose.viewModel
|
||||
import com.x8bit.bitwarden.R
|
||||
import com.x8bit.bitwarden.ui.base.util.EventsEffect
|
||||
import com.x8bit.bitwarden.ui.components.BitwardenTextField
|
||||
import com.x8bit.bitwarden.ui.platform.base.util.EventsEffect
|
||||
import com.x8bit.bitwarden.ui.platform.components.BitwardenTextField
|
||||
|
||||
/**
|
||||
* The top level composable for the Landing screen.
|
|
@ -1,6 +1,6 @@
|
|||
package com.x8bit.bitwarden.ui.feature.landing
|
||||
package com.x8bit.bitwarden.ui.auth.feature.landing
|
||||
|
||||
import com.x8bit.bitwarden.ui.base.BaseViewModel
|
||||
import com.x8bit.bitwarden.ui.platform.base.BaseViewModel
|
||||
import dagger.hilt.android.lifecycle.HiltViewModel
|
||||
import javax.inject.Inject
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.x8bit.bitwarden.ui.base
|
||||
package com.x8bit.bitwarden.ui.platform.base
|
||||
|
||||
import androidx.lifecycle.ViewModel
|
||||
import androidx.lifecycle.viewModelScope
|
|
@ -1,8 +1,8 @@
|
|||
package com.x8bit.bitwarden.ui.base.util
|
||||
package com.x8bit.bitwarden.ui.platform.base.util
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
import com.x8bit.bitwarden.ui.base.BaseViewModel
|
||||
import com.x8bit.bitwarden.ui.platform.base.BaseViewModel
|
||||
import kotlinx.coroutines.flow.launchIn
|
||||
import kotlinx.coroutines.flow.onEach
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.x8bit.bitwarden.ui.components
|
||||
package com.x8bit.bitwarden.ui.platform.components
|
||||
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
|
@ -1,4 +1,4 @@
|
|||
package com.x8bit.bitwarden.ui.components
|
||||
package com.x8bit.bitwarden.ui.platform.components
|
||||
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.Box
|
|
@ -1,4 +1,4 @@
|
|||
package com.x8bit.bitwarden.ui.feature.rootnav
|
||||
package com.x8bit.bitwarden.ui.platform.feature.rootnav
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.getValue
|
||||
|
@ -11,9 +11,9 @@ import androidx.navigation.compose.NavHost
|
|||
import androidx.navigation.compose.composable
|
||||
import androidx.navigation.compose.rememberNavController
|
||||
import androidx.navigation.navOptions
|
||||
import com.x8bit.bitwarden.ui.components.PlaceholderComposable
|
||||
import com.x8bit.bitwarden.ui.feature.auth.authDestinations
|
||||
import com.x8bit.bitwarden.ui.feature.auth.navigateToAuth
|
||||
import com.x8bit.bitwarden.ui.auth.feature.auth.authDestinations
|
||||
import com.x8bit.bitwarden.ui.auth.feature.auth.navigateToAuth
|
||||
import com.x8bit.bitwarden.ui.platform.components.PlaceholderComposable
|
||||
|
||||
/**
|
||||
* Controls root level [NavHost] for the app.
|
|
@ -1,7 +1,7 @@
|
|||
package com.x8bit.bitwarden.ui.feature.rootnav
|
||||
package com.x8bit.bitwarden.ui.platform.feature.rootnav
|
||||
|
||||
import androidx.lifecycle.viewModelScope
|
||||
import com.x8bit.bitwarden.ui.base.BaseViewModel
|
||||
import com.x8bit.bitwarden.ui.platform.base.BaseViewModel
|
||||
import dagger.hilt.android.lifecycle.HiltViewModel
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.launch
|
|
@ -1,4 +1,4 @@
|
|||
package com.x8bit.bitwarden.ui.theme
|
||||
package com.x8bit.bitwarden.ui.platform.theme
|
||||
|
||||
import android.app.Activity
|
||||
import android.content.Context
|
|
@ -1,4 +1,4 @@
|
|||
package com.x8bit.bitwarden.ui.theme
|
||||
package com.x8bit.bitwarden.ui.platform.theme
|
||||
|
||||
import androidx.compose.material3.Typography
|
||||
import androidx.compose.ui.text.TextStyle
|
|
@ -1,6 +1,5 @@
|
|||
package com.x8bit.bitwarden.example
|
||||
package com.x8bit.bitwarden.data.platform.datasource.network.core
|
||||
|
||||
import com.x8bit.bitwarden.data.datasource.network.ResultCallAdapterFactory
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import okhttp3.mockwebserver.MockResponse
|
||||
import okhttp3.mockwebserver.MockWebServer
|
|
@ -1,11 +1,11 @@
|
|||
package com.x8bit.bitwarden.example.ui.feature.createaccount
|
||||
package com.x8bit.bitwarden.ui.auth.feature.createaccount
|
||||
|
||||
import androidx.compose.ui.test.onNodeWithText
|
||||
import androidx.compose.ui.test.performClick
|
||||
import com.x8bit.bitwarden.example.ui.BaseComposeTest
|
||||
import com.x8bit.bitwarden.ui.feature.createaccount.CreateAccountAction
|
||||
import com.x8bit.bitwarden.ui.feature.createaccount.CreateAccountScreen
|
||||
import com.x8bit.bitwarden.ui.feature.createaccount.CreateAccountViewModel
|
||||
import com.x8bit.bitwarden.ui.platform.base.BaseComposeTest
|
||||
import com.x8bit.bitwarden.ui.auth.feature.createaccount.CreateAccountAction
|
||||
import com.x8bit.bitwarden.ui.auth.feature.createaccount.CreateAccountScreen
|
||||
import com.x8bit.bitwarden.ui.auth.feature.createaccount.CreateAccountViewModel
|
||||
import io.mockk.every
|
||||
import io.mockk.mockk
|
||||
import io.mockk.verify
|
|
@ -1,10 +1,10 @@
|
|||
package com.x8bit.bitwarden.example.ui.feature.createaccount
|
||||
package com.x8bit.bitwarden.ui.auth.feature.createaccount
|
||||
|
||||
import app.cash.turbine.test
|
||||
import com.x8bit.bitwarden.example.ui.BaseViewModelTest
|
||||
import com.x8bit.bitwarden.ui.feature.createaccount.CreateAccountAction
|
||||
import com.x8bit.bitwarden.ui.feature.createaccount.CreateAccountEvent
|
||||
import com.x8bit.bitwarden.ui.feature.createaccount.CreateAccountViewModel
|
||||
import com.x8bit.bitwarden.ui.platform.base.BaseViewModelTest
|
||||
import com.x8bit.bitwarden.ui.auth.feature.createaccount.CreateAccountAction
|
||||
import com.x8bit.bitwarden.ui.auth.feature.createaccount.CreateAccountEvent
|
||||
import com.x8bit.bitwarden.ui.auth.feature.createaccount.CreateAccountViewModel
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import org.junit.jupiter.api.Test
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
package com.x8bit.bitwarden.example.ui.feature.landing
|
||||
package com.x8bit.bitwarden.ui.auth.feature.landing
|
||||
|
||||
import androidx.compose.ui.test.onNodeWithTag
|
||||
import androidx.compose.ui.test.performClick
|
||||
import com.x8bit.bitwarden.example.ui.BaseComposeTest
|
||||
import com.x8bit.bitwarden.ui.feature.landing.LandingAction
|
||||
import com.x8bit.bitwarden.ui.feature.landing.LandingScreen
|
||||
import com.x8bit.bitwarden.ui.feature.landing.LandingState
|
||||
import com.x8bit.bitwarden.ui.feature.landing.LandingViewModel
|
||||
import com.x8bit.bitwarden.ui.auth.feature.landing.LandingAction
|
||||
import com.x8bit.bitwarden.ui.auth.feature.landing.LandingScreen
|
||||
import com.x8bit.bitwarden.ui.auth.feature.landing.LandingState
|
||||
import com.x8bit.bitwarden.ui.auth.feature.landing.LandingViewModel
|
||||
import com.x8bit.bitwarden.ui.platform.base.BaseComposeTest
|
||||
import io.mockk.every
|
||||
import io.mockk.mockk
|
||||
import io.mockk.verify
|
|
@ -1,11 +1,11 @@
|
|||
package com.x8bit.bitwarden.example.ui.feature.landing
|
||||
package com.x8bit.bitwarden.ui.auth.feature.landing
|
||||
|
||||
import app.cash.turbine.test
|
||||
import com.x8bit.bitwarden.example.ui.BaseViewModelTest
|
||||
import com.x8bit.bitwarden.ui.feature.landing.LandingAction
|
||||
import com.x8bit.bitwarden.ui.feature.landing.LandingEvent
|
||||
import com.x8bit.bitwarden.ui.feature.landing.LandingState
|
||||
import com.x8bit.bitwarden.ui.feature.landing.LandingViewModel
|
||||
import com.x8bit.bitwarden.ui.auth.feature.landing.LandingAction
|
||||
import com.x8bit.bitwarden.ui.auth.feature.landing.LandingEvent
|
||||
import com.x8bit.bitwarden.ui.auth.feature.landing.LandingState
|
||||
import com.x8bit.bitwarden.ui.auth.feature.landing.LandingViewModel
|
||||
import com.x8bit.bitwarden.ui.platform.base.BaseViewModelTest
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import org.junit.jupiter.api.Assertions.assertEquals
|
||||
import org.junit.jupiter.api.Test
|
|
@ -1,4 +1,4 @@
|
|||
package com.x8bit.bitwarden.example.ui
|
||||
package com.x8bit.bitwarden.ui.platform.base
|
||||
|
||||
import androidx.compose.ui.test.junit4.createComposeRule
|
||||
import dagger.hilt.android.testing.HiltTestApplication
|
|
@ -1,6 +1,5 @@
|
|||
package com.x8bit.bitwarden.example.ui
|
||||
package com.x8bit.bitwarden.ui.platform.base
|
||||
|
||||
import com.x8bit.bitwarden.example.MainDispatcherExtension
|
||||
import org.junit.jupiter.api.extension.RegisterExtension
|
||||
|
||||
abstract class BaseViewModelTest {
|
|
@ -1,4 +1,4 @@
|
|||
package com.x8bit.bitwarden.example
|
||||
package com.x8bit.bitwarden.ui.platform.base
|
||||
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
||||
|
@ -10,9 +10,7 @@ import org.junit.jupiter.api.extension.AfterAllCallback
|
|||
import org.junit.jupiter.api.extension.AfterEachCallback
|
||||
import org.junit.jupiter.api.extension.BeforeAllCallback
|
||||
import org.junit.jupiter.api.extension.BeforeEachCallback
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
import org.junit.jupiter.api.extension.ExtensionContext
|
||||
import org.junit.jupiter.api.extension.RegisterExtension
|
||||
|
||||
/**
|
||||
* JUnit 5 Extension for automatically setting a [testDispatcher] as the "main" dispatcher.
|
|
@ -1,9 +1,7 @@
|
|||
package com.x8bit.bitwarden.example.ui.feature.rootnav
|
||||
package com.x8bit.bitwarden.ui.platform.feature.rootnav
|
||||
|
||||
import app.cash.turbine.test
|
||||
import com.x8bit.bitwarden.example.ui.BaseViewModelTest
|
||||
import com.x8bit.bitwarden.ui.feature.rootnav.RootNavState
|
||||
import com.x8bit.bitwarden.ui.feature.rootnav.RootNavViewModel
|
||||
import com.x8bit.bitwarden.ui.platform.base.BaseViewModelTest
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import org.junit.jupiter.api.Test
|
||||
|
Loading…
Reference in a new issue