Skip to content

Commit

Permalink
WIP - statically generated BoCs
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonMeep committed Oct 2, 2022
1 parent a9c771b commit 8ddc869
Show file tree
Hide file tree
Showing 11 changed files with 344 additions and 156 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ plugins {
}

group = "com.libermall"
version = "0.0.1"
version = "0.1.0"

application {
mainClass.set("com.libermall.tnt.ApplicationKt")
Expand All @@ -46,15 +46,15 @@ kotlin {
jvm {
withJava()
compilations.all {
kotlinOptions.jvmTarget = "11"
kotlinOptions.jvmTarget = "1.8"
}
}
sourceSets {
val commonMain by getting {
dependencies {
implementation("com.github.ajalt.clikt:clikt:3.5.0")
implementation("com.github.ajalt.mordant:mordant:2.0.0-beta7")
implementation("com.github.andreypfau.ton-kotlin:ton-kotlin:c678f34b0a")
implementation("com.github.andreypfau.ton-kotlin:ton-kotlin:fcac45071f")
implementation("io.github.microutils:kotlin-logging:2.1.23")
implementation("io.insert-koin:koin-core:3.2.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0")
Expand Down
6 changes: 2 additions & 4 deletions src/commonMain/kotlin/com/libermall/tnt/Application.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
package com.libermall.tnt

import com.github.ajalt.clikt.core.subcommands
import com.libermall.tnt.command.CollectionCommand
import com.libermall.tnt.command.ItemCommand
import com.libermall.tnt.command.MintCommand
import com.libermall.tnt.command.TntCommand
import com.libermall.tnt.command.*
import com.libermall.tnt.logger.KoinLogger
import org.koin.core.context.startKoin
import org.koin.core.logger.Level
Expand All @@ -37,6 +34,7 @@ fun main(args: Array<String>) {
CollectionCommand(),
ItemCommand(),
MintCommand(),
SendCommand(),
)
.main(args)
}
4 changes: 4 additions & 0 deletions src/commonMain/kotlin/com/libermall/tnt/Utility.kt
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,7 @@ fun ContentData.flatten(): ByteArray = when (this) {
}

expect fun readFileAsString(file: String): String

expect fun readFileAsByteArray(file: String): ByteArray

expect fun writeByteArrayToFile(base: String, file: String, value: ByteArray): String
Loading

0 comments on commit 8ddc869

Please sign in to comment.