swiftgen: migrate to version 5.1.1
Change project to support 5.1.1 version of swiftgen (swiftgen 4.x is not
supported anymore)
We use default templates provided by Swiftgen
Change-Id: I78da863f4fb3664cb0becbf93dadf68aa339826f
diff --git a/Ring/swiftgen/swiftgen.sh b/Ring/swiftgen/swiftgen.sh
index 0c4da0b..b46576c 100755
--- a/Ring/swiftgen/swiftgen.sh
+++ b/Ring/swiftgen/swiftgen.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-EXPECTED_VERSION="SwiftGen v4.2.1 (Stencil v0.9.0, StencilSwiftKit v1.0.2, SwiftGenKit v1.1.0)"
+EXPECTED_VERSION="SwiftGen v5.1.1 (Stencil v0.9.0, StencilSwiftKit v2.1.0, SwiftGenKit v2.1.0)"
# Here execute the various SwiftGen commands you need
run_swiftgen() {
@@ -9,9 +9,9 @@
TPLDIR=$(dirname $0)
echo "SwiftGen: Generating files..."
- swiftgen storyboards "$SRCDIR" -p "$TPLDIR/storyboards.stencil" --output "$OUTDIR/Storyboards.swift"
- swiftgen images "$SRCDIR/Resources/Images.xcassets" -p "$TPLDIR/images.stencil" --output "$OUTDIR/Images.swift"
- swiftgen strings "$SRCDIR/Resources/en.lproj/Localizable.strings" -p "$TPLDIR/strings.stencil" --output "$OUTDIR/Strings.swift"
+ swiftgen storyboards "$SRCDIR" -t swift3 --output "$OUTDIR/Storyboards.swift"
+ swiftgen xcassets "$SRCDIR/Resources/Images.xcassets" -t swift3 --output "$OUTDIR/Images.swift"
+ swiftgen strings -t structured-swift3 "$SRCDIR/Resources/en.lproj/Localizable.strings" --output "$OUTDIR/Strings.swift"
}