Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial beta release build #3

Merged
merged 22 commits into from
Sep 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8d62342
Ad a function to create a draughts parser and tests for the parser. D…
tigerpixel Apr 19, 2017
23cc921
Added initial documentation for the parser and removed and unused str…
tigerpixel Apr 20, 2017
d5a3c2c
Refactored code according to recommendations from the Swift lint tool…
tigerpixel Apr 20, 2017
3a82e96
Correct typos in documentation.
tigerpixel Apr 21, 2017
1a439d6
Handle multiple captures in the same move for the same player.
tigerpixel Apr 21, 2017
f516bc1
Add the ability to be able to add a move comment, with tests and docu…
tigerpixel Apr 24, 2017
ff626c2
Refactor input into curried constructors to make the code more readable.
tigerpixel Apr 24, 2017
dc6721a
Added targets for each platform with unit tests.
tigerpixel Apr 28, 2017
3c898f1
Fix watchOS target.
tigerpixel May 2, 2017
6037acf
Adjust the watch target to build with the latest version.
tigerpixel May 2, 2017
4967341
Initial setup of additional project files such as Travis, READOME, CH…
tigerpixel May 3, 2017
ae2701b
Fix link in README.md
tigerpixel May 11, 2017
5f36383
Correct build target mistake in travis file.
tigerpixel Jun 12, 2017
215e35f
Ensure that the Podspec passes validation with all dependencies.
tigerpixel Jun 18, 2017
cda5262
Add call to update repositories on TravisCI build.
tigerpixel Jun 18, 2017
145db93
Add basic podfile which covers all targets.
tigerpixel Jun 18, 2017
afa1037
Update the pod file and the travis script to create a workspace and b…
tigerpixel Jun 19, 2017
b311071
Update the pod file to include the test targets in an embedded way.
tigerpixel Jun 19, 2017
b74d312
Modernizes Xcode build settings for iOS and macOS. Adds a pod lock file.
tigerpixel Sep 14, 2017
a7b9ddd
Moves pod installations to before_install in travis.
tigerpixel Sep 19, 2017
cbf6f89
Adds Swift version file.
tigerpixel Sep 19, 2017
9364a94
Merge pull request #2 from tigerpixel/feature/add-comments
tigerpixel Sep 20, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.1
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
osx_image: xcode8.3
language: objective-c

before_install:

- gem install cocoapods # Since Travis is not always on latest version
- pod install

install:
- ./install_swiftlint.sh

script:
- pod lib lint PGNParser.podspec

- swiftlint

- xcodebuild test -workspace PGNParser.xcworkspace -scheme PGNParser-iOS -destination 'platform=iOS Simulator,OS=latest,name=iPhone 7'
- xcodebuild test -workspace PGNParser.xcworkspace -scheme PGNParser-macOS -destination 'platform=macOS,arch=x86_64'
- xcodebuild test -workspace PGNParser.xcworkspace -scheme PGNParser-tvOS -destination 'platform=tvOS Simulator,name=Apple TV 1080p'

- xcodebuild -workspace PGNParser.xcworkspace -scheme PGNParser-watchOS
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Changelog
=========

Version 0.1.0
-------------
*Released 2017-06-15*

* Initial beta release for Draughts game string parsing.
* Setup the basic project structure with Swiftlint and TravisCI.
* Give the project targets for iOS, Mac, tvOS and watchOS.
* Make the project available to Cocoapods, Carthage and the SPM.
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2017 Liam <l.flynn2@live.co.uk>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
MIT License
30 changes: 30 additions & 0 deletions PGNParser.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# Be sure to run `pod lib lint PGNParser.podspec' to ensure this is a
# valid spec before submitting.
#
# The podspec file for PGNParser. A functional parser for Portabe Game Notation.

Pod::Spec.new do |s|
s.name = 'PGNParser'
s.version = '0.1.0'
s.summary = 'A simple way to parse Portable Game Notation into Swift objects.'
s.description = <<-DESC
A simple way to parse Portable Game Notation into Swift objects. Easily parse game strings into Swift objects with just a single call. More work is required to fully suppourt the format. Pull requests for improvements are welcome.
DESC

