Skip to content

Commit

Permalink
Update submodules; Swift 2.2 now required
Browse files Browse the repository at this point in the history
  • Loading branch information
p2 committed Mar 23, 2016
1 parent 02c1642 commit a6ad450
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 48 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========


## 2.2.3

- Address deprecation warnings appearing with Swift 2.2 (now requires Swift 2.2)


## 2.2.2

- Implement automatic dynamic client registration if the client has no `client_id`
Expand Down
4 changes: 2 additions & 2 deletions Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.2.2</string>
<string>2.2.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>2.2.2.0</string>
<string>2.2.3.0</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion OAuth2
Submodule OAuth2 updated 38 files
+1 −1 .gitmodules
+4 −0 .jazzy.yaml
+1 −1 .travis.yml
+19 −0 CHANGELOG.md
+13 −0 CONTRIBUTING.md
+14 −0 CONTRIBUTORS.md
+1 −1 Info.plist
+194 −42 OAuth2.xcodeproj/project.pbxproj
+99 −0 OAuth2.xcodeproj/xcshareddata/xcschemes/OAuth2tvOS.xcscheme
+22 −5 README.md
+36 −99 Sources/Base/OAuth2.swift
+1 −1 Sources/Base/OAuth2AuthConfig.swift
+268 −0 Sources/Base/OAuth2AuthRequest.swift
+47 −52 Sources/Base/OAuth2Base.swift
+11 −32 Sources/Base/OAuth2ClientCredentials.swift
+63 −0 Sources/Base/OAuth2ClientCredentialsReddit.swift
+22 −34 Sources/Base/OAuth2CodeGrant.swift
+4 −4 Sources/Base/OAuth2CodeGrantBasicAuth.swift
+6 −0 Sources/Base/OAuth2Error.swift
+3 −3 Sources/Base/OAuth2ImplicitGrant.swift
+79 −0 Sources/Base/OAuth2KeychainAccount.swift
+9 −31 Sources/Base/OAuth2PasswordGrant.swift
+1 −1 Sources/Base/extensions.swift
+8 −3 Sources/OSX/OAuth2+OSX.swift
+1 −1 Sources/OSX/OAuth2WebViewController.swift
+13 −9 Sources/iOS/OAuth2+iOS.swift
+3 −3 Sources/iOS/OAuth2WebViewController.swift
+34 −0 Sources/tvOS/OAuth2+tvOS.swift
+1 −1 SwiftKeychain
+127 −0 Tests/OAuth2AuthRequest_tests.swift
+49 −4 Tests/OAuth2ClientCredentials_tests.swift
+5 −5 Tests/OAuth2CodeGrant_tests.swift
+0 −0 Tests/OAuth2DynReg_tests.swift
+4 −4 Tests/OAuth2PasswordGrant_tests.swift
+4 −4 Tests/OAuth2RefreshToken_tests.swift
+10 −6 Tests/OAuth2_tests.swift
+2 −5 generate-docs.sh
+13 −11 p2.OAuth2.podspec
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ See the `develop` branch or specific `feature/x` branches for new Swift or FHIR

Version | Swift | FHIR | &nbsp;
---------|-----------|---------------|-----------------------------
**2.2.3**| 2.2 | `1.0.2.7202` | DSTU 2 (_+ technical errata_)
**2.2** | 2.0-2.2 | `1.0.2.7202` | DSTU 2 (_+ technical errata_)
**2.1** | 2.0-2.2 | `1.0.1.7108` | DSTU 2
**2.0** | 2.0-2.2 | `0.5.0.5149` | DSTU 2 Ballot, May 2015
Expand Down
4 changes: 2 additions & 2 deletions SMART.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Pod::Spec.new do |s|
s.name = "SMART"
s.version = "2.2.2"
s.version = "2.2.3"
s.summary = "Swift SMART on FHIR framework for iOS and OS X"
s.description = <<-DESC
Swift SMART on FHIR framework for iOS and OS X.
Expand Down Expand Up @@ -41,7 +41,7 @@ Pod::Spec.new do |s|
"Swift-FHIR/Sources/Client/Reference+Resolving.swift",
"Swift-FHIR/Sources/Client/Resource+Instantiation.swift",
"Swift-FHIR/Sources/Client/Resource+REST.swift",
"OAuth2/SwiftKeychain/SwiftKeychain/Keychain/*.swift",
"OAuth2/SwiftKeychain/Keychain/Keychain.swift",
"OAuth2/Sources/Base/*.swift"
s.ios.source_files = "Sources/iOS/*.swift",
"OAuth2/Sources/iOS/*.swift"
Expand Down
2 changes: 1 addition & 1 deletion Sources/Client/PatientList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public class PatientList {
sectionIndexTitles.append(lastSection.title)
}
lastSection.addPatient(patient)
n++
n += 1
}

// not all patients fetched yet?
Expand Down
2 changes: 1 addition & 1 deletion Sources/iOS/Auth+iOS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ extension Auth {
// instantiate patient list view
let view = PatientListViewController(list: PatientListAll(), server: self.server)
view.title = self.oauth?.authConfig.ui.title
view.navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .Done, target: view, action: "dismissFromModal:")
view.navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .Done, target: view, action: Selector("dismissFromModal:"))
view.onPatientSelect = { patient in
var params = parameters
if let patient = patient {
Expand Down
48 changes: 16 additions & 32 deletions SwiftSMART.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions Tests/ServerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SMART-on-FHIR
//
// Created by Pascal Pfiffner on 6/23/14.
// 2014, SMART Platforms.
// 2014, SMART Health IT.
//

import XCTest
Expand All @@ -12,11 +12,11 @@ import XCTest
import SMART


class ServerTests: XCTestCase
{
class ServerTests: XCTestCase {
func testMetadataParsing() throws {
let server = Server(base: "https://api.io")
XCTAssertEqual("https://api.io", server.baseURL.absoluteString)
XCTAssertEqual("https://api.io/", server.baseURL.absoluteString)
XCTAssertEqual("https://api.io", server.aud)

let metaURL = NSBundle(forClass: self.dynamicType).URLForResource("metadata", withExtension: "")
Expand All @@ -38,7 +38,7 @@ class ServerTests: XCTestCase
exp1.fulfill()
}

let fileURL = NSURL(fileURLWithPath: "\(__FILE__)".smart_stringByDeletingLastPathComponent)
let fileURL = NSURL(fileURLWithPath: "\(#file)".smart_stringByDeletingLastPathComponent)
server = Server(baseURL: fileURL)
let exp2 = self.expectationWithDescription("Metadata fetch expectation 2")
server.getConformance { error in
Expand All @@ -58,8 +58,8 @@ class ServerTests: XCTestCase
}


extension String
{
extension String {
func smart_stringByAppendingPathComponent(part: String) -> String {
return (self as NSString).stringByAppendingPathComponent(part)
}
Expand Down
2 changes: 1 addition & 1 deletion generate-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
jazzy \
-r "http://smart-on-fhir.github.io/Swift-SMART" \
-o "docs" \
--module-version "2.2.2"
--module-version "2.2.3"

mkdir docs/assets 2>/dev/null
cp assets/banner.png docs/assets/

0 comments on commit a6ad450

Please sign in to comment.