Skip to content

Commit

Permalink
Remove x8bit references from project (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintPatrck authored Apr 17, 2024
1 parent 1867669 commit af1ab4c
Show file tree
Hide file tree
Showing 163 changed files with 600 additions and 601 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ plugins {
}

android {
namespace = "com.x8bit.bitwarden.authenticator"
namespace = "com.bitwarden.authenticator"
compileSdk = libs.versions.compileSdk.get().toInt()

defaultConfig {
applicationId = "com.x8bit.bitwarden.authenticator"
applicationId = "com.bitwarden.authenticator"
minSdk = libs.versions.minSdk.get().toInt()
targetSdk = libs.versions.targetSdk.get().toInt()
versionCode = 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '8724b95439edde85bd15e0bd2e02195e')"
]
}
}
}
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
android:theme="@style/LaunchTheme"
tools:targetApi="31">
<activity
android:name="com.x8bit.bitwarden.authenticator.MainActivity"
android:name="com.bitwarden.authenticator.MainActivity"
android:exported="true"
android:launchMode="@integer/launchModeAPILevel"
android:theme="@style/LaunchTheme"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.x8bit.bitwarden.authenticator
package com.bitwarden.authenticator

import android.app.Application
import dagger.hilt.android.HiltAndroidApp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.x8bit.bitwarden.authenticator
package com.bitwarden.authenticator

import android.content.Intent
import android.os.Bundle
Expand All @@ -8,8 +8,8 @@ import androidx.appcompat.app.AppCompatActivity
import androidx.compose.runtime.getValue
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.x8bit.bitwarden.authenticator.ui.platform.feature.rootnav.RootNavScreen
import com.x8bit.bitwarden.authenticator.ui.platform.theme.AuthenticatorTheme
import com.bitwarden.authenticator.ui.platform.feature.rootnav.RootNavScreen
import com.bitwarden.authenticator.ui.platform.theme.AuthenticatorTheme
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.x8bit.bitwarden.authenticator
package com.bitwarden.authenticator

import android.content.Intent
import android.os.Parcelable
import androidx.lifecycle.viewModelScope
import com.x8bit.bitwarden.authenticator.data.platform.repository.SettingsRepository
import com.x8bit.bitwarden.authenticator.ui.platform.base.BaseViewModel
import com.x8bit.bitwarden.authenticator.ui.platform.feature.settings.appearance.model.AppTheme
import com.bitwarden.authenticator.data.platform.repository.SettingsRepository
import com.bitwarden.authenticator.ui.platform.base.BaseViewModel
import com.bitwarden.authenticator.ui.platform.feature.settings.appearance.model.AppTheme
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.x8bit.bitwarden.authenticator.data.auth.datasource.disk
package com.bitwarden.authenticator.data.auth.datasource.disk

