Fix project package structure

This commit is contained in:
Severiano Jaramillo 2024-05-05 19:37:56 -07:00
parent 6aa5a827ae
commit ef440c8a9f
19 changed files with 21 additions and 22 deletions

View file

@ -13,7 +13,7 @@ import cafe.adriel.voyager.navigator.LocalNavigator
import net.agorise.kee.ui.component.topappbar.KeeTopAppBar import net.agorise.kee.ui.component.topappbar.KeeTopAppBar
import net.agorise.kee.ui.screen.importaccount.ImportAccountScreen import net.agorise.kee.ui.screen.importaccount.ImportAccountScreen
import net.agorise.kee.ui.theme.KeeTheme import net.agorise.kee.ui.theme.KeeTheme
import net.agorise.shared.preferences.KeePreferences import net.agorise.library.preferences.KeePreferences
class HomeScreen : Screen { class HomeScreen : Screen {

View file

@ -3,12 +3,11 @@ package net.agorise.kee.ui.screen.importaccount
import cafe.adriel.voyager.core.model.StateScreenModel import cafe.adriel.voyager.core.model.StateScreenModel
import cafe.adriel.voyager.core.model.screenModelScope import cafe.adriel.voyager.core.model.screenModelScope
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.IO
import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.flow.receiveAsFlow import kotlinx.coroutines.flow.receiveAsFlow
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
import net.agorise.shared.stargate.StargateBridge import net.agorise.library.stargate.StargateBridge
class ImportAccountScreenModel : StateScreenModel<ImportAccountScreenModel.State>(State()) { class ImportAccountScreenModel : StateScreenModel<ImportAccountScreenModel.State>(State()) {

View file

@ -1,4 +1,4 @@
package net.agorise.shared.crypto package net.agorise.library.crypto
import java.math.BigInteger import java.math.BigInteger

View file

@ -1,4 +1,4 @@
package net.agorise.shared.crypto package net.agorise.library.crypto
/** /**
* Provides functionality to calculate CRC-32 checksums. * Provides functionality to calculate CRC-32 checksums.

View file

@ -1,4 +1,4 @@
package net.agorise.shared.crypto.bn256 package net.agorise.library.crypto.bn256
import java.math.BigInteger import java.math.BigInteger

View file

@ -1,6 +1,6 @@
@file:OptIn(ExperimentalUnsignedTypes::class) @file:OptIn(ExperimentalUnsignedTypes::class)
package net.agorise.shared.crypto.bn256 package net.agorise.library.crypto.bn256
/** /**
* GfP implementation ported over from https://github.com/deroproject/derohe/blob/main/cryptography/bn256/gfp.go * GfP implementation ported over from https://github.com/deroproject/derohe/blob/main/cryptography/bn256/gfp.go

View file

@ -1,6 +1,6 @@
@file:OptIn(ExperimentalUnsignedTypes::class) @file:OptIn(ExperimentalUnsignedTypes::class)
package net.agorise.shared.crypto.bn256 package net.agorise.library.crypto.bn256
// GfP arithmetic software implementation. We can add hardware implementation later on if necessary. // GfP arithmetic software implementation. We can add hardware implementation later on if necessary.
// Ported from https://github.com/deroproject/derohe/blob/main/cryptography/bn256/gfp_generic.go // Ported from https://github.com/deroproject/derohe/blob/main/cryptography/bn256/gfp_generic.go

View file

@ -1,4 +1,4 @@
package net.agorise.shared.crypto package net.agorise.library.crypto
import kotlin.test.Test import kotlin.test.Test
import kotlin.test.assertEquals import kotlin.test.assertEquals

View file

@ -1,4 +1,4 @@
package net.agorise.shared.crypto.bn256 package net.agorise.library.crypto.bn256
import kotlin.test.Test import kotlin.test.Test
import kotlin.test.assertEquals import kotlin.test.assertEquals

View file

@ -4,7 +4,7 @@ plugins {
} }
android { android {
namespace = "net.agorise.shared.preferences" namespace = "net.agorise.library.preferences"
compileSdk = libs.versions.android.compileSdk.get().toInt() compileSdk = libs.versions.android.compileSdk.get().toInt()
defaultConfig { defaultConfig {

View file

@ -1,4 +1,4 @@
package net.agorise.shared.preferences package net.agorise.library.preferences
import com.russhwolf.settings.Settings import com.russhwolf.settings.Settings

View file

@ -1,4 +1,4 @@
package net.agorise.shared.stargate package net.agorise.library.stargate
/** /**
* Represents a Dero node * Represents a Dero node

View file

@ -1,4 +1,4 @@
package net.agorise.shared.stargate package net.agorise.library.stargate
import io.ktor.client.HttpClient import io.ktor.client.HttpClient
import io.ktor.client.engine.cio.CIO import io.ktor.client.engine.cio.CIO

View file

@ -1,7 +1,7 @@
package net.agorise.shared.stargate.mnemonics package net.agorise.library.stargate.mnemonics
import io.ktor.utils.io.core.toByteArray import io.ktor.utils.io.core.toByteArray
import net.agorise.shared.crypto.Crc32 import net.agorise.library.crypto.Crc32
import java.math.BigInteger import java.math.BigInteger
/** /**

View file

@ -1,4 +1,4 @@
package net.agorise.shared.stargate.mnemonics package net.agorise.library.stargate.mnemonics
val mnemonicsEnglish = MnemonicsLanguage( val mnemonicsEnglish = MnemonicsLanguage(
name = "English", name = "English",

View file

@ -1,4 +1,4 @@
package net.agorise.shared.stargate.mnemonics package net.agorise.library.stargate.mnemonics
/** /**
* Represents a valid language for mnemonics. * Represents a valid language for mnemonics.

View file

@ -1,4 +1,4 @@
package net.agorise.shared.stargate.mnemonics package net.agorise.library.stargate.mnemonics
val mnemonicsSpanish = MnemonicsLanguage( val mnemonicsSpanish = MnemonicsLanguage(
name = "Español", name = "Español",

View file

@ -1,4 +1,4 @@
package net.agorise.shared.stargate.mnemonics package net.agorise.library.stargate.mnemonics
object MnemonicsDataProvider { object MnemonicsDataProvider {
val invalidSizeSeed = "invalid size seed".split(" ") val invalidSizeSeed = "invalid size seed".split(" ")

View file

@ -1,10 +1,10 @@
package net.agorise.shared.stargate.mnemonics package net.agorise.library.stargate.mnemonics
import kotlin.test.Test import kotlin.test.Test
import kotlin.test.assertEquals import kotlin.test.assertEquals
import kotlin.test.assertFalse import kotlin.test.assertFalse
import kotlin.test.assertTrue import kotlin.test.assertTrue
import net.agorise.shared.crypto.toHexString import net.agorise.library.crypto.toHexString
class MnemonicsTest { class MnemonicsTest {
private val mnemonics = Mnemonics() private val mnemonics = Mnemonics()