Created
December 28, 2023 12:46
-
-
Save kovs705/d0375bcd995ce438ae6011b651856f36 to your computer and use it in GitHub Desktop.
Gradle script for XcodeGen
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
val generateIos: TaskProvider<Task> by tasks.registering { | |
if (isFamily(FAMILY_MAC)) { | |
val xcodeGenPath = "/usr/local/bin/xcodegen" | |
val specPath = "${project.rootDir}/_____IOS___FOLDER____/Project.yml" | |
doLast { | |
exec { | |
commandLine(xcodeGenPath, "generate", "--spec", specPath) | |
} | |
} | |
} else { | |
println("Task generateIos skipped, host is not MAC OS") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment