diff --git a/SampleApplications/NativeApp/build.gradle.kts b/SampleApplications/NativeApp/build.gradle.kts new file mode 100644 index 00000000..a2a59a7f --- /dev/null +++ b/SampleApplications/NativeApp/build.gradle.kts @@ -0,0 +1,29 @@ +plugins { + kotlin("multiplatform") +} + + +kotlin { + targetHierarchy.default() + + linuxX64() + mingwX64() + macosX64() + macosArm64() + + + sourceSets { + + val nativeMain by getting { + dependencies { + implementation(project(":fints4k")) + + implementation("com.github.ajalt.clikt:clikt:3.5.4") + + // only needed for writing files to output + implementation("com.soywiz.korlibs.korio:korio:3.4.0") + } + } + + } +} \ No newline at end of file diff --git a/fints4k/src/nativeMain/kotlin/NativeApp.kt b/SampleApplications/NativeApp/src/nativeMain/kotlin/NativeApp.kt similarity index 100% rename from fints4k/src/nativeMain/kotlin/NativeApp.kt rename to SampleApplications/NativeApp/src/nativeMain/kotlin/NativeApp.kt diff --git a/fints4k/src/nativeMain/kotlin/commands/CommonConfig.kt b/SampleApplications/NativeApp/src/nativeMain/kotlin/commands/CommonConfig.kt similarity index 100% rename from fints4k/src/nativeMain/kotlin/commands/CommonConfig.kt rename to SampleApplications/NativeApp/src/nativeMain/kotlin/commands/CommonConfig.kt diff --git a/fints4k/src/nativeMain/kotlin/commands/ConfigNames.kt b/SampleApplications/NativeApp/src/nativeMain/kotlin/commands/ConfigNames.kt similarity index 100% rename from fints4k/src/nativeMain/kotlin/commands/ConfigNames.kt rename to SampleApplications/NativeApp/src/nativeMain/kotlin/commands/ConfigNames.kt diff --git a/fints4k/src/nativeMain/kotlin/commands/TransferMoneyCommand.kt b/SampleApplications/NativeApp/src/nativeMain/kotlin/commands/TransferMoneyCommand.kt similarity index 100% rename from fints4k/src/nativeMain/kotlin/commands/TransferMoneyCommand.kt rename to SampleApplications/NativeApp/src/nativeMain/kotlin/commands/TransferMoneyCommand.kt diff --git a/fints4k/src/nativeMain/kotlin/commands/fints4kCommandLineInterface.kt b/SampleApplications/NativeApp/src/nativeMain/kotlin/commands/fints4kCommandLineInterface.kt similarity index 100% rename from fints4k/src/nativeMain/kotlin/commands/fints4kCommandLineInterface.kt rename to SampleApplications/NativeApp/src/nativeMain/kotlin/commands/fints4kCommandLineInterface.kt diff --git a/fints4k/src/nativeMain/kotlin/main.kt b/SampleApplications/NativeApp/src/nativeMain/kotlin/main.kt similarity index 100% rename from fints4k/src/nativeMain/kotlin/main.kt rename to SampleApplications/NativeApp/src/nativeMain/kotlin/main.kt diff --git a/fints4k/src/nativeMain/kotlin/net.dankito.banking.fints/FinTsClientExtensions.kt b/SampleApplications/NativeApp/src/nativeMain/kotlin/net.dankito.banking.fints/FinTsClientExtensions.kt similarity index 100% rename from fints4k/src/nativeMain/kotlin/net.dankito.banking.fints/FinTsClientExtensions.kt rename to SampleApplications/NativeApp/src/nativeMain/kotlin/net.dankito.banking.fints/FinTsClientExtensions.kt diff --git a/fints4k/src/nativeMain/kotlin/util/CsvWriter.kt b/SampleApplications/NativeApp/src/nativeMain/kotlin/util/CsvWriter.kt similarity index 100% rename from fints4k/src/nativeMain/kotlin/util/CsvWriter.kt rename to SampleApplications/NativeApp/src/nativeMain/kotlin/util/CsvWriter.kt diff --git a/fints4k/src/nativeMain/kotlin/util/OutputFormat.kt b/SampleApplications/NativeApp/src/nativeMain/kotlin/util/OutputFormat.kt similarity index 100% rename from fints4k/src/nativeMain/kotlin/util/OutputFormat.kt rename to SampleApplications/NativeApp/src/nativeMain/kotlin/util/OutputFormat.kt diff --git a/settings.gradle b/settings.gradle index bc6ad089..12467ad8 100644 --- a/settings.gradle +++ b/settings.gradle @@ -27,3 +27,7 @@ include "CorsProxy" findProject(":CorsProxy")?.projectDir = file("SampleApplications/CorsProxy") findProject(":CorsProxy")?.name = "CorsProxy" +include("NativeApp") +findProject(":NativeApp")?.projectDir = file("SampleApplications/NativeApp") +findProject(":NativeApp")?.name = "NativeApp" +