Skip to content

Commit

Permalink
refactor: package io.timemates into org.timemates
Browse files Browse the repository at this point in the history
  • Loading branch information
y9vad9 committed Feb 20, 2024
1 parent 9ac818c commit 533e310
Show file tree
Hide file tree
Showing 198 changed files with 846 additions and 843 deletions.
2 changes: 1 addition & 1 deletion .run/Run Desktop App.run.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Run Desktop App" type="JetRunConfigurationType">
<option name="MAIN_CLASS_NAME" value="io.timemates.app.MainKt" />
<option name="MAIN_CLASS_NAME" value="org.timemates.app.MainKt" />
<module name="timemates-app.platforms.desktop.main" />
<shortenClasspath name="NONE" />
<method v="2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {

android {
defaultConfig {
namespace = "io.timemates.app.ui"
namespace = "org.timemates.app.ui"
}

buildFeatures {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ android {
compileSdk = 34

defaultConfig {
namespace = "io.timemates.app"
namespace = "org.timemates.app"
}

compileOptions {
Expand Down
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ plugins {
alias(libs.plugins.compose.multiplatform) apply false
}

group = "org.timemates.app"

allprojects {
tasks.withType<KotlinCompile> {
kotlinOptions {
Expand Down
2 changes: 1 addition & 1 deletion feature/authorization/data/database/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

android {
namespace = "io.timemates.app.authorization.data.database"
namespace = "org.timemates.app.authorization.data.database"
}

sqldelight {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.timemates.app.authorization.data
package org.timemates.app.authorization.data

import io.timemates.app.authorization.data.database.AccountDatabaseQueries
import org.timemates.app.authorization.data.database.AccountDatabaseQueries
import io.timemates.credentials.CredentialsStorage
import io.timemates.sdk.authorization.email.EmailAuthorizationApi
import io.timemates.sdk.authorization.email.requests.ConfigureNewAccountRequest
Expand All @@ -17,7 +17,7 @@ import io.timemates.sdk.common.exceptions.UnsupportedException
import io.timemates.sdk.users.profile.types.value.EmailAddress
import io.timemates.sdk.users.profile.types.value.UserDescription
import io.timemates.sdk.users.profile.types.value.UserName
import io.timemates.app.authorization.repositories.AuthorizationsRepository as AuthorizationRepositoryContract
import org.timemates.app.authorization.repositories.AuthorizationsRepository as AuthorizationRepositoryContract

class AuthorizationsRepository(
private val emailAuthApi: EmailAuthorizationApi,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.timemates.app.authorization.data
package org.timemates.app.authorization.data

import io.timemates.app.authorization.data.database.AccountDatabaseQueries
import org.timemates.app.authorization.data.database.AccountDatabaseQueries
import io.timemates.credentials.CredentialsStorage
import io.timemates.sdk.authorization.types.value.AccessHash
import io.timemates.sdk.common.constructor.createOrThrow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.timemates.app.authorization.data
package org.timemates.app.authorization.data

import io.timemates.credentials.CredentialsStorage
import io.timemates.sdk.authorization.sessions.types.Authorization
Expand All @@ -7,7 +7,7 @@ import io.timemates.sdk.common.constructor.createOrThrow
import io.timemates.sdk.common.exceptions.UnauthorizedException
import io.timemates.sdk.users.profile.types.value.UserId
import kotlinx.datetime.Instant
import io.timemates.app.authorization.data.database.Authorization as DbAuthorization
import org.timemates.app.authorization.data.database.Authorization as DbAuthorization

class DbAuthorizationMapper(
private val credentialsStorage: CredentialsStorage,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.timemates.app.authorization.dependencies
package org.timemates.app.authorization.dependencies

import app.cash.sqldelight.db.SqlDriver
import io.timemates.app.authorization.data.DatabaseAccessHashProvider
import io.timemates.app.authorization.data.DbAuthorizationMapper
import io.timemates.app.authorization.repositories.AuthorizationsRepository
import org.timemates.app.authorization.data.DatabaseAccessHashProvider
import org.timemates.app.authorization.data.DbAuthorizationMapper
import org.timemates.app.authorization.repositories.AuthorizationsRepository
import io.timemates.credentials.CredentialsStorage
import io.timemates.data.database.TimeMatesAuthorizations
import io.timemates.sdk.authorization.email.EmailAuthorizationApi
Expand All @@ -13,7 +13,7 @@ import io.timemates.sdk.common.providers.AccessHashProvider
import org.koin.core.annotation.Factory
import org.koin.core.annotation.Module
import org.koin.core.annotation.Named
import io.timemates.app.authorization.data.AuthorizationsRepository as AuthorizationsRepositoryImpl
import org.timemates.app.authorization.data.AuthorizationsRepository as AuthorizationsRepositoryImpl

@Module
class AuthorizationDataModule {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package io.timemates.app.authorization.dependencies.screens
package org.timemates.app.authorization.dependencies.screens

import io.timemates.app.authorization.dependencies.AuthorizationDataModule
import io.timemates.app.authorization.ui.afterstart.mvi.AfterStartReducer
import io.timemates.app.authorization.ui.afterstart.mvi.AfterStartStateMachine
import org.timemates.app.authorization.dependencies.AuthorizationDataModule
import org.timemates.app.authorization.ui.afterstart.mvi.AfterStartReducer
import org.timemates.app.authorization.ui.afterstart.mvi.AfterStartStateMachine
import io.timemates.sdk.authorization.email.types.value.VerificationHash
import org.koin.core.annotation.Factory
import org.koin.core.annotation.Module
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package io.timemates.app.authorization.dependencies.screens
package org.timemates.app.authorization.dependencies.screens

import io.timemates.app.authorization.dependencies.AuthorizationDataModule
import io.timemates.app.authorization.repositories.AuthorizationsRepository
import io.timemates.app.authorization.ui.configure_account.mvi.ConfigureAccountMiddleware
import io.timemates.app.authorization.ui.configure_account.mvi.ConfigureAccountReducer
import io.timemates.app.authorization.ui.configure_account.mvi.ConfigureAccountStateMachine
import io.timemates.app.authorization.usecases.CreateNewAccountUseCase
import io.timemates.app.authorization.validation.UserDescriptionValidator
import io.timemates.app.authorization.validation.UserNameValidator
import org.timemates.app.authorization.dependencies.AuthorizationDataModule
import org.timemates.app.authorization.repositories.AuthorizationsRepository
import org.timemates.app.authorization.ui.configure_account.mvi.ConfigureAccountMiddleware
import org.timemates.app.authorization.ui.configure_account.mvi.ConfigureAccountReducer
import org.timemates.app.authorization.ui.configure_account.mvi.ConfigureAccountStateMachine
import org.timemates.app.authorization.usecases.CreateNewAccountUseCase
import org.timemates.app.authorization.validation.UserDescriptionValidator
import org.timemates.app.authorization.validation.UserNameValidator
import io.timemates.sdk.authorization.email.types.value.VerificationHash
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package io.timemates.app.authorization.dependencies.screens
package org.timemates.app.authorization.dependencies.screens

import io.timemates.app.authorization.dependencies.AuthorizationDataModule
import io.timemates.app.authorization.repositories.AuthorizationsRepository
import io.timemates.app.authorization.ui.confirmation.mvi.ConfirmAuthorizationMiddleware
import io.timemates.app.authorization.ui.confirmation.mvi.ConfirmAuthorizationStateMachine
import io.timemates.app.authorization.ui.confirmation.mvi.ConfirmAuthorizationsReducer
import io.timemates.app.authorization.usecases.ConfirmEmailAuthorizationUseCase
import io.timemates.app.authorization.validation.ConfirmationCodeValidator
import org.timemates.app.authorization.dependencies.AuthorizationDataModule
import org.timemates.app.authorization.repositories.AuthorizationsRepository
import org.timemates.app.authorization.ui.confirmation.mvi.ConfirmAuthorizationMiddleware
import org.timemates.app.authorization.ui.confirmation.mvi.ConfirmAuthorizationStateMachine
import org.timemates.app.authorization.ui.confirmation.mvi.ConfirmAuthorizationsReducer
import org.timemates.app.authorization.usecases.ConfirmEmailAuthorizationUseCase
import org.timemates.app.authorization.validation.ConfirmationCodeValidator
import io.timemates.sdk.authorization.email.types.value.VerificationHash
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.timemates.app.authorization.dependencies.screens
package org.timemates.app.authorization.dependencies.screens

import io.timemates.app.authorization.ui.initial_authorization.mvi.InitialAuthorizationReducer
import io.timemates.app.authorization.ui.initial_authorization.mvi.InitialAuthorizationStateMachine
import org.timemates.app.authorization.ui.initial_authorization.mvi.InitialAuthorizationReducer
import org.timemates.app.authorization.ui.initial_authorization.mvi.InitialAuthorizationStateMachine
import org.koin.core.annotation.Factory
import org.koin.core.annotation.Module

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package io.timemates.app.authorization.dependencies.screens
package org.timemates.app.authorization.dependencies.screens

import io.timemates.app.authorization.dependencies.AuthorizationDataModule
import io.timemates.app.authorization.ui.new_account_info.mvi.NewAccountInfoReducer
import io.timemates.app.authorization.ui.new_account_info.mvi.NewAccountInfoStateMachine
import org.timemates.app.authorization.dependencies.AuthorizationDataModule
import org.timemates.app.authorization.ui.new_account_info.mvi.NewAccountInfoReducer
import org.timemates.app.authorization.ui.new_account_info.mvi.NewAccountInfoStateMachine
import io.timemates.sdk.authorization.email.types.value.VerificationHash
import org.koin.core.annotation.Factory
import org.koin.core.annotation.Module
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package io.timemates.app.authorization.dependencies.screens
package org.timemates.app.authorization.dependencies.screens

import io.timemates.app.authorization.dependencies.AuthorizationDataModule
import io.timemates.app.authorization.repositories.AuthorizationsRepository
import io.timemates.app.authorization.ui.start.mvi.StartAuthorizationMiddleware
import io.timemates.app.authorization.ui.start.mvi.StartAuthorizationReducer
import io.timemates.app.authorization.ui.start.mvi.StartAuthorizationStateMachine
import io.timemates.app.authorization.usecases.AuthorizeByEmailUseCase
import io.timemates.app.authorization.validation.EmailAddressValidator
import org.timemates.app.authorization.dependencies.AuthorizationDataModule
import org.timemates.app.authorization.repositories.AuthorizationsRepository
import org.timemates.app.authorization.ui.start.mvi.StartAuthorizationMiddleware
import org.timemates.app.authorization.ui.start.mvi.StartAuthorizationReducer
import org.timemates.app.authorization.ui.start.mvi.StartAuthorizationStateMachine
import org.timemates.app.authorization.usecases.AuthorizeByEmailUseCase
import org.timemates.app.authorization.validation.EmailAddressValidator
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import org.koin.core.annotation.Factory
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.timemates.app.authorization.repositories
package org.timemates.app.authorization.repositories

import io.timemates.sdk.authorization.email.requests.ConfigureNewAccountRequest
import io.timemates.sdk.authorization.email.requests.ConfirmAuthorizationRequest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.timemates.app.authorization.usecases
package org.timemates.app.authorization.usecases

import io.timemates.app.authorization.repositories.AuthorizationsRepository
import org.timemates.app.authorization.repositories.AuthorizationsRepository
import io.timemates.sdk.authorization.email.types.value.VerificationHash
import io.timemates.sdk.common.exceptions.TooManyRequestsException
import io.timemates.sdk.users.profile.types.value.EmailAddress
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.timemates.app.authorization.usecases
package org.timemates.app.authorization.usecases

import io.timemates.app.authorization.repositories.AuthorizationsRepository
import org.timemates.app.authorization.repositories.AuthorizationsRepository
import io.timemates.sdk.authorization.email.types.value.VerificationHash
import io.timemates.sdk.authorization.sessions.types.Authorization
import io.timemates.sdk.authorization.sessions.types.value.ConfirmationCode
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.timemates.app.authorization.usecases
package org.timemates.app.authorization.usecases

import io.timemates.app.authorization.repositories.AuthorizationsRepository
import org.timemates.app.authorization.repositories.AuthorizationsRepository
import io.timemates.sdk.authorization.email.types.value.VerificationHash
import io.timemates.sdk.authorization.sessions.types.Authorization
import io.timemates.sdk.users.profile.types.value.UserDescription
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.timemates.app.authorization.validation
package org.timemates.app.authorization.validation

import io.timemates.app.foundation.validation.Validator
import io.timemates.app.foundation.validation.unknownValidationFailure
import org.timemates.app.foundation.validation.Validator
import org.timemates.app.foundation.validation.unknownValidationFailure
import io.timemates.sdk.authorization.sessions.types.value.ConfirmationCode
import io.timemates.sdk.common.constructor.CreationFailure

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.timemates.app.authorization.validation
package org.timemates.app.authorization.validation

import io.timemates.app.foundation.validation.Validator
import io.timemates.app.foundation.validation.unknownValidationFailure
import org.timemates.app.foundation.validation.Validator
import org.timemates.app.foundation.validation.unknownValidationFailure
import io.timemates.sdk.common.constructor.CreationFailure
import io.timemates.sdk.users.profile.types.value.EmailAddress

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.timemates.app.authorization.validation
package org.timemates.app.authorization.validation

import io.timemates.app.foundation.validation.Validator
import io.timemates.app.foundation.validation.unknownValidationFailure
import org.timemates.app.foundation.validation.Validator
import org.timemates.app.foundation.validation.unknownValidationFailure
import io.timemates.sdk.common.constructor.CreationFailure
import io.timemates.sdk.users.profile.types.value.UserDescription

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package io.timemates.app.authorization.validation
package org.timemates.app.authorization.validation

import io.timemates.app.authorization.validation.UserNameValidator.Result
import io.timemates.app.foundation.validation.Validator
import io.timemates.app.foundation.validation.unknownValidationFailure
import org.timemates.app.authorization.validation.UserNameValidator.Result
import org.timemates.app.foundation.validation.Validator
import org.timemates.app.foundation.validation.unknownValidationFailure
import io.timemates.sdk.common.constructor.CreationFailure
import io.timemates.sdk.users.profile.types.value.UserName

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.timemates.app.authorization.usecases
package org.timemates.app.authorization.usecases

import io.mockk.coEvery
import io.mockk.mockk
import io.timemates.app.authorization.repositories.AuthorizationsRepository
import io.timemates.app.foundation.random.nextString
import org.timemates.app.authorization.repositories.AuthorizationsRepository
import org.timemates.app.foundation.random.nextString
import io.timemates.sdk.authorization.email.types.value.VerificationHash
import io.timemates.sdk.common.constructor.createOrThrow
import io.timemates.sdk.common.exceptions.TooManyRequestsException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.timemates.app.authorization.usecases
package org.timemates.app.authorization.usecases

import io.mockk.coEvery
import io.mockk.mockk
import io.timemates.app.authorization.repositories.AuthorizationsRepository
import io.timemates.app.foundation.random.nextString
import org.timemates.app.authorization.repositories.AuthorizationsRepository
import org.timemates.app.foundation.random.nextString
import io.timemates.sdk.authorization.email.requests.ConfirmAuthorizationRequest
import io.timemates.sdk.authorization.email.types.value.VerificationHash
import io.timemates.sdk.authorization.sessions.types.Authorization
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.timemates.app.authorization.validation
package org.timemates.app.authorization.validation

import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.timemates.app.authorization.validation
package org.timemates.app.authorization.validation

import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 533e310

Please sign in to comment.