Created
December 14, 2018 07:56
-
-
Save kmuralidharan91/8d298625a7c94747db766fa6031ad409 to your computer and use it in GitHub Desktop.
Generate Resources Build Script for SwiftGen
This file contains hidden or 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
#!/bin/sh | |
RSROOT=$SRCROOT/CleanAssetsManagementDemo/Resources | |
"$PODS_ROOT/SwiftGen/bin/swiftgen" \ | |
xcassets -t swift3 "$RSROOT/Assets.xcassets" \ | |
--output "$RSROOT/Assets.swift" | |
"$PODS_ROOT/SwiftGen/bin/swiftgen" \ | |
strings -t structured-swift4 "$RSROOT/Localizable.strings" \ | |
--output "$RSROOT/L10n.swift" | |
"$PODS_ROOT/SwiftGen/bin/swiftgen" \ | |
colors -t swift4 "$RSROOT/Colors.json" \ | |
--output "$RSROOT/Colors.swift" | |
"$PODS_ROOT/SwiftGen/bin/swiftgen" \ | |
fonts -t swift4 "$RSROOT/Fonts" \ | |
--output "$RSROOT/Fonts.swift" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment