From cb6c9f2e6b68413246027e7ce522615092576948 Mon Sep 17 00:00:00 2001 From: Aleksei Tiurin Date: Fri, 21 Jun 2024 23:12:45 +0300 Subject: [PATCH] Rmv web and ios platforms --- composeApp/build.gradle.kts | 37 +++++++++------------------------ docs/docusaurus.config.ts | 32 ++++++++++++++++++++++++---- ultron-common/build.gradle.kts | 26 +++++++++++------------ ultron-compose/build.gradle.kts | 25 +++++++++++----------- 4 files changed, 63 insertions(+), 57 deletions(-) diff --git a/composeApp/build.gradle.kts b/composeApp/build.gradle.kts index 3fd8cc1e..8d406a78 100644 --- a/composeApp/build.gradle.kts +++ b/composeApp/build.gradle.kts @@ -14,23 +14,6 @@ plugins { } kotlin { - @OptIn(ExperimentalWasmDsl::class) - wasmJs { - moduleName = "composeApp" - browser { - commonWebpackConfig { - outputFileName = "composeApp.js" - devServer = (devServer ?: KotlinWebpackConfig.DevServer()).apply { - static = (static ?: mutableListOf()).apply { - // Serve sources to debug inside browser - add(project.projectDir.path) - } - } - } - } - binaries.executable() - } - androidTarget { @OptIn(ExperimentalKotlinGradlePluginApi::class) compilerOptions { @@ -49,16 +32,16 @@ kotlin { jvm("desktop") - listOf( - iosX64(), - iosArm64(), - iosSimulatorArm64() - ).forEach { iosTarget -> - iosTarget.binaries.framework { - baseName = "ComposeApp" - isStatic = true - } - } +// listOf( +// iosX64(), +// iosArm64(), +// iosSimulatorArm64() +// ).forEach { iosTarget -> +// iosTarget.binaries.framework { +// baseName = "ComposeApp" +// isStatic = true +// } +// } sourceSets { val desktopMain by getting diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts index 61542c53..988b0de3 100644 --- a/docs/docusaurus.config.ts +++ b/docs/docusaurus.config.ts @@ -57,10 +57,6 @@ const config: Config = { position: 'left', label: 'Docs', }, - { - type: 'search', - position: 'right', - }, { label: 'Telegram', href: 'https://t.me/ultron_framework', @@ -71,8 +67,36 @@ const config: Config = { label: 'GitHub', position: 'right', }, + { + type: 'search', + position: 'right', + }, ], }, + algolia: { + // The application ID provided by Algolia + appId: 'TLB3E9OO68', + + // Public API key: it is safe to commit it + apiKey: '06f26f943a74848657b1e5bec4c85aaf', + + indexName: 'open-toolio', + + // Optional: see doc section below + contextualSearch: true, + + // Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs + replaceSearchResultPathname: { + from: '/docs/', // or as RegExp: /\/docs\// + to: '/', + }, + + // Optional: Algolia search parameters + searchParameters: {}, + + // Optional: whether the insights feature is enabled or not on Docsearch (`false` by default) + insights: false, + }, // footer: { // style: 'dark', // links: [ diff --git a/ultron-common/build.gradle.kts b/ultron-common/build.gradle.kts index eb5218db..e3b3ec0d 100644 --- a/ultron-common/build.gradle.kts +++ b/ultron-common/build.gradle.kts @@ -7,9 +7,6 @@ plugins { kotlin { jvm() - @OptIn(ExperimentalWasmDsl::class) - wasmJs() -// js(IR) {} androidTarget { compilations.all { kotlinOptions { @@ -18,16 +15,19 @@ kotlin { } } - listOf( - iosX64(), - iosArm64(), - iosSimulatorArm64() - ).forEach { - it.binaries.framework { - baseName = "shared" - isStatic = true - } - } +// @OptIn(ExperimentalWasmDsl::class) +// wasmJs() +// js(IR) {} +// listOf( +// iosX64(), +// iosArm64(), +// iosSimulatorArm64() +// ).forEach { +// it.binaries.framework { +// baseName = "shared" +// isStatic = true +// } +// } sourceSets { commonMain.dependencies { diff --git a/ultron-compose/build.gradle.kts b/ultron-compose/build.gradle.kts index 21b58ad5..df641ab5 100644 --- a/ultron-compose/build.gradle.kts +++ b/ultron-compose/build.gradle.kts @@ -8,8 +8,6 @@ plugins { kotlin { jvm() - wasmJs() -// js(IR) {} androidTarget { compilations.all { kotlinOptions { @@ -17,17 +15,18 @@ kotlin { } } } - - listOf( - iosX64(), - iosArm64(), - iosSimulatorArm64() - ).forEach { - it.binaries.framework { - baseName = "shared" - isStatic = true - } - } +// wasmJs() +// js(IR) {} +// listOf( +// iosX64(), +// iosArm64(), +// iosSimulatorArm64() +// ).forEach { +// it.binaries.framework { +// baseName = "shared" +// isStatic = true +// } +// } sourceSets { commonMain.dependencies {