s.homepage = 'https://github.com/tigerpixel/PGNParser'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Tigerpixel' => 'l.flynn2@live.co.uk' }
s.source = { :git => 'https://github.com/tigerpixel/PGNParser.git', :tag => s.version.to_s }

s.requires_arc = true
s.ios.deployment_target = '8.0'
s.watchos.deployment_target = '2.0'
s.osx.deployment_target = '10.9'
s.tvos.deployment_target = '9.0'

s.source_files = 'Source/**/*.swift'

s.dependency 'Currier'
s.dependency 'ParserCombinator'
end
1,061 changes: 1,030 additions & 31 deletions PGNParser.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "0C07C2BE1E525E0F00A921A8"
BuildableName = "PGNParser.framework"
BlueprintName = "PGNParser"
BlueprintName = "PGNParser-iOS"
ReferencedContainer = "container:PGNParser.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand All @@ -33,8 +33,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0C07C2C71E525E0F00A921A8"
BuildableName = "PGNParserTests.xctest"
BlueprintName = "PGNParserTests"
BuildableName = "PGNParserTests-iOS.xctest"
BlueprintName = "PGNParserTests-iOS"
ReferencedContainer = "container:PGNParser.xcodeproj">
</BuildableReference>
</TestableReference>
Expand All @@ -44,7 +44,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "0C07C2BE1E525E0F00A921A8"
BuildableName = "PGNParser.framework"
BlueprintName = "PGNParser"
BlueprintName = "PGNParser-iOS"
ReferencedContainer = "container:PGNParser.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand All @@ -66,7 +66,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "0C07C2BE1E525E0F00A921A8"
BuildableName = "PGNParser.framework"
BlueprintName = "PGNParser"
BlueprintName = "PGNParser-iOS"
ReferencedContainer = "container:PGNParser.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand All @@ -84,7 +84,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "0C07C2BE1E525E0F00A921A8"
BuildableName = "PGNParser.framework"
BlueprintName = "PGNParser"
BlueprintName = "PGNParser-iOS"
ReferencedContainer = "container:PGNParser.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0830"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0C3F61BD1EB2715700D8BB32"
BuildableName = "PGNParser.framework"
BlueprintName = "PGNParser-macOS"
ReferencedContainer = "container:PGNParser.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0C3F61C51EB2715700D8BB32"
BuildableName = "PGNParserTests-macOS.xctest"
BlueprintName = "PGNParserTests-macOS"
ReferencedContainer = "container:PGNParser.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0C3F61BD1EB2715700D8BB32"
BuildableName = "PGNParser.framework"
BlueprintName = "PGNParser-macOS"
ReferencedContainer = "container:PGNParser.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0C3F61BD1EB2715700D8BB32"
BuildableName = "PGNParser.framework"
BlueprintName = "PGNParser-macOS"
ReferencedContainer = "container:PGNParser.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0C3F61BD1EB2715700D8BB32"
BuildableName = "PGNParser.framework"
BlueprintName = "PGNParser-macOS"
ReferencedContainer = "container:PGNParser.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
99 changes: 99 additions & 0 deletions PGNParser.xcodeproj/xcshareddata/xcschemes/PGNParser-tvOS.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0830"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0C3F62031EB2717F00D8BB32"
BuildableName = "PGNParser.framework"
BlueprintName = "PGNParser-tvOS"
ReferencedContainer = "container:PGNParser.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0C3F620B1EB2717F00D8BB32"
BuildableName = "PGNParserTests-tvOS.xctest"
BlueprintName = "PGNParserTests-tvOS"
ReferencedContainer = "container:PGNParser.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0C3F62031EB2717F00D8BB32"
BuildableName = "PGNParser.framework"
BlueprintName = "PGNParser-tvOS"
ReferencedContainer = "container:PGNParser.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0C3F62031EB2717F00D8BB32"
BuildableName = "PGNParser.framework"
BlueprintName = "PGNParser-tvOS"
ReferencedContainer = "container:PGNParser.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0C3F62031EB2717F00D8BB32"
BuildableName = "PGNParser.framework"
BlueprintName = "PGNParser-tvOS"
ReferencedContainer = "container:PGNParser.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading