Skip to content

Commit 78d0412

Browse files
committed
feature: create release framework for SPM
1 parent 527cd16 commit 78d0412

File tree

159 files changed

+413
-259
lines changed

Some content is hidden

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

159 files changed

+413
-259
lines changed

Package.swift

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
// swift-tools-version: 5.7
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "Parse-SDK-iOS-OSX",
8+
defaultLocalization: "en",
9+
platforms: [
10+
.macOS(.v10_15),
11+
.iOS(.v12),
12+
.tvOS(.v12),
13+
.watchOS(.v5)
14+
],
15+
products: [
16+
.library(
17+
name: "Parse",
18+
type: .dynamic,
19+
targets: ["Parse-iOS"]
20+
)
21+
],
22+
dependencies: [
23+
// Dependencies declare other packages that this package depends on.
24+
// .package(url: /* package url */, from: "1.0.0"),
25+
// .package(url: "https://github.com/BoltsFramework/Bolts-Swift", branch: "main")
26+
.package(url: "https://github.com/mman/Bolts-ObjC.git", branch: "spm"),
27+
.package(url: "https://github.com/erikdoe/ocmock.git", branch: "master")
28+
],
29+
targets: [
30+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
31+
// Targets can depend on other targets in this package, and on products in packages this package depends on.
32+
// .target(
33+
// name: "Bolt-iOS",
34+
// dependencies: [
35+
// // .product(name: "BoltsSwift", package: "Bolts-Swift")
36+
// ],
37+
// path: "Carthage/Checkouts/Bolts-ObjC/Bolts",
38+
// publicHeadersPath: ".",
39+
// cSettings: [
40+
// .headerSearchPath("Internal"),
41+
// ]
42+
// ),
43+
.target(
44+
name: "Parse-iOS",
45+
dependencies: [
46+
.product(name: "Bolts", package: "Bolts-ObjC"),
47+
.product(name: "OCMock", package: "ocmock")
48+
],
49+
path: "Parse/Parse",
50+
publicHeadersPath: ".",
51+
cSettings: [
52+
.headerSearchPath("."),
53+
.headerSearchPath("Internal"),
54+
.headerSearchPath("Internal/Object"),
55+
.headerSearchPath("Internal/Object/Controller/OfflineController"),
56+
.headerSearchPath("Internal/Object/LocalIdStore"),
57+
.headerSearchPath("Internal/Object/EstimatedData"),
58+
.headerSearchPath("Internal/Object/BatchController"),
59+
.headerSearchPath("Internal/Object/PinningStore"),
60+
.headerSearchPath("Internal/Object/OperationSet"),
61+
.headerSearchPath("Internal/Object/State"),
62+
.headerSearchPath("Internal/Object/Constants"),
63+
.headerSearchPath("Internal/Object/Subclassing"),
64+
.headerSearchPath("Internal/Object/Utilities"),
65+
.headerSearchPath("Internal/Object/Coder/File"),
66+
.headerSearchPath("Internal/Object/Controller"),
67+
.headerSearchPath("Internal/Object/FilePersistence"),
68+
.headerSearchPath("Internal/Object/CurrentController"),
69+
.headerSearchPath("Internal/User"),
70+
.headerSearchPath("Internal/User/AuthenticationProviders/Providers/Anonymous"),
71+
.headerSearchPath("Internal/User/AuthenticationProviders/Controller"),
72+
.headerSearchPath("Internal/User/Constants"),
73+
.headerSearchPath("Internal/User/Controller"),
74+
.headerSearchPath("Internal/User/State"),
75+
.headerSearchPath("Internal/User/Coder/File"),
76+
.headerSearchPath("Internal/User/CurrentUserController"),
77+
.headerSearchPath("Internal/Product"),
78+
.headerSearchPath("Internal/Product/ProductsRequestHandler"),
79+
.headerSearchPath("Internal/LocalDataStore"),
80+
.headerSearchPath("Internal/LocalDataStore/SQLite"),
81+
.headerSearchPath("Internal/LocalDataStore/OfflineQueryLogic"),
82+
.headerSearchPath("Internal/LocalDataStore/OfflineStore"),
83+
.headerSearchPath("Internal/LocalDataStore/Pin"),
84+
.headerSearchPath("Internal/Commands"),
85+
.headerSearchPath("Internal/Commands/CommandRunner"),
86+
.headerSearchPath("Internal/Commands/CommandRunner/URLRequestConstructor"),
87+
.headerSearchPath("Internal/Commands/CommandRunner/URLSession"),
88+
.headerSearchPath("Internal/Commands/CommandRunner/URLSession/Session"),
89+
.headerSearchPath("Internal/Commands/CommandRunner/URLSession/Session/TaskDelegate"),
90+
.headerSearchPath("Internal/Relation"),
91+
.headerSearchPath("Internal/Relation/State"),
92+
.headerSearchPath("Internal/Analytics"),
93+
.headerSearchPath("Internal/Analytics/Utilities"),
94+
.headerSearchPath("Internal/Analytics/Controller"),
95+
.headerSearchPath("Internal/FieldOperation"),
96+
.headerSearchPath("Internal/Installation/Constants"),
97+
.headerSearchPath("Internal/Installation/InstallationIdentifierStore"),
98+
.headerSearchPath("Internal/Installation/CurrentInstallationController"),
99+
.headerSearchPath("Internal/Query"),
100+
.headerSearchPath("Internal/Query/Controller"),
101+
.headerSearchPath("Internal/Query/State"),
102+
.headerSearchPath("Internal/Query/Utilities"),
103+
.headerSearchPath("Internal/KeyValueCache"),
104+
.headerSearchPath("Internal/MultiProcessLock"),
105+
.headerSearchPath("Internal/ACL"),
106+
.headerSearchPath("Internal/ACL/State"),
107+
.headerSearchPath("Internal/ACL/DefaultACLController"),
108+
.headerSearchPath("Internal/Purchase/PaymentTransactionObserver"),
109+
.headerSearchPath("Internal/Purchase/Controller"),
110+
.headerSearchPath("Internal/Session/Controller"),
111+
.headerSearchPath("Internal/Session/Utilities"),
112+
.headerSearchPath("Internal/File"),
113+
.headerSearchPath("Internal/File/State"),
114+
.headerSearchPath("Internal/File/Controller"),
115+
.headerSearchPath("Internal/File/FileDataStream"),
116+
.headerSearchPath("Internal/Persistence"),
117+
.headerSearchPath("Internal/Persistence/Group"),
118+
.headerSearchPath("Internal/Installation"),
119+
.headerSearchPath("Internal/Installation/Controller"),
120+
.headerSearchPath("Internal/PropertyInfo"),
121+
.headerSearchPath("Internal/CloudCode"),
122+
.headerSearchPath("Internal/Config"),
123+
.headerSearchPath("Internal/Config/Controller"),
124+
.headerSearchPath("Internal/Push"),
125+
.headerSearchPath("Internal/Push/State"),
126+
.headerSearchPath("Internal/Push/Utilites"),
127+
.headerSearchPath("Internal/Push/Manager"),
128+
.headerSearchPath("Internal/Push/Controller"),
129+
.headerSearchPath("Internal/Push/ChannelsController"),
130+
.headerSearchPath("Internal/ThreadSafety"),
131+
.headerSearchPath("Internal/HTTPRequest/RequestConstructor"),
132+
.headerSearchPath("Internal/HTTPRequest")
133+
]
134+
)
135+
136+
// .executableTarget(
137+
// name: "Parse-SDK-iOS-OSX",
138+
// dependencies: []),
139+
// .testTarget(
140+
// name: "Parse-SDK-iOS-OSXTests",
141+
// dependencies: ["Parse-SDK-iOS-OSX"]),
142+
]
143+
)

