Skip to content

Commit

Permalink
Rmv web and ios platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-tiurin committed Jun 21, 2024
1 parent b0096a0 commit cb6c9f2
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 57 deletions.
37 changes: 10 additions & 27 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down
32 changes: 28 additions & 4 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ const config: Config = {
position: 'left',
label: 'Docs',
},
{
type: 'search',
position: 'right',
},
{
label: 'Telegram',
href: 'https://t.me/ultron_framework',
Expand All @@ -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: [
Expand Down
26 changes: 13 additions & 13 deletions ultron-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ plugins {

kotlin {
jvm()
@OptIn(ExperimentalWasmDsl::class)
wasmJs()
// js(IR) {}
androidTarget {
compilations.all {
kotlinOptions {
Expand All @@ -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 {
Expand Down
25 changes: 12 additions & 13 deletions ultron-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,25 @@ plugins {

kotlin {
jvm()
wasmJs()
// js(IR) {}
androidTarget {
compilations.all {
kotlinOptions {
jvmTarget = "17"
}
}
}

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 {
Expand Down

0 comments on commit cb6c9f2

Please sign in to comment.