File tree 15 files changed +38
-31
lines changed 15 files changed +38
-31
lines changed Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
s . name = 'Parse'
3
- s . version = '1.15.1 '
3
+ s . version = '1.15.2 '
4
4
s . license = { :type => 'BSD' , :file => 'LICENSE' }
5
5
s . homepage = 'http://parseplatform.org/'
6
6
s . summary = 'A library that gives you access to the powerful Parse cloud platform from your iOS/OS X/watchOS/tvOS app.'
Original file line number Diff line number Diff line change 140
140
141
141
@end
142
142
143
+ @interface PFObject ()
144
+
145
+ /* *
146
+ Constructs an object of the most specific class known to implement `+parseClassName`.
147
+
148
+ This method takes care to help `PFObject` subclasses be subclassed themselves.
149
+ For example, `PFUser.+object` returns a `PFUser` by default but will return an
150
+ object of a registered subclass instead if one is known.
151
+ A default implementation is provided by `PFObject` which should always be sufficient.
152
+
153
+ @return Returns the object that is instantiated.
154
+ */
155
+ + (instancetype )object ;
156
+
157
+ @end
158
+
143
159
@interface PFObject (Private)
144
160
145
161
/* *
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ extern NSTimeInterval const PFEventuallyQueueDefaultTimeoutRetryInterval;
67
67
- (void )start NS_REQUIRES_SUPER;
68
68
- (void )resume NS_REQUIRES_SUPER;
69
69
- (void )pause NS_REQUIRES_SUPER;
70
- - (void )stop NS_REQUIRES_SUPER;
70
+ - (void )terminate NS_REQUIRES_SUPER;
71
71
- (void )removeAllCommands NS_REQUIRES_SUPER;
72
72
73
73
@end
Original file line number Diff line number Diff line change @@ -80,10 +80,6 @@ - (instancetype)initWithDataSource:(id<PFCommandRunnerProvider>)dataSource
80
80
return self;
81
81
}
82
82
83
- - (void )dealloc {
84
- [self _stopMonitoringNetworkReachability ];
85
- }
86
-
87
83
// /--------------------------------------
88
84
#pragma mark - Enqueueing Commands
89
85
// /--------------------------------------
@@ -197,7 +193,8 @@ - (void)pause {
197
193
dispatch_suspend (_processingQueueSource);
198
194
}
199
195
200
- - (void )stop {
196
+ - (void )terminate {
197
+ [self _stopMonitoringNetworkReachability ];
201
198
dispatch_source_cancel (_processingQueueSource);
202
199
}
203
200
@@ -383,7 +380,6 @@ - (void)_stopMonitoringNetworkReachability {
383
380
[[PFReachability sharedParseReachability ] removeListener: self ];
384
381
385
382
self.monitorsReachability = NO ;
386
- self.connected = YES ;
387
383
#endif
388
384
}
389
385
@@ -393,9 +389,11 @@ - (void)_stopMonitoringNetworkReachability {
393
389
394
390
/* * Manually sets the network connection status. */
395
391
- (void )setConnected : (BOOL )connected {
392
+ @weakify (self);
396
393
BFTaskCompletionSource *barrier = [BFTaskCompletionSource taskCompletionSource ];
397
394
dispatch_async (_processingQueue, ^{
398
395
dispatch_sync (_synchronizationQueue, ^{
396
+ @strongify (self);
399
397
if (self.connected != connected) {
400
398
_connected = connected;
401
399
if (connected) {
Original file line number Diff line number Diff line change @@ -130,7 +130,9 @@ - (void)addListener:(id<PFReachabilityListener>)listener {
130
130
}
131
131
132
132
- (void )removeListener : (id <PFReachabilityListener>)listener {
133
+ @weakify (listener);
133
134
dispatch_barrier_sync (_synchronizationQueue, ^{
135
+ @strongify (listener);
134
136
[_listenersArray filterUsingPredicate: [NSPredicate predicateWithBlock: ^BOOL (id evaluatedObject, NSDictionary *bindings) {
135
137
id weakObject = [evaluatedObject weakObject ];
136
138
return (weakObject == nil || weakObject == listener);
Original file line number Diff line number Diff line change @@ -181,8 +181,8 @@ - (PFEventuallyQueue *)eventuallyQueue {
181
181
if (commandCache.commandCount > 0 ) {
182
182
[commandCache removeAllCommands ];
183
183
}
184
- // we won't need it after stop everything ...
185
- [commandCache stop ];
184
+ // we won't need it after, terminate ...
185
+ [commandCache terminate ];
186
186
}
187
187
}
188
188
#endif
Original file line number Diff line number Diff line change 13
13
#pragma mark - SDK Version
14
14
// /--------------------------------------
15
15
16
- #define PARSE_VERSION @" 1.15.1 "
16
+ #define PARSE_VERSION @" 1.15.2 "
17
17
18
18
// /--------------------------------------
19
19
#pragma mark - Platform
Original file line number Diff line number Diff line change @@ -32,18 +32,6 @@ NS_ASSUME_NONNULL_BEGIN
32
32
33
33
@optional
34
34
35
- /* *
36
- Constructs an object of the most specific class known to implement `+parseClassName`.
37
-
38
- This method takes care to help `PFObject` subclasses be subclassed themselves.
39
- For example, `PFUser.+object` returns a `PFUser` by default but will return an
40
- object of a registered subclass instead if one is known.
41
- A default implementation is provided by `PFObject` which should always be sufficient.
42
-
43
- @return Returns the object that is instantiated.
44
- */
45
- + (instancetype )object ;
46
-
47
35
/* *
48
36
Creates a reference to an existing PFObject for use in creating associations between PFObjects.
49
37
Original file line number Diff line number Diff line change 13
13
<key >CFBundlePackageType </key >
14
14
<string >FMWK </string >
15
15
<key >CFBundleShortVersionString </key >
16
- <string >1.15.1 </string >
16
+ <string >1.15.2 </string >
17
17
<key >CFBundleSignature </key >
18
18
<string >???? </string >
19
19
<key >CFBundleVersion </key >
20
- <string >1.15.1 </string >
20
+ <string >1.15.2 </string >
21
21
</dict >
22
22
</plist >
Original file line number Diff line number Diff line change 13
13
<key >CFBundlePackageType </key >
14
14
<string >FMWK </string >
15
15
<key >CFBundleShortVersionString </key >
16
- <string >1.15.1 </string >
16
+ <string >1.15.2 </string >
17
17
<key >CFBundleSignature </key >
18
18
<string >???? </string >
19
19
<key >CFBundleSupportedPlatforms </key >
22
22
<string >iPhoneOS </string >
23
23
</array >
24
24
<key >CFBundleVersion </key >
25
- <string >1.15.1 </string >
25
+ <string >1.15.2 </string >
26
26
<key >MinimumOSVersion </key >
27
27
<string >6.0 </string >
28
28
</dict >
Original file line number Diff line number Diff line change 15
15
<key >CFBundlePackageType </key >
16
16
<string >FMWK </string >
17
17
<key >CFBundleShortVersionString </key >
18
- <string >1.15.1 </string >
18
+ <string >1.15.2 </string >
19
19
<key >CFBundleSignature </key >
20
20
<string >???? </string >
21
21
<key >CFBundleVersion </key >
22
- <string >1.15.1 </string >
22
+ <string >1.15.2 </string >
23
23
<key >NSPrincipalClass </key >
24
24
<string ></string >
25
25
</dict >
Original file line number Diff line number Diff line change 15
15
<key >CFBundlePackageType </key >
16
16
<string >FMWK </string >
17
17
<key >CFBundleShortVersionString </key >
18
- <string >1.15.1 </string >
18
+ <string >1.15.2 </string >
19
19
<key >CFBundleSignature </key >
20
20
<string >???? </string >
21
21
<key >CFBundleVersion </key >
22
- <string >1.15.1 </string >
22
+ <string >1.15.2 </string >
23
23
<key >NSPrincipalClass </key >
24
24
<string ></string >
25
25
</dict >
Original file line number Diff line number Diff line change 9
9
10
10
#import " PFProduct.h"
11
11
#import " PFUnitTestCase.h"
12
+ #import " PFObjectPrivate.h"
12
13
13
14
@interface ProductTests : PFUnitTestCase
14
15
Original file line number Diff line number Diff line change 19
19
#import " PFTestSKProduct.h"
20
20
#import " PFUnitTestCase.h"
21
21
#import " Parse_Private.h"
22
+ #import " PFObjectPrivate.h"
22
23
23
24
@protocol PurchaseControllerDataSource <PFCommandRunnerProvider, PFFileManagerProvider>
24
25
Original file line number Diff line number Diff line change 9
9
10
10
#import " PFUnitTestCase.h"
11
11
#import " PFUser.h"
12
+ #import " PFObjectPrivate.h"
12
13
13
14
@interface UserUnitTests : PFUnitTestCase
14
15
You can’t perform that action at this time.
0 commit comments