Parse/Parse.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9050,7 +9050,7 @@
90509050
);
90519051
SUPPORTS_MACCATALYST = YES;
90529052
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
9053-
SWIFT_VERSION = 5.0;
9053+
SWIFT_VERSION = 5.7;
90549054
TARGETED_DEVICE_FAMILY = "1,2";
90559055
};
90569056
name = Debug;
@@ -9068,7 +9068,7 @@
90689068
"@loader_path/Frameworks",
90699069
);
90709070
SUPPORTS_MACCATALYST = YES;
9071-
SWIFT_VERSION = 5.0;
9071+
SWIFT_VERSION = 5.7;
90729072
TARGETED_DEVICE_FAMILY = "1,2";
90739073
};
90749074
name = Release;

Parse/Parse/Internal/ACL/DefaultACLController/PFDefaultACLController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313

1414
#import "PFCoreDataProvider.h"
1515

Parse/Parse/Internal/ACL/PFACLPrivate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFACL.h>
12+
#import <PFACL.h>
1313

1414
@class PFUser;
1515

Parse/Parse/Internal/Analytics/Controller/PFAnalyticsController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313

1414
#import "PFDataProvider.h"
1515
#import "PFMacros.h"

Parse/Parse/Internal/Analytics/PFAnalytics_Private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
99

