Skip and docs
This commit is contained in:
25
pedi-foods/Android/settings.gradle.kts
Normal file
25
pedi-foods/Android/settings.gradle.kts
Normal file
@@ -0,0 +1,25 @@
|
||||
// This gradle project is part of a conventional Skip app project.
|
||||
pluginManagement {
|
||||
// Initialize the Skip plugin folder and perform a pre-build for non-Xcode builds
|
||||
val pluginPath = File.createTempFile("skip-plugin-path", ".tmp")
|
||||
|
||||
// overriding outputs for an Android IDE can be done by un-commenting and setting the Xcode path:
|
||||
//System.setProperty("BUILT_PRODUCTS_DIR", "${System.getProperty("user.home")}/Library/Developer/Xcode/DerivedData/MySkipProject-HASH/Build/Products/Debug-iphonesimulator")
|
||||
|
||||
val skipPluginResult = providers.exec {
|
||||
commandLine("/bin/sh", "-c", "skip plugin --prebuild --package-path '${settings.rootDir.parent}' --plugin-ref '${pluginPath.absolutePath}'")
|
||||
environment("PATH", "${System.getenv("PATH")}:/opt/homebrew/bin")
|
||||
}
|
||||
val skipPluginOutput = skipPluginResult.standardOutput.asText.get()
|
||||
print(skipPluginOutput)
|
||||
val skipPluginError = skipPluginResult.standardError.asText.get()
|
||||
print(skipPluginError)
|
||||
|
||||
includeBuild(pluginPath.readText()) {
|
||||
name = "skip-plugins"
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("skip-plugin") apply true
|
||||
}
|
||||
Reference in New Issue
Block a user