Skip to content

Commit

Permalink
Prepare for version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
p2 committed Mar 27, 2017
1 parent 797612c commit 710a610
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "ResearchKit"]
path = ResearchKit
url = https://github.com/chb/ResearchKit.git
url = https://github.com/ResearchKit/ResearchKit.git
[submodule "Swift-SMART"]
path = Swift-SMART
url = https://github.com/smart-on-fhir/Swift-SMART.git
Expand Down
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0
17 changes: 9 additions & 8 deletions C3PRO.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Pod::Spec.new do |s|
s.name = "C3PRO"
s.version = "1.2"
s.version = "2.0.0"
s.summary = "Combining 🔥 SMART on FHIR and ResearchKit for data storage into i2b2."
s.description = <<-DESC
Combining 🔥 FHIR and ResearchKit for data storage into i2b2, the C3-PRO iOS
Expand All @@ -17,21 +17,22 @@ Pod::Spec.new do |s|
with a research app.
DESC

s.homepage = "https://c3-pro.chip.org"
s.homepage = "https://c3-pro.org"
s.license = 'Apache 2'
s.authors = { "Pascal Pfiffner" => "[email protected]" }
s.source = { :git => "https://github.com/p2/c3-pro-ios-framework.git", :tag => s.version.to_s }
s.source = { :git => "https://github.com/c3-pro/c3-pro-ios-framework.git", :tag => s.version.to_s }

s.platform = :ios, '8.0'
s.platform = :ios, '9.0'
s.requires_arc = true

s.source_files = 'Sources/*/*.swift'
s.resource_bundles = {
'C3PRO' => ['*.lproj/C3PRO.strings']
}
s.frameworks = 'UIKit', 'HealthKit'
s.dependency 'SMART', '~> 2.9'
s.dependency 'ResearchKit', '~> 1.3'
s.dependency 'CryptoSwift', '~> 0.6'
s.dependency 'SQLite.swift'
s.dependency 'SMART', '~> 3.0.0'
s.dependency 'ResearchKit', '~> 1.4.1'
s.dependency 'CryptoSwift', '~> 0.6.8'
s.dependency 'SQLite.swift', '~> 0.11.2'
s.dependency 'JSONWebToken', '~> 2.0.2'
end
6 changes: 3 additions & 3 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# require ResearchKit
github "ResearchKit/ResearchKit" "master"
github "ResearchKit/ResearchKit" ~> 1.4.1

# require SMART
github "smart-on-fhir/Swift-SMART" == 2.8.1
github "smart-on-fhir/Swift-SMART" ~> 3.0.0

# require CryptoSwift
github "krzyzanowskim/CryptoSwift" ~> 0.6.0
github "krzyzanowskim/CryptoSwift" ~> 0.6.8