10-
#import <Parse/PFAnalytics.h>
10+
#import <PFAnalytics.h>
1111

1212
/**
1313
Predefined events - AppOpened, CrashReport

Parse/Parse/Internal/CloudCode/PFCloudCodeController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313
#import "PFDataProvider.h"
1414

1515
@class BFTask<__covariant BFGenericType>;

Parse/Parse/Internal/Commands/CommandRunner/PFCommandRunning.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313

1414
#import "PFDataProvider.h"
1515

Parse/Parse/Internal/Commands/CommandRunner/URLRequestConstructor/PFCommandURLRequestConstructor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313

1414
#import "PFDataProvider.h"
1515

Parse/Parse/Internal/Commands/CommandRunner/URLSession/Session/PFURLSession.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313

1414
@class BFCancellationToken;
1515

Parse/Parse/Internal/Commands/CommandRunner/URLSession/Session/TaskDelegate/PFURLSessionDataTaskDelegate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313

1414
@class BFCancellationToken;
1515

Parse/Parse/Internal/Commands/CommandRunner/URLSession/Session/TaskDelegate/PFURLSessionFileDownloadTaskDelegate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import "PFURLSessionDataTaskDelegate.h"
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313

1414
NS_ASSUME_NONNULL_BEGIN
1515

Parse/Parse/Internal/Commands/CommandRunner/URLSession/Session/TaskDelegate/PFURLSessionUploadTaskDelegate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313

1414
#import "PFURLSessionJSONDataTaskDelegate.h"
1515

Parse/Parse/Internal/Commands/PFRESTObjectBatchCommand.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import "PFRESTCommand.h"
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313

1414
extern NSUInteger const PFRESTObjectBatchCommandSubcommandsLimit;
1515

Parse/Parse/Internal/Commands/PFRESTPushCommand.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import "PFRESTCommand.h"
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313

1414
PF_WATCH_UNAVAILABLE_WARNING
1515

Parse/Parse/Internal/Config/Controller/PFConfigController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313

1414
#import "PFDataProvider.h"
1515

Parse/Parse/Internal/Config/Controller/PFCurrentConfigController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313

1414
#import "PFDataProvider.h"
1515

Parse/Parse/Internal/Config/PFConfig_Private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFConfig.h>
12+
#import <PFConfig.h>
1313

1414
extern NSString *const PFConfigParametersRESTKey;
1515

Parse/Parse/Internal/File/Controller/PFFileController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313

1414
#import "PFDataProvider.h"
1515
#import "PFMacros.h"

Parse/Parse/Internal/File/Controller/PFFileStagingController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313

1414
@class BFTask<__covariant BFGenericType>;
1515

Parse/Parse/Internal/File/PFFileObject_Private.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFConstants.h>
13-
#import <Parse/PFFileObject.h>
12+
#import <PFConstants.h>
13+
#import <PFFileObject.h>
1414

1515
#import "PFFileState.h"
1616

Parse/Parse/Internal/Installation/CurrentInstallationController/PFCurrentInstallationController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313

1414
#import "PFCoreDataProvider.h"
1515
#import "PFCurrentObjectControlling.h"

Parse/Parse/Internal/Installation/InstallationIdentifierStore/PFInstallationIdentifierStore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#import "PFDataProvider.h"
1313

14-
#import <Parse/PFConstants.h>
14+
#import <PFConstants.h>
1515

1616
@class BFTask<__covariant BFGenericType>;
1717

Parse/Parse/Internal/Installation/PFInstallationPrivate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFInstallation.h>
12+
#import <PFInstallation.h>
1313

1414
PF_WATCH_UNAVAILABLE_WARNING
1515

Parse/Parse/Internal/LocalDataStore/OfflineQueryLogic/PFOfflineQueryLogic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313

1414
#import "PFMacros.h"
1515

Parse/Parse/Internal/LocalDataStore/OfflineStore/PFOfflineStore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313

1414
#import "PFMacros.h"
1515

Parse/Parse/Internal/LocalDataStore/Pin/PFPin.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFObject.h>
13-
#import <Parse/PFSubclassing.h>
12+
#import <PFObject.h>
13+
#import <PFSubclassing.h>
1414

1515
extern NSString *const PFPinKeyName;
1616
extern NSString *const PFPinKeyObjects;

Parse/Parse/Internal/LocalDataStore/SQLite/PFSQLiteDatabase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
#import <Parse/PFConstants.h>
12+
#import <PFConstants.h>
1313

1414
#import "PFMacros.h"
1515

0 commit comments

Comments
 (0)