Skip to content

Commit 482848f

Browse files
Joaquin PereiraJoaquin Pereira
authored andcommitted
Adding support for ParseUI, and LiveQueries parsing
1 parent bff5808 commit 482848f

File tree

158 files changed

+14865
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+14865
-4
lines changed

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ let package = Package(
1313
],
1414
products: [
1515
.library(name: "ParseObjC", targets: ["ParseCore"]),
16+
.library(name: "ParseUI", targets: ["ParseUI"]),
1617
.library(name: "ParseLiveQuery", targets: ["ParseLiveQuery"])
1718
],
1819
dependencies: [
1920
.package(url: "https://github.com/parse-community/Bolts-ObjC.git", from: "1.10.0"),
2021
.package(url: "https://github.com/BoltsFramework/Bolts-Swift.git", from: "1.5.0"),
21-
.package(url: "https://github.com/daltoniam/Starscream.git", from: "4.0.8"),
22+
.package(url: "https://github.com/daltoniam/Starscream.git", from: "4.0.6"),
2223
.package(name: "OCMock", url: "https://github.com/erikdoe/ocmock.git", .revision("67bb9602f0a7541f24dc2d6d0d7389ca3e4c2c89"))
2324
],
2425
targets: [
@@ -31,6 +32,17 @@ let package = Package(
3132
publicHeadersPath: "Source",
3233
cSettings: [.headerSearchPath("Internal/**")]
3334
),
35+
.target(
36+
name: "ParseUI",
37+
dependencies: [
38+
"ParseCore"
39+
],
40+
path: "ParseUI/ParseUI",
41+
exclude: ["Resources/Info-iOS.plist"],
42+
resources: [.process("Resources")],
43+
publicHeadersPath: "Source",
44+
cSettings: [.headerSearchPath("Internal/**")]
45+
),
3446
.target(
3547
name: "ParseLiveQuery",
3648
dependencies: [

ParseLiveQuery/ParseLiveQuery/Internal/ClientPrivate.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ private func parseObject<T: PFObject>(_ objectDictionary: [String:AnyObject]) th
1919
throw LiveQueryErrors.InvalidJSONError(json: objectDictionary, expectedKey: "objectId")
2020
}
2121

22-
guard let object = PFDecoder.object().decode(objectDictionary) as? T else {
22+
var dict = objectDictionary
23+
dict["__type"] = String("Object") as AnyObject
24+
guard let object = PFDecoder.object().decode(dict) as? T else {
2325
throw LiveQueryErrors.InvalidJSONObject(json: objectDictionary, details: "cannot decode json into \(T.self)")
2426
}
2527

ParseUI/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Package.resolved
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// Copyright (c) 2015-present, Parse, LLC.
3+
// All rights reserved.
4+
//
5+
// This source code is licensed under the BSD-style license found in the
6+
// LICENSE file in the root directory of this source tree. An additional grant
7+
// of patent rights can be found in the PATENTS file in the same directory.
8+
//
9+
10+
#include "Shared/Platform/iOS.xcconfig"
11+
#include "Shared/Product/DynamicFramework.xcconfig"
12+
13+
PRODUCT_NAME = ParseUI
14+
PRODUCT_BUNDLE_IDENTIFIER = com.parse.parseui
15+
16+
INFOPLIST_FILE = $(SRCROOT)/ParseUI/Resources/Info-iOS.plist
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// Copyright (c) 2015-present, Parse, LLC.
3+
// All rights reserved.
4+
//
5+
// This source code is licensed under the BSD-style license found in the
6+
// LICENSE file in the root directory of this source tree. An additional grant
7+
// of patent rights can be found in the PATENTS file in the same directory.
8+
//
9+
10+
#include "Shared/Platform/iOS.xcconfig"
11+
#include "Shared/Product/StaticFramework.xcconfig"
12+
13+
PRODUCT_NAME = ParseUI
14+
PRODUCT_BUNDLE_IDENTIFIER = com.parse.parseui
15+
16+
INFOPLIST_FILE = $(SRCROOT)/ParseUI/Resources/Info-iOS.plist

ParseUI/Configurations/Shared

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../Vendor/xctoolchain/Configurations

ParseUI/ParseUI.xcodeproj/project.pbxproj

Lines changed: 2111 additions & 0 deletions
Large diffs are not rendered by default.

ParseUI/ParseUI.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)