-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from luca992/darwin
iOS, macOS, and JS support
- Loading branch information
Showing
102 changed files
with
5,771 additions
and
436 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
*.idea/* | ||
*/build/* | ||
build/ | ||
.gradle/* | ||
*/.gradle/* | ||
local.properties | ||
*.iml | ||
*.gpg | ||
*.DS_STORE | ||
*.DS_STORE | ||
|
||
# IntelliJ Code Styles | ||
!/.idea/codeStyles/ | ||
|
||
# moko-resources-generated | ||
moko-resources-generated.js | ||
# generated | ||
pack-test-resources-generated.js |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
repositories { | ||
jcenter() | ||
mavenCentral() | ||
} | ||
|
||
plugins { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
object Kamel { | ||
const val Group = "com.alialbaali.kamel" | ||
const val Version = "0.4.1" | ||
const val Group = "media.kamel" | ||
const val Version = "0.5.0-SNAPSHOT" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
object Targets { | ||
|
||
val iosTargets = arrayOf( | ||
"iosArm64", "iosX64", "iosSimulatorArm64", | ||
) | ||
val macosTargets = arrayOf( | ||
"macosX64", "macosArm64", | ||
) | ||
val darwinTargets = iosTargets + macosTargets | ||
val linuxTargets = arrayOf<String>() | ||
val mingwTargets = arrayOf<String>() | ||
val nativeTargets = linuxTargets + darwinTargets + mingwTargets | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
org.gradle.jvmargs=-Xmx3g | ||
kotlin.code.style=official | ||
kotlin.native.cacheKind=none | ||
kotlin.native.useEmbeddableCompilerJar=true | ||
kotlin.mpp.enableCInteropCommonization=true | ||
kotlin.mpp.androidSourceSetLayoutVersion=2 | ||
compose.desktop.verbose=true | ||
|
||
android.useAndroidX=true | ||
kotlin.mpp.stability.nowarn=true | ||
android.disableAutomaticComponentCreation=true | ||
kotlin.mpp.stability.nowarn=true | ||
|
||
org.jetbrains.compose.experimental.jscanvas.enabled=true | ||
org.jetbrains.compose.experimental.macos.enabled=true | ||
org.jetbrains.compose.experimental.uikit.enabled=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/*** | ||
* How to handle Web Workers "standard" syntax with webpack: | ||
* https://stackoverflow.com/a/41630622/1363742 | ||
*/ | ||
fun createWebpackConfig(){ | ||
val rootProjectAbsPath = rootProject.projectDir.absolutePath | ||
val path = """"$rootProjectAbsPath/kamel-core/build/generated/moko/jsMain/iokamelcore/res"""" | ||
val webpackConfig = File(projectDir, "webpack.config.d/pack-test-resources-generated.js") | ||
val configText = | ||
"""const path = require('path'); | ||
const mokoResourcePath = path.resolve($path); | ||
config.module.rules.push( | ||
{ | ||
test: /\.(.*)/, | ||
include: [ | ||
path.resolve(mokoResourcePath) | ||
], | ||
type: 'asset/resource' | ||
} | ||
); | ||
config.resolve.modules.push( | ||
path.resolve(mokoResourcePath) | ||
);""" | ||
webpackConfig.writeText(configText) | ||
} | ||
|
||
tasks.create("createPackResourcesWebpackConfig") { | ||
doFirst { | ||
createWebpackConfig() | ||
} | ||
} | ||
|
||
tasks.getByName("jsJar").dependsOn("createPackResourcesWebpackConfig") |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#Sun Jul 10 06:06:14 TRT 2022 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME |
Oops, something went wrong.