Fix project package structure
This commit is contained in:
parent
6aa5a827ae
commit
ef440c8a9f
19 changed files with 21 additions and 22 deletions
|
@ -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 {
|
||||||
|
|
||||||
|
|
|
@ -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()) {
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package net.agorise.shared.crypto
|
package net.agorise.library.crypto
|
||||||
|
|
||||||
import java.math.BigInteger
|
import java.math.BigInteger
|
||||||
|
|
|
@ -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.
|
|
@ -1,4 +1,4 @@
|
||||||
package net.agorise.shared.crypto.bn256
|
package net.agorise.library.crypto.bn256
|
||||||
|
|
||||||
import java.math.BigInteger
|
import java.math.BigInteger
|
||||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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 {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package net.agorise.shared.preferences
|
package net.agorise.library.preferences
|
||||||
|
|
||||||
import com.russhwolf.settings.Settings
|
import com.russhwolf.settings.Settings
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package net.agorise.shared.stargate
|
package net.agorise.library.stargate
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a Dero node
|
* Represents a Dero node
|
|
@ -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
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -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",
|
|
@ -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.
|
|
@ -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",
|
|
@ -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(" ")
|
|
@ -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()
|
Loading…
Reference in a new issue