Skip to content

Commit

Permalink
Add LICENSE.txt file to webApp.js docs
Browse files Browse the repository at this point in the history
A new license file, LICENSE.txt, has been created in the docs directory of webApp.js. This file includes the copyrights and licenses applied to the webApp.js file, providing necessary information for developers and users regarding the permissions and restrictions associated with using
  • Loading branch information
SEAbdulbasit committed Jul 22, 2024
1 parent 99b2eb1 commit dc704d9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion docs/webApp.js

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions webApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ plugins {
alias(libs.plugins.kotlinMultiplatform)
}

//val copyJsResources = tasks.create("copyJsResourcesWorkaround", Copy::class.java) {
// from(project(":shared").file("src/commonMain/composeResources"))
// into("build/processedResources/js/main")
//}
//
//val copyWasmResources = tasks.create("copyWasmResourcesWorkaround", Copy::class.java) {
// from(project(":shared").file("src/commonMain/composeResources"))
// into("build/processedResources/wasmJs/main")
//}
//
//afterEvaluate {
// project.tasks.getByName("jsProcessResources").finalizedBy(copyJsResources)
// project.tasks.getByName("wasmJsProcessResources").finalizedBy(copyWasmResources)
val copyJsResources = tasks.create("copyJsResourcesWorkaround", Copy::class.java) {
from(project(":shared").file("src/commonMain/composeResources"))
into("build/processedResources/js/main")
}

val copyWasmResources = tasks.create("copyWasmResourcesWorkaround", Copy::class.java) {
from(project(":shared").file("src/commonMain/composeResources"))
into("build/processedResources/wasmJs/main")
}

afterEvaluate {
project.tasks.getByName("jsProcessResources").finalizedBy(copyJsResources)
project.tasks.getByName("wasmJsProcessResources").finalizedBy(copyWasmResources)
// project.tasks.getByName("jsBrowserProductionExecutableDistributeResources").mustRunAfter(copyJsResources)
// project.tasks.getByName("jsDevelopmentExecutableCompileSync").mustRunAfter(copyJsResources)
// project.tasks.getByName("wasmJsDevelopmentExecutableCompileSync").mustRunAfter(copyWasmResources)
// project.tasks.getByName("jsProductionExecutableCompileSync").mustRunAfter(copyJsResources)
// project.tasks.getByName("wasmJsProductionExecutableCompileSync").mustRunAfter(copyWasmResources)
//}
project.tasks.getByName("jsDevelopmentExecutableCompileSync").mustRunAfter(copyJsResources)
project.tasks.getByName("wasmJsDevelopmentExecutableCompileSync").mustRunAfter(copyWasmResources)
project.tasks.getByName("jsProductionExecutableCompileSync").mustRunAfter(copyJsResources)
project.tasks.getByName("wasmJsProductionExecutableCompileSync").mustRunAfter(copyWasmResources)
}


kotlin {
Expand Down

0 comments on commit dc704d9

Please sign in to comment.