Skip to content

Commit

Permalink
Merge branch 'release/3.5.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Barros committed Jun 12, 2017
2 parents 3a2e730 + 387ff1c commit a7606e9
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ before_script:
fi
- date
script:
- travis_retry make test
- set -o pipefail; travis_retry make test
after_script:
- date
- security delete-keychain ios-build.keychain
Expand Down
10 changes: 5 additions & 5 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
github "DaveWoodCom/XCGLogger" "4.0.0"
github "Hearst-DD/ObjectMapper" "2.2.7"
github "Quick/Nimble" "v7.0.1"
github "kif-framework/KIF" "v3.5.2"
github "kishikawakatsumi/KeychainAccess" "v3.0.2"
github "mxcl/PromiseKit" "4.2.2"
github "realm/realm-cocoa" "v2.8.0"
github "tjboneman/NSPredicate-MongoDB-Adaptor" "2444d4a790527eb5c9fcb4e4f7b4af417048ae18"
github "Quick/Nimble" "v7.0.0"
github "Hearst-DD/ObjectMapper" "2.2.6"
github "mxcl/PromiseKit" "4.2.1"
github "DaveWoodCom/XCGLogger" "4.0.0"
github "realm/realm-cocoa" "v2.7.0"
2 changes: 1 addition & 1 deletion Kinvey.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "Kinvey"
s.version = "3.5.2"
s.version = "3.5.3"
s.summary = "Kinvey iOS SDK"

# This description is used to generate tags and improve search results.
Expand Down
4 changes: 2 additions & 2 deletions Kinvey/Kinvey/FileStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -705,9 +705,9 @@ open class FileStore<FileType: File> {
request.execute { (data, response, error) -> Void in
if let response = response,
response.isOK,
let jsonArray = self.client.responseParser.parseArray(data),
let files = [FileType](JSONArray: jsonArray)
let jsonArray = self.client.responseParser.parseArray(data)
{
let files = [FileType](JSONArray: jsonArray)
fulfill(files)
} else {
reject(buildError(data, response, error, self.client))
Expand Down
2 changes: 1 addition & 1 deletion Kinvey/Kinvey/FindOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ internal class FindOperation<T: Persistable>: ReadOperation<T, [T], Swift.Error>
self.executeLocal(completionHandler)
}
} else {
let entities = [T](JSONArray: jsonArray)!
let entities = [T](JSONArray: jsonArray)
if let cache = self.cache {
if self.mustRemoveCachedRecords {
let refObjs = self.reduceToIdsLmts(jsonArray)
Expand Down
2 changes: 1 addition & 1 deletion Kinvey/Kinvey/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.5.2</string>
<string>3.5.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
5 changes: 4 additions & 1 deletion Kinvey/Kinvey/Migration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ open class Migration: NSObject {
if let oldObject = oldObject, let newObject = newObject {
let oldDictionary = oldObject.dictionaryWithValues(forKeys: oldProperties)

if let newDictionary = migrationObjectHandler?(oldDictionary) {
if var newDictionary = migrationObjectHandler?(oldDictionary) {
if let primaryKeyProperty = oldObjectSchema.primaryKeyProperty {
newDictionary.removeValue(forKey: primaryKeyProperty.name)
}
newObject.setValuesForKeys(newDictionary)
} else {
self.realmMigration.delete(newObject)
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CONFIGURATION?=Release
VERSION=$(shell /usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" "${PWD}/Kinvey/Kinvey/Info.plist")
IPHONE_SE_SIMULATOR_ID=$(shell instruments -s | grep 'iPhone SE (10.3)' | awk '{ print substr($$4, 2, 36) }' | head -n 1)
IPHONE_SE_SIMULATOR_ID=$(shell instruments -s | grep 'iPhone SE (10.3.1)' | awk '{ print substr($$4, 2, 36) }' | head -n 1)

all: build archive pack docs

Expand Down

0 comments on commit a7606e9

Please sign in to comment.