-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for Android and Linux by using split and enumerated() f…
…unc instead of old @objc enumerateLines func
- Loading branch information
1 parent
022377d
commit 398abf7
Showing
5 changed files
with
95 additions
and
25 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// Platform.swift | ||
// GherkinDoc | ||
// | ||
// Created by Marek Přidal on 23.04.18. | ||
// | ||
|
||
import Foundation | ||
|
||
enum Platform: String { | ||
case Android = "android" | ||
case iOS = "ios" | ||
|
||
static func getPlatformForFileExtension(_ pathExtension:String) -> Platform? { | ||
switch pathExtension.lowercased() | ||
{ | ||
case "java": | ||
return .Android | ||
case "swift": | ||
return .iOS | ||
default: | ||
return nil | ||
} | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
|
||
swift build | ||
chmod 700 .build/debug/GherkinDoc | ||
cp .build/debug/GherkinDoc /usr/local/bin/GherkinDoc | ||
echo "Run GherkinDoc anywhere by typing GherkinDoc" | ||
swift build -c release | ||
sudo chmod 700 .build/release/GherkinDoc | ||
sudo cp .build/release/GherkinDoc /usr/local/bin/GherkinDoc | ||
echo "Run generator anywhere by typing GherkinDoc" |