Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
kotlin("jvm") version libs.versions.kotlin apply false
kotlin("multiplatform") version libs.versions.kotlin apply false
kotlin("android") version libs.versions.kotlin apply false
alias(libs.plugins.android.application) version libs.versions.agp apply false
alias(libs.plugins.android.library) version libs.versions.agp apply false
alias(libs.plugins.compose.multiplatform) version libs.versions.compose.multiplatform apply false
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.compose.multiplatform) apply false
}
13 changes: 7 additions & 6 deletions compose-action-menu/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

group = "nl.jacobras"
version = "3.0.1"
version = "3.1.0"

mavenPublishing {
publishToMavenCentral(SonatypeHost.S01, true)
Expand Down Expand Up @@ -41,14 +41,14 @@ mavenPublishing {
}

android {
compileSdk = 35
compileSdk = 36
namespace = "nl.jacobras.composeactionmenu"

buildFeatures {
compose = true
}
defaultConfig {
minSdk = 21
minSdk = 23
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
Expand All @@ -73,9 +73,10 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation(compose.foundation)
implementation(compose.material3)
implementation(compose.ui)
implementation(libs.compose.foundation)
implementation(libs.compose.icons)
implementation(libs.compose.material3)
implementation(libs.compose.ui)
}
}
val androidMain by getting {
Expand Down
2 changes: 2 additions & 0 deletions docs/809.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/809.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions docs/873.js

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions docs/873.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
* @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
*/

/*
* @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
*/

/*
* @copyright (c) 2016, Philipp Thürwächter, Pattrick Hüper
* @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
*/

/**
* @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
* @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
*/

/**
* @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
*/

//! @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos

//! @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors

//! @license BSD-3-Clause (see LICENSE in the root directory of this source tree)

//! @version @js-joda/core - 3.2.0
1 change: 1 addition & 0 deletions docs/873.js.map

Large diffs are not rendered by default.

Binary file added docs/8b586cd980cf66dcff7e.wasm
Binary file not shown.
2 changes: 0 additions & 2 deletions docs/META-INF/MANIFEST.MF

This file was deleted.

34 changes: 32 additions & 2 deletions docs/composeApp.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/composeApp.js.map

This file was deleted.

Binary file added docs/e9b28911e687b1ee6b42.wasm
Binary file not shown.
23 changes: 19 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,27 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Compose Action Menu web demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="application/javascript" src="skiko.js"></script>
<link type="text/css" rel="stylesheet" href="styles.css">
<script type="application/javascript" src="composeApp.js"></script>
</head>
<body>
<canvas id="ComposeTarget"></canvas>
<body style="background: #f2f3f9; text-align: center; align-content: center;">
<noscript>
You need to enable JavaScript to run Notes for Web.
</noscript>

<svg width="40" height="40" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<circle cx="25" cy="25" r="20" stroke="#ccc" stroke-width="4" fill="none"/>
<circle cx="25" cy="25" r="20" stroke="#333" stroke-width="4" fill="none"
stroke-linecap="round" stroke-dasharray="90 125">
<animateTransform attributeName="transform"
type="rotate"
from="0 25 25"
to="360 25 25"
dur="1s"
repeatCount="indefinite"/>
</circle>
</svg>
</body>
</html>
976 changes: 976 additions & 0 deletions docs/js-reexport-symbols.mjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/originJsComposeApp.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/originJsComposeApp.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/originWasmComposeApp.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/originWasmComposeApp.js.map

Large diffs are not rendered by default.

87 changes: 0 additions & 87 deletions docs/skiko.js

This file was deleted.

2,060 changes: 1,064 additions & 996 deletions docs/skiko.mjs

Large diffs are not rendered by default.

Binary file modified docs/skiko.wasm
Binary file not shown.
1,095 changes: 1,095 additions & 0 deletions docs/skikod8.mjs

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
24 changes: 14 additions & 10 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
[versions]
agp = "8.7.2"
compose-bom = "2024.11.00"
compose-multiplatform = "1.7.1"
kotlin = "2.0.21"
agp = "8.13.2"
compose = "1.10.0"
compose-icons = "1.7.3"
compose-material3 = "1.9.0"
kotlin = "2.3.0"

[libraries]
compose-activity = { group = "androidx.activity", name = "activity-compose", version = "1.9.3" }
compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "compose-bom" }
compose-foundation = { group = "androidx.compose.foundation", name = "foundation" }
compose-material3 = { group = "androidx.compose.material3", name = "material3" }
compose-ui = { group = "androidx.compose.ui", name = "ui" }
compose-activity = { group = "androidx.activity", name = "activity-compose", version = "1.12.2" }
compose-foundation = { module = "org.jetbrains.compose.foundation:foundation", version.ref = "compose" }
compose-icons = { module = "org.jetbrains.compose.material:material-icons-core", version.ref = "compose-icons" }
compose-material3 = { module = "org.jetbrains.compose.material3:material3", version.ref = "compose-material3" }
compose-resources = { module = "org.jetbrains.compose.components:components-resources", version.ref = "compose" }
compose-runtime = { module = "org.jetbrains.compose.runtime:runtime", version.ref = "compose" }
compose-ui = { module = "org.jetbrains.compose.ui:ui", version.ref = "compose" }
compose-uiToolingPreview = { module = "org.jetbrains.compose.ui:ui-tooling-preview", version.ref = "compose" }

[bundles]

[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
compose-multiplatform = { id = "org.jetbrains.compose", version.ref = "compose-multiplatform" }
compose-multiplatform = { id = "org.jetbrains.compose", version.ref = "compose" }
maven-publish = { id = "com.vanniktech.maven.publish", version = "0.30.0" }
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
12 changes: 4 additions & 8 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions kotlin-js-store/wasm/yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


"@js-joda/core@3.2.0":
version "3.2.0"
resolved "https://registry.yarnpkg.com/@js-joda/core/-/core-3.2.0.tgz#3e61e21b7b2b8a6be746df1335cf91d70db2a273"
integrity sha512-PMqgJ0sw5B7FKb2d5bWYIoxjri+QlW/Pys7+Rw82jSH0QN3rB05jZ/VrrsUdh1w4+i2kw9JOejXGq/KhDOX7Kg==
21 changes: 12 additions & 9 deletions sample-app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
kotlin("android")
alias(libs.plugins.android.application)
Expand All @@ -6,7 +8,7 @@ plugins {
}

android {
compileSdk = 35
compileSdk = 36
namespace = "nl.jacobras.composeactionmenu.sample"

buildFeatures {
Expand All @@ -19,32 +21,33 @@ android {
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
defaultConfig {
applicationId = "nl.jacobras.composeactionmenu"
minSdk = 21
minSdk = 23
targetSdk = 35
versionCode = 1
versionName = "1.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
kotlinOptions {
jvmTarget = "1.8"
}

kotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}

dependencies {
// BoMs
implementation(platform(libs.compose.bom))

// The actual library
implementation(project(":compose-action-menu"))

implementation(libs.compose.activity)
implementation(libs.compose.foundation)
implementation(libs.compose.icons)
implementation(libs.compose.material3)
implementation(libs.compose.ui)
}
5 changes: 2 additions & 3 deletions sample-desktop/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ plugins {
}

kotlin {
jvm {
withJava()
}
jvm()
sourceSets {
val jvmMain by getting {
dependencies {
implementation(compose.desktop.currentOs)
implementation(libs.compose.icons)
implementation(project(":compose-action-menu"))
}
}
Expand Down
4 changes: 2 additions & 2 deletions sample-web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

## Publication

1. `gradlew :sample-web:jsBrowserDistribution`
2. Copy files from `/sample-web/build/dist/js/productionExecutable` into `/docs`
1. `gradlew :sample-web:composeCompatibilityBrowserDistribution`
2. Copy files from `/sample-web/build/dist/composeWebCompatibility/productionExecutable` into `/docs`
3. Push files to repository
35 changes: 20 additions & 15 deletions sample-web/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnLockMismatchReport
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension
Expand All @@ -10,30 +10,35 @@ plugins {
}

kotlin {
js(IR) {
moduleName = "composeApp"
js {
outputModuleName = "composeApp"
browser {
commonWebpackConfig {
outputFileName = "composeApp.js"
}
}
binaries.executable()
}
@OptIn(ExperimentalWasmDsl::class)
wasmJs {
outputModuleName = "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()
}

sourceSets {
commonMain.dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material3)
implementation(compose.ui)
implementation(compose.components.resources)
implementation(compose.components.uiToolingPreview)
implementation(libs.compose.foundation)
implementation(libs.compose.icons)
implementation(libs.compose.material3)
implementation(libs.compose.resources)
implementation(libs.compose.runtime)
implementation(libs.compose.ui)
implementation(libs.compose.uiToolingPreview)

implementation(project(":compose-action-menu"))
}
Expand Down
Loading