-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
11,663 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,5 @@ | ||
import org.jetbrains.compose.ExperimentalComposeLibrary | ||
|
||
plugins { | ||
kotlin("multiplatform") version "1.8.0" | ||
kotlin("plugin.serialization") version "1.8.0" | ||
// id("com.github.johnrengelman.shadow") version "7.1.2" // TODO also add support for jvm | ||
id("com.adarshr.test-logger") version "3.2.0" | ||
id("org.jetbrains.compose") version "1.3.0" | ||
`maven-publish` | ||
} | ||
|
||
group = "me.shalva97" | ||
version = "2.1.1" | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven") } | ||
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") | ||
} | ||
|
||
dependencies { | ||
commonMainImplementation("junit:junit:4.13.2") | ||
commonTestImplementation(kotlin("test-junit")) | ||
commonMainImplementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1") | ||
commonMainImplementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.0") | ||
commonMainImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") | ||
commonMainImplementation("org.kodein.di:kodein-di-framework-compose:7.18.0") | ||
commonMainImplementation("org.kodein.di:kodein-di:7.18.0") | ||
commonMainImplementation(compose.ui) | ||
commonMainImplementation(compose.foundation) | ||
commonMainImplementation(compose.materialIconsExtended) | ||
@OptIn(ExperimentalComposeLibrary::class) commonMainImplementation(compose.material3) | ||
commonMainImplementation(compose.runtime) | ||
} | ||
|
||
kotlin { | ||
jvm { | ||
val main by compilations.getting { | ||
kotlinOptions { | ||
jvmTarget = JavaVersion.VERSION_11.toString() | ||
} | ||
dependencies { | ||
implementation(compose.desktop.macos_x64) | ||
implementation("com.darkrockstudios:mpfilepicker:1.0.0") | ||
} | ||
} | ||
} | ||
|
||
js(IR) { | ||
browser() | ||
binaries.executable() | ||
} | ||
|
||
sourceSets { | ||
val commonMain by getting { | ||
|
||
} | ||
val commonTest by getting { | ||
dependencies { | ||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4") | ||
} | ||
} | ||
val jsMain by getting { | ||
dependencies { | ||
implementation(kotlin("stdlib-js")) | ||
implementation("org.jetbrains.kotlinx:kotlinx-html:0.8.1") | ||
} | ||
} | ||
} | ||
} | ||
|
||
compose.experimental { | ||
web.application {} | ||
} | ||
kotlin("multiplatform") version "1.8.0" apply false | ||
kotlin("plugin.serialization") version "1.8.0" apply false | ||
id("com.adarshr.test-logger") version "3.2.0" apply false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
jdk: | ||
- openjdk11 | ||
install: | ||
- echo "Running a custom install command" | ||
- ./gradlew -xtest clean publishJvmPublicationToMavenLocal | ||
- ./gradlew -xtest clean publishKotlinMultiplatformPublicationToMavenLocal |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import org.jetbrains.compose.ExperimentalComposeLibrary | ||
|
||
plugins { | ||
kotlin("multiplatform") version "1.8.0" | ||
kotlin("plugin.serialization") version "1.8.0" | ||
id("com.adarshr.test-logger") version "3.2.0" | ||
id("org.jetbrains.compose") version "1.3.0" | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
maven("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven") | ||
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") | ||
} | ||
|
||
kotlin { | ||
jvm { | ||
val main by compilations.getting { | ||
kotlinOptions { | ||
jvmTarget = JavaVersion.VERSION_11.toString() | ||
} | ||
dependencies { | ||
implementation(compose.desktop.macos_x64) | ||
implementation("com.darkrockstudios:mpfilepicker:1.0.0") | ||
} | ||
} | ||
} | ||
|
||
js(IR) { | ||
browser() | ||
binaries.executable() | ||
} | ||
|
||
sourceSets { | ||
val commonMain by getting { | ||
dependencies { | ||
implementation("junit:junit:4.13.2") | ||
implementation(kotlin("test-junit")) | ||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1") | ||
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.0") | ||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") | ||
implementation("org.kodein.di:kodein-di-framework-compose:7.18.0") | ||
implementation("org.kodein.di:kodein-di:7.18.0") | ||
implementation(compose.ui) | ||
implementation(compose.foundation) | ||
implementation(compose.materialIconsExtended) | ||
@OptIn(ExperimentalComposeLibrary::class) implementation(compose.material3) | ||
implementation(compose.runtime) | ||
implementation(project(":parser")) | ||
} | ||
} | ||
val commonTest by getting { | ||
dependencies { | ||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4") | ||
} | ||
} | ||
val jsMain by getting { | ||
dependencies { | ||
implementation(kotlin("stdlib-js")) | ||
implementation("org.jetbrains.kotlinx:kotlinx-html:0.8.1") | ||
} | ||
} | ||
} | ||
} | ||
|
||
compose.experimental { | ||
web.application {} | ||
} |
8 changes: 4 additions & 4 deletions
8
...Main/kotlin/gui/data/HistoryRepository.kt → ...mmonMain/kotlin/data/HistoryRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ommonMain/kotlin/gui/data/SettingsRepo.kt → ...rc/commonMain/kotlin/data/SettingsRepo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package gui.data | ||
package data | ||
|
||
import kotlinx.coroutines.flow.MutableStateFlow | ||
|
||
|
10 changes: 5 additions & 5 deletions
10
src/commonMain/kotlin/gui/di/kodein.kt → ...orm-ui/src/commonMain/kotlin/di/kodein.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...monMain/kotlin/gui/domain/fileSelector.kt → .../commonMain/kotlin/domain/fileSelector.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package gui.domain | ||
package domain | ||
|
||
import gui.models.HistoryFile | ||
import models.HistoryFile | ||
|
||
expect suspend fun selectAndParseFilesFromDisk(): List<HistoryFile> |
2 changes: 1 addition & 1 deletion
2
...mmonMain/kotlin/gui/models/HistoryFile.kt → ...c/commonMain/kotlin/models/HistoryFile.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package gui.models | ||
package models | ||
|
||
data class HistoryFile(val fileName: String, val contents: String) |
2 changes: 1 addition & 1 deletion
2
src/commonMain/kotlin/gui/models/HomeTab.kt → ...i/src/commonMain/kotlin/models/HomeTab.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ommonMain/kotlin/gui/ui/tabs/downloads.kt → ...rc/commonMain/kotlin/ui/tabs/downloads.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/commonMain/kotlin/gui/ui/tabs/stats.kt → ...ui/src/commonMain/kotlin/ui/tabs/stats.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/jsMain/kotlin/gui/di/mainDispatcher.kt → ...ui/src/jsMain/kotlin/di/mainDispatcher.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package gui.di | ||
package di | ||
|
||
import kotlinx.coroutines.CoroutineDispatcher | ||
import kotlinx.coroutines.Dispatchers | ||
|
4 changes: 2 additions & 2 deletions
4
src/jsMain/kotlin/gui/domain/Extensions.kt → ...ui/src/jsMain/kotlin/domain/Extensions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/jvmMain/kotlin/gui/di/mainDispatcher.kt → ...i/src/jvmMain/kotlin/di/mainDispatcher.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package gui.di | ||
package di | ||
|
||
import kotlinx.coroutines.CoroutineDispatcher | ||
import kotlinx.coroutines.Dispatchers | ||
|
4 changes: 2 additions & 2 deletions
4
...gui/domain/selectAndParseFilesFromDisk.kt → ...lin/domain/selectAndParseFilesFromDisk.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build |
Oops, something went wrong.