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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ Please always use the gradle wrapper (`./gradlew`) to make sure to use the appro

Sample apps are located in the `Samples/` directory, and they showcase full "roundtrip" usage of the library and/or tools.

Samples are build by default by Gradle. Building samples can be skipped by appending the flag `-PskipSamples=true` to a gradle command.

#### SwiftJava (Swift -> Java)

To run a simple app showcasing a Swift process calling into a Java library you can run:
Expand Down
9 changes: 6 additions & 3 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ include "SwiftKitCore"
include "SwiftKitFFM"

// Include sample apps -- you can run them via `gradle Name:run`
new File(rootDir, "Samples").listFiles().each {
if (it.directory && new File(it, 'build.gradle').exists()) {
include ":Samples:${it.name}"
// Can be disabled with -PskipSamples=true
if (!hasProperty('skipSamples') || skipSamples != 'true') {
new File(rootDir, "Samples").listFiles().each {
if (it.directory && new File(it, 'build.gradle').exists()) {
include ":Samples:${it.name}"
}
}
}
Loading