Started buidling sample structure

This commit is contained in:
Ugljesa Jovanovic committed 2020-10-17 18:08:12 +02:00
1 parent 0a52a55a9d
commit d81f1eea4b
4 files changed
+51 -31

No files matched your search

+6 -22
View File
@@ -27,6 +27,7 @@ plugins {
id(PluginsDeps.kotlinAndroidExtensions)
id(PluginsDeps.mavenPublish)
id(PluginsDeps.signing)
kotlin(PluginsDeps.kotlinSerializationPlugin) version Versions.kotlinSerializationPlugin
}
org.jetbrains.kotlin.gradle.targets.js.npm.NpmResolverPlugin.apply(project)
@@ -91,12 +92,7 @@ kotlin {
// Linux 32 is using target-sysroot-2-raspberrypi which is missing getrandom and explicit_bzero in stdlib
// so konanc can't build klib because getrandom missing will cause sodium_misuse()
// so 32bit will be only available from non-delegated flavor
// linuxArm32Hfp() {
// binaries {
// executable {
// }
// }
// }
linuxArm64() {
binaries {
executable {
@@ -172,6 +168,7 @@ kotlin {
implementation(kotlin(Deps.Common.stdLib))
implementation(kotlin(Deps.Common.test))
implementation(Deps.Common.kotlinBigNum)
implementation(Deps.Common.serialization)
implementation(project(":multiplatform-crypto-libsodium-bindings"))
}
}
@@ -242,10 +239,7 @@ kotlin {
dependencies {
implementation(kotlin(Deps.Js.stdLib))
implementation(Deps.Js.coroutines)
// implementation(Deps.Js.serialization)
// implementation(Deps.Js.ktorClient)
// implementation(Deps.Js.ktorClientSerialization)
// implementation(Deps.Js.ktorClientWebSockets)
// React
implementation(Deps.Js.React.react)
implementation(Deps.Js.React.reactDom)
@@ -256,12 +250,7 @@ kotlin {
implementation(Deps.Js.React.styled)
implementation(npm(Deps.Js.Npm.styledComponentsPair.first, Deps.Js.Npm.styledComponentsPair.second))
implementation(npm(Deps.Js.Npm.inlineStylePrefixesPair.first, Deps.Js.Npm.inlineStylePrefixesPair.second))
// Webpack ktor missing deps
// implementation(npm("text-encoding", "0.7.0"))
// implementation(npm("abort-controller", "3.0.0"))
// implementation(npm("bufferutil", "4.0.1"))
// implementation(npm("utf-8-validate", "5.0.2"))
// implementation(npm("fs"))
}
}
val jsTest by getting {
@@ -275,12 +264,7 @@ kotlin {
val linuxTest by getting {
dependsOn(nativeTest)
}
// val linuxArm32HfpMain by getting {
// dependsOn(nativeMain)
// }
// val linuxArm32HfpTest by getting {
// dependsOn(nativeTest)
// }
val linuxArm64Main by getting {
dependsOn(nativeMain)
}
@@ -0,0 +1,28 @@
package com.ionspin.kotlin.crypto.sample.di
import kotlinx.serialization.json.Json
/**
* Created by Ugljesa Jovanovic
* ugljesa.jovanovic@ionspin.com
* on 17-Oct-2020
*/
object ServiceLocator : ServiceLocatorInterface {
override val Storage: StorageModule = StorageModule.StorageServiceLocator()
}
interface ServiceLocatorInterface {
val Storage: StorageModule
}
interface StorageModule {
val json: Json
class StorageServiceLocator : StorageModule {
override val json = Json {
prettyPrint = true
}
}
}
@@ -0,0 +1,10 @@
package com.ionspin.kotlin.crypto.sample.ui
/**
* Created by Ugljesa Jovanovic
* ugljesa.jovanovic@ionspin.com
* on 17-Oct-2020
*/
class LandingController {
}