-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from lobodart/dev
Version 2.0.0
- Loading branch information
Showing
23 changed files
with
680 additions
and
300 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 |
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,7 @@ | ||
language: objective-c | ||
|
||
osx_image: xcode8 | ||
xcode_sdk: iphonesimulator9.0 | ||
|
||
script: | ||
- xcodebuild -project CheatyXML.xcodeproj -scheme "CheatyXML" -destination "platform=iOS Simulator,name=iPhone 6" test |
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,10 @@ | ||
## 2.0.0 (September 19, 2016) | ||
|
||
- Swift 3 Update | ||
- Fix small memory leak | ||
- Add type casting for tags/attributes | ||
- Change the way to retrieve attributes | ||
- All classes are now prefixed by a 'C' (CXMLParser, ...) to clearly identify CheatyXML | ||
- XMLElement has been renamed to CXMLTag which inherit of CXMLElement | ||
- Code refactoring (files now well separated) | ||
- Add Unit Test |
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
41 changes: 41 additions & 0 deletions
41
CheatyXML.xcodeproj/project.xcworkspace/xcshareddata/CheatyXML.xccheckout
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,41 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDESourceControlProjectFavoriteDictionaryKey</key> | ||
<false/> | ||
<key>IDESourceControlProjectIdentifier</key> | ||
<string>2F50476B-C33B-4B0E-8BCA-763A4B422BA9</string> | ||
<key>IDESourceControlProjectName</key> | ||
<string>project</string> | ||
<key>IDESourceControlProjectOriginsDictionary</key> | ||
<dict> | ||
<key>3F4DDE99D53BFFA66E50FFB6AAFA303FD81D596A</key> | ||
<string>github.com:lobodart/CheatyXML.git</string> | ||
</dict> | ||
<key>IDESourceControlProjectPath</key> | ||
<string>CheatyXML.xcodeproj/project.xcworkspace</string> | ||
<key>IDESourceControlProjectRelativeInstallPathDictionary</key> | ||
<dict> | ||
<key>3F4DDE99D53BFFA66E50FFB6AAFA303FD81D596A</key> | ||
<string>../..</string> | ||
</dict> | ||
<key>IDESourceControlProjectURL</key> | ||
<string>github.com:lobodart/CheatyXML.git</string> | ||
<key>IDESourceControlProjectVersion</key> | ||
<integer>111</integer> | ||
<key>IDESourceControlProjectWCCIdentifier</key> | ||
<string>3F4DDE99D53BFFA66E50FFB6AAFA303FD81D596A</string> | ||
<key>IDESourceControlProjectWCConfigurations</key> | ||
<array> | ||
<dict> | ||
<key>IDESourceControlRepositoryExtensionIdentifierKey</key> | ||
<string>public.vcs.git</string> | ||
<key>IDESourceControlWCCIdentifierKey</key> | ||
<string>3F4DDE99D53BFFA66E50FFB6AAFA303FD81D596A</string> | ||
<key>IDESourceControlWCCName</key> | ||
<string>CheatyXML</string> | ||
</dict> | ||
</array> | ||
</dict> | ||
</plist> |
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
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,23 @@ | ||
// | ||
// CXMLAttribute.swift | ||
// CheatyXML | ||
// | ||
// Created by Louis BODART on 16/07/2016. | ||
// Copyright © 2016 Louis BODART. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
open class CXMLAttribute: CXMLElement { | ||
|
||
open let name: String! | ||
|
||
init(name: String!, value: String?) { | ||
self.name = name | ||
super.init(content: value) | ||
} | ||
|
||
open override var description: String { | ||
return "CXMLAttribute" | ||
} | ||
} |
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,28 @@ | ||
// | ||
// CXMLElement.swift | ||
// CheatyXML | ||
// | ||
// Created by Louis BODART on 16/07/2016. | ||
// Copyright © 2016 Louis BODART. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
open class CXMLElement: NSObject { | ||
|
||
internal var _content: String? | ||
|
||
open var string: String? { get { return self._content } } | ||
open var stringValue: String { get { return self.string! } } | ||
open var int: Int? { get { return Int(self._content ?? "") ?? (self.double != nil ? Int(self.doubleValue) : nil) } } | ||
open var intValue: Int { get { return self.int! } } | ||
open var float: Float? { get { return Float(self._content ?? "") } } | ||
open var floatValue: Float { get { return self.float! } } | ||
open var double: Double? { get { return Double(self._content ?? "") } } | ||
open var doubleValue: Double { get { return self.double! } } | ||
|
||
internal init(content: String?) { | ||
self._content = content | ||
super.init() | ||
} | ||
} |
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,19 @@ | ||
// | ||
// CXMLNullAttribute.swift | ||
// CheatyXML | ||
// | ||
// Created by Louis BODART on 17/07/2016. | ||
// Copyright © 2016 Louis BODART. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
// MARK: - CXMLNullAttribute Class | ||
open class CXMLNullAttribute: CXMLAttribute { | ||
|
||
open override var description: String { | ||
return "CXMLNullAttribute" | ||
} | ||
|
||
init() { super.init(name: nil, value: nil) } | ||
} |
Oops, something went wrong.