# require SQLite.swift
github "stephencelis/SQLite.swift" ~> 0.11.2
Expand Down
5 changes: 5 additions & 0 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
github "krzyzanowskim/CryptoSwift" "0.6.8"
github "ResearchKit/ResearchKit" "1.4.1"
github "stephencelis/SQLite.swift" "0.11.2"
github "smart-on-fhir/Swift-SMART" "3.0.0"
github "kylef/JSONWebToken.swift" "2.1.0"
2 changes: 1 addition & 1 deletion CryptoSwift
Submodule CryptoSwift updated 40 files
+13 −0 CHANGELOG
+2 −2 CryptoSwift.playground/Contents.swift
+2 −2 CryptoSwift.podspec
+7 −4 CryptoSwift.xcodeproj/project.pbxproj
+22 −0 ...roj/xcshareddata/xcbaselines/754BE45F19693E190098E6F3.xcbaseline/2774350F-3E36-4FB9-835D-90E1E9EF7CE0.plist
+22 −0 ...roj/xcshareddata/xcbaselines/754BE45F19693E190098E6F3.xcbaseline/7797B693-C86A-4026-B2CE-05813EFA26F4.plist
+22 −0 ...roj/xcshareddata/xcbaselines/754BE45F19693E190098E6F3.xcbaseline/BD46E9D4-C65B-4C11-9BB5-B8B05CCE976F.plist
+10 −11 README.md
+49 −52 Sources/CryptoSwift/AES.swift
+38 −12 Sources/CryptoSwift/Array+Extension.swift
+52 −0 Sources/CryptoSwift/BatchedCollection.swift
+1 −1 Sources/CryptoSwift/BlockCipher.swift
+2 −2 Sources/CryptoSwift/BlockMode/BlockModeWorker.swift
+6 −6 Sources/CryptoSwift/BlockMode/CBC.swift
+5 −5 Sources/CryptoSwift/BlockMode/CFB.swift
+3 −3 Sources/CryptoSwift/BlockMode/CTR.swift
+4 −4 Sources/CryptoSwift/BlockMode/ECB.swift
+4 −4 Sources/CryptoSwift/BlockMode/OFB.swift
+5 −5 Sources/CryptoSwift/BlockMode/PCBC.swift
+11 −6 Sources/CryptoSwift/Blowfish.swift
+0 −45 Sources/CryptoSwift/BytesSequence.swift
+6 −20 Sources/CryptoSwift/ChaCha20.swift
+2 −2 Sources/CryptoSwift/Checksum.swift
+2 −2 Sources/CryptoSwift/Cipher.swift
+16 −14 Sources/CryptoSwift/Collection+Extension.swift
+1 −1 Sources/CryptoSwift/Info.plist
+8 −6 Sources/CryptoSwift/MD5.swift
+8 −8 Sources/CryptoSwift/SHA1.swift
+1 −1 Sources/CryptoSwift/SHA2.swift
+1 −1 Sources/CryptoSwift/SHA3.swift
+1 −0 Sources/CryptoSwift/String+Extension.swift
+6 −2 Sources/CryptoSwift/UInt64+Extension.swift
+11 −10 Sources/CryptoSwift/Updatable.swift
+14 −1 Sources/CryptoSwift/Utils.swift
+18 −4 Tests/CryptoSwiftTests/AESTests.swift
+14 −1 Tests/CryptoSwiftTests/BlowfishTests.swift
+1 −1 Tests/CryptoSwiftTests/DigestTests.swift
+11 −0 Tests/CryptoSwiftTests/ExtensionsTest.swift
+28 −7 Tests/CryptoSwiftTests/PBKDF.swift
+1 −1 Tests/LinuxMain.swift
4 changes: 2 additions & 2 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ You can use [Carthage](https://github.com/Carthage/Carthage), a modern iOS frame
Put this in your `Cartfile`, then run `carthage update --platform "iOS"`:

```ogdl
github "C3-PRO/c3-pro-ios-framework.git" ~> 1.8
github "C3-PRO/c3-pro-ios-framework.git" ~> 2.0
```

Check the matrix in the README to see which version you should be using.
Expand Down Expand Up @@ -97,5 +97,5 @@ You should now be able to build and run your app.
CocoaPods
---------

Currently, [CocoaPods](http://cocoapods.org) cannot be used to install _C3-PRO_.
We have also pushed the framework to [CocoaPods](http://cocoapods.org), specify _C3PRO_ as a dependency.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ This framework combines several versioned technologies, here's an overview over

Version | Swift | ResearchKit | FHIR | &nbsp;
-----------|---------|-------------|-------|----------------
**2.0** | 3.0 | 1.4 | 3.0.0 | STU-3
**2.0** | 3.0 | 1.4.1 | 3.0.0 | STU-3
**1.9** | 3.0 | 1.4 | 1.6.0 | STU-3 Ballot
**1.8** | 3.0 | 1.4 | 1.0.2 | DSTU-2
**1.2** | 2.2 | 1.3 | 1.4.0 | _not supported_
Expand Down
5 changes: 4 additions & 1 deletion Sources/DataQueue/DataQueueManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,13 @@ class DataQueueManager {
seq += 1

// store new resoure to queue
let url = URL(fileURLWithPath: queueDirectory).appendingPathComponent(fileName(for: seq))
var url = URL(fileURLWithPath: queueDirectory).appendingPathComponent(fileName(for: seq))
do {
let data = try JSONSerialization.data(withJSONObject: resource.asJSON(), options: [])
try data.write(to: url, options: fileProtection)
var skipBackup = URLResourceValues()
skipBackup.isExcludedFromBackup = true
try url.setResourceValues(skipBackup)
logger?.debug("C3-PRO", msg: "Enqueued resource at \(url.path)")
}
catch let error {
Expand Down
4 changes: 2 additions & 2 deletions SupportingFiles/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>1.9.99</string>
<string>2.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<string>2.0.0.0</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion Swift-SMART
2 changes: 1 addition & 1 deletion examples
Submodule examples updated 1 files
+3 −3 README.md

0 comments on commit 710a610

Please sign in to comment.