/**
* Primary access point for disk information.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.x8bit.bitwarden.authenticator.data.auth.datasource.disk
package com.bitwarden.authenticator.data.auth.datasource.disk

import android.content.SharedPreferences
import com.x8bit.bitwarden.authenticator.data.platform.datasource.disk.BaseDiskSource.Companion.BASE_KEY
import com.x8bit.bitwarden.authenticator.data.platform.datasource.disk.BaseEncryptedDiskSource
import com.bitwarden.authenticator.data.platform.datasource.disk.BaseDiskSource.Companion.BASE_KEY
import com.bitwarden.authenticator.data.platform.datasource.disk.BaseEncryptedDiskSource

private const val LAST_ACTIVE_TIME_KEY = "$BASE_KEY:lastActiveTime"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.x8bit.bitwarden.authenticator.data.auth.datasource.disk.di
package com.bitwarden.authenticator.data.auth.datasource.disk.di

import android.content.SharedPreferences
import com.x8bit.bitwarden.authenticator.data.auth.datasource.disk.AuthDiskSource
import com.x8bit.bitwarden.authenticator.data.auth.datasource.disk.AuthDiskSourceImpl
import com.x8bit.bitwarden.authenticator.data.platform.datasource.di.EncryptedPreferences
import com.x8bit.bitwarden.authenticator.data.platform.datasource.di.UnencryptedPreferences
import com.bitwarden.authenticator.data.auth.datasource.disk.AuthDiskSource
import com.bitwarden.authenticator.data.auth.datasource.disk.AuthDiskSourceImpl
import com.bitwarden.authenticator.data.platform.datasource.di.EncryptedPreferences
import com.bitwarden.authenticator.data.platform.datasource.di.UnencryptedPreferences
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.x8bit.bitwarden.authenticator.data.auth.repository
package com.bitwarden.authenticator.data.auth.repository

/**
* Provides and API for modifying authentication state.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.x8bit.bitwarden.authenticator.data.auth.repository
package com.bitwarden.authenticator.data.auth.repository

import android.os.SystemClock
import com.x8bit.bitwarden.authenticator.data.auth.datasource.disk.AuthDiskSource
import com.bitwarden.authenticator.data.auth.datasource.disk.AuthDiskSource
import javax.inject.Inject

class AuthRepositoryImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.x8bit.bitwarden.authenticator.data.auth.repository.di
package com.bitwarden.authenticator.data.auth.repository.di

import com.x8bit.bitwarden.authenticator.data.auth.datasource.disk.AuthDiskSource
import com.x8bit.bitwarden.authenticator.data.auth.repository.AuthRepository
import com.x8bit.bitwarden.authenticator.data.auth.repository.AuthRepositoryImpl
import com.bitwarden.authenticator.data.auth.datasource.disk.AuthDiskSource
import com.bitwarden.authenticator.data.auth.repository.AuthRepository
import com.bitwarden.authenticator.data.auth.repository.AuthRepositoryImpl
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk
package com.bitwarden.authenticator.data.authenticator.datasource.disk

import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.entity.AuthenticatorItemEntity
import com.bitwarden.authenticator.data.authenticator.datasource.disk.entity.AuthenticatorItemEntity
import kotlinx.coroutines.flow.Flow

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk
package com.bitwarden.authenticator.data.authenticator.datasource.disk

import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.dao.ItemDao
import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.entity.AuthenticatorItemEntity
import com.x8bit.bitwarden.authenticator.data.platform.repository.util.bufferedMutableSharedFlow
import com.bitwarden.authenticator.data.authenticator.datasource.disk.dao.ItemDao
import com.bitwarden.authenticator.data.authenticator.datasource.disk.entity.AuthenticatorItemEntity
import com.bitwarden.authenticator.data.platform.repository.util.bufferedMutableSharedFlow
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.merge
import javax.inject.Inject
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.convertor
package com.bitwarden.authenticator.data.authenticator.datasource.disk.convertor

import androidx.room.ProvidedTypeConverter
import androidx.room.TypeConverter
import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.entity.AuthenticatorItemAlgorithm
import com.bitwarden.authenticator.data.authenticator.datasource.disk.entity.AuthenticatorItemAlgorithm

/**
* A [TypeConverter] to convert [AuthenticatorItemAlgorithm] to and from a [String].
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.convertor
package com.bitwarden.authenticator.data.authenticator.datasource.disk.convertor

import androidx.room.ProvidedTypeConverter
import androidx.room.TypeConverter
import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.entity.AuthenticatorItemType
import com.bitwarden.authenticator.data.authenticator.datasource.disk.entity.AuthenticatorItemType

/**
* A [TypeConverter] to convert [AuthenticatorItemType] to and from a [String].
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.dao
package com.bitwarden.authenticator.data.authenticator.datasource.disk.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.entity.AuthenticatorItemEntity
import com.bitwarden.authenticator.data.authenticator.datasource.disk.entity.AuthenticatorItemEntity
import kotlinx.coroutines.flow.Flow

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.database
package com.bitwarden.authenticator.data.authenticator.datasource.disk.database

import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.convertor.AuthenticatorItemAlgorithmConverter
import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.convertor.AuthenticatorItemTypeConverter
import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.dao.ItemDao
import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.entity.AuthenticatorItemEntity
import com.bitwarden.authenticator.data.authenticator.datasource.disk.convertor.AuthenticatorItemAlgorithmConverter
import com.bitwarden.authenticator.data.authenticator.datasource.disk.convertor.AuthenticatorItemTypeConverter
import com.bitwarden.authenticator.data.authenticator.datasource.disk.dao.ItemDao
import com.bitwarden.authenticator.data.authenticator.datasource.disk.entity.AuthenticatorItemEntity

/**
* Room database for storing any persisted data.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.di
package com.bitwarden.authenticator.data.authenticator.datasource.disk.di

import android.app.Application
import androidx.room.Room
import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.AuthenticatorDiskSource
import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.AuthenticatorDiskSourceImpl
import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.convertor.AuthenticatorItemAlgorithmConverter
import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.convertor.AuthenticatorItemTypeConverter
import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.dao.ItemDao
import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.database.AuthenticatorDatabase
import com.bitwarden.authenticator.data.authenticator.datasource.disk.AuthenticatorDiskSource
import com.bitwarden.authenticator.data.authenticator.datasource.disk.AuthenticatorDiskSourceImpl
import com.bitwarden.authenticator.data.authenticator.datasource.disk.convertor.AuthenticatorItemAlgorithmConverter
import com.bitwarden.authenticator.data.authenticator.datasource.disk.convertor.AuthenticatorItemTypeConverter
import com.bitwarden.authenticator.data.authenticator.datasource.disk.dao.ItemDao
import com.bitwarden.authenticator.data.authenticator.datasource.disk.database.AuthenticatorDatabase
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.entity
package com.bitwarden.authenticator.data.authenticator.datasource.disk.entity

/**
* Enum class representing SHA algorithms an authenticator item may be hashed with.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.entity
package com.bitwarden.authenticator.data.authenticator.datasource.disk.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.entity
package com.bitwarden.authenticator.data.authenticator.datasource.disk.entity

/**
* Enum representing the main type options for authenticator items.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.x8bit.bitwarden.authenticator.data.authenticator.datasource.sdk
package com.bitwarden.authenticator.data.authenticator.datasource.sdk

import com.bitwarden.core.DateTime
import com.bitwarden.core.TotpResponse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.x8bit.bitwarden.authenticator.data.authenticator.datasource.sdk
package com.bitwarden.authenticator.data.authenticator.datasource.sdk

import com.bitwarden.core.DateTime
import com.bitwarden.core.TotpResponse
import com.bitwarden.sdk.Client
import com.x8bit.bitwarden.authenticator.data.platform.manager.SdkClientManager
import com.bitwarden.authenticator.data.platform.manager.SdkClientManager
import javax.inject.Inject

class AuthenticatorSdkSourceImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.x8bit.bitwarden.authenticator.data.authenticator.datasource.sdk.di
package com.bitwarden.authenticator.data.authenticator.datasource.sdk.di

import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.sdk.AuthenticatorSdkSource
import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.sdk.AuthenticatorSdkSourceImpl
import com.x8bit.bitwarden.authenticator.data.platform.manager.SdkClientManager
import com.bitwarden.authenticator.data.authenticator.datasource.sdk.AuthenticatorSdkSource
import com.bitwarden.authenticator.data.authenticator.datasource.sdk.AuthenticatorSdkSourceImpl
import com.bitwarden.authenticator.data.platform.manager.SdkClientManager
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.x8bit.bitwarden.authenticator.data.authenticator.manager
package com.bitwarden.authenticator.data.authenticator.manager

import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.entity.AuthenticatorItemEntity
import com.x8bit.bitwarden.authenticator.data.authenticator.manager.model.VerificationCodeItem
import com.x8bit.bitwarden.authenticator.data.platform.repository.model.DataState
import com.bitwarden.authenticator.data.authenticator.datasource.disk.entity.AuthenticatorItemEntity
import com.bitwarden.authenticator.data.authenticator.manager.model.VerificationCodeItem
import com.bitwarden.authenticator.data.platform.repository.model.DataState
import kotlinx.coroutines.flow.StateFlow

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.x8bit.bitwarden.authenticator.data.authenticator.manager
package com.bitwarden.authenticator.data.authenticator.manager

import com.bitwarden.core.DateTime
import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.entity.AuthenticatorItemEntity
import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.sdk.AuthenticatorSdkSource
import com.x8bit.bitwarden.authenticator.data.authenticator.manager.model.VerificationCodeItem
import com.x8bit.bitwarden.authenticator.data.platform.manager.DispatcherManager
import com.x8bit.bitwarden.authenticator.data.platform.repository.model.DataState
import com.bitwarden.authenticator.data.authenticator.datasource.disk.entity.AuthenticatorItemEntity
import com.bitwarden.authenticator.data.authenticator.datasource.sdk.AuthenticatorSdkSource
import com.bitwarden.authenticator.data.authenticator.manager.model.VerificationCodeItem
import com.bitwarden.authenticator.data.platform.manager.DispatcherManager
import com.bitwarden.authenticator.data.platform.repository.model.DataState
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.currentCoroutineContext
import kotlinx.coroutines.delay
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.x8bit.bitwarden.authenticator.data.authenticator.manager.di
package com.bitwarden.authenticator.data.authenticator.manager.di

import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.sdk.AuthenticatorSdkSource
import com.x8bit.bitwarden.authenticator.data.authenticator.manager.TotpCodeManager
import com.x8bit.bitwarden.authenticator.data.authenticator.manager.TotpCodeManagerImpl
import com.x8bit.bitwarden.authenticator.data.platform.manager.DispatcherManager
import com.bitwarden.authenticator.data.authenticator.datasource.sdk.AuthenticatorSdkSource
import com.bitwarden.authenticator.data.authenticator.manager.TotpCodeManager
import com.bitwarden.authenticator.data.authenticator.manager.TotpCodeManagerImpl
import com.bitwarden.authenticator.data.platform.manager.DispatcherManager
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.x8bit.bitwarden.authenticator.data.authenticator.manager.model
package com.bitwarden.authenticator.data.authenticator.manager.model

/**
* Models the items returned by the TotpCodeManager.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.x8bit.bitwarden.authenticator.data.authenticator.repository
package com.bitwarden.authenticator.data.authenticator.repository

import com.x8bit.bitwarden.authenticator.data.authenticator.datasource.disk.entity.AuthenticatorItemEntity
import com.x8bit.bitwarden.authenticator.data.authenticator.manager.model.VerificationCodeItem
import com.x8bit.bitwarden.authenticator.data.authenticator.repository.model.AuthenticatorData
import com.x8bit.bitwarden.authenticator.data.authenticator.repository.model.CreateItemResult
import com.x8bit.bitwarden.authenticator.data.authenticator.repository.model.DeleteItemResult
import com.x8bit.bitwarden.authenticator.data.authenticator.repository.model.TotpCodeResult
import com.x8bit.bitwarden.authenticator.data.authenticator.repository.model.UpdateItemRequest
import com.x8bit.bitwarden.authenticator.data.authenticator.repository.model.UpdateItemResult
import com.x8bit.bitwarden.authenticator.data.platform.repository.model.DataState
import com.bitwarden.authenticator.data.authenticator.datasource.disk.entity.AuthenticatorItemEntity
import com.bitwarden.authenticator.data.authenticator.manager.model.VerificationCodeItem
import com.bitwarden.authenticator.data.authenticator.repository.model.AuthenticatorData
import com.bitwarden.authenticator.data.authenticator.repository.model.CreateItemResult
import com.bitwarden.authenticator.data.authenticator.repository.model.DeleteItemResult
import com.bitwarden.authenticator.data.authenticator.repository.model.TotpCodeResult
import com.bitwarden.authenticator.data.authenticator.repository.model.UpdateItemRequest
import com.bitwarden.authenticator.data.authenticator.repository.model.UpdateItemResult
import com.bitwarden.authenticator.data.platform.repository.model.DataState
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.StateFlow

Expand Down
Loading

0 comments on commit af1ab4c

Please sign in to comment.