Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
b8748fd
Parse UI builds on iOS 8.0. Carthage uses parse-community/bolts-objc
noobs2ninjas Dec 4, 2019
5ee2061
Updating gitignore to remove vendor file.
noobs2ninjas Dec 4, 2019
53b7c23
Removing vendor files.
noobs2ninjas Dec 4, 2019
27bfe84
Migrating to base internationalizm. Removing depricated reguions.
noobs2ninjas Dec 4, 2019
912dc29
Updating each target to only support only its platform.
noobs2ninjas Dec 4, 2019
5668aec
Revert "Updating each target to only support only its platform."
noobs2ninjas Dec 4, 2019
359ba41
Updating rakefile to try and fix circleCI build.
noobs2ninjas Dec 4, 2019
87b9c6b
Fixing Apple TV scripts for circle and travis builds.
noobs2ninjas Dec 4, 2019
78e8dc0
Fixing TVOS Version
noobs2ninjas Dec 4, 2019
9fc696d
Updating travis xcode environment
noobs2ninjas Dec 4, 2019
f3e3b2e
Updating circle ci environment.
noobs2ninjas Dec 4, 2019
314095a
updating travis one last time with proper sim runtime.
noobs2ninjas Dec 4, 2019
eb272f5
trying to fix local bundleer issue
noobs2ninjas Dec 4, 2019
b2dc483
Updating circle for macOS 10.15
noobs2ninjas Dec 4, 2019
75e9f44
removing bash command
noobs2ninjas Dec 4, 2019
d628aa9
trying to fix xcode env
noobs2ninjas Dec 4, 2019
1a1850b
trying another fix for bash issue
noobs2ninjas Dec 4, 2019
77e4f7c
Dumb echo
noobs2ninjas Dec 4, 2019
1da751e
ruby version
noobs2ninjas Dec 4, 2019
c3f9a2e
running bundler locally
noobs2ninjas Dec 4, 2019
848d758
Fixing travis simulator and gem path.
noobs2ninjas Dec 4, 2019
9837cd4
still trying to fix path issues
noobs2ninjas Dec 4, 2019
032c403
Still trying to fix catalina issues
noobs2ninjas Dec 4, 2019
7c12d86
still trying to fix config
noobs2ninjas Dec 4, 2019
31ac933
Fixing simulator versions
noobs2ninjas Dec 4, 2019
5ee4fd9
Adding bolts_folder back.
noobs2ninjas Dec 4, 2019
f75f4b4
Missed a few simulator OS version updates.
noobs2ninjas Dec 5, 2019
e9ef6bc
Updating project settings.
noobs2ninjas Dec 10, 2019
f0909f0
removing modules to update carthage
noobs2ninjas Dec 10, 2019
4acb88f
Updating carthage
noobs2ninjas Dec 10, 2019
dcd78b9
Updating to latest version of bolts.
noobs2ninjas Dec 10, 2019
49b8384
Adding xctoolchain back to submodules
noobs2ninjas Dec 10, 2019
f8c4fd5
Attempting to fix facebook test.
noobs2ninjas Dec 10, 2019
6b79dfb
Revert "Attempting to fix facebook test."
noobs2ninjas Dec 10, 2019
f6c21da
Returning Code coverage to original state.
noobs2ninjas Dec 10, 2019
a67b460
fixing destinations for macOS and removing OS version for iPhone.
noobs2ninjas Jan 3, 2020
b18f6a2
Fixing macOS build
noobs2ninjas Jan 3, 2020
e11fb8a
Fix iOS, twitter, facebook builds.
noobs2ninjas Jan 3, 2020
17643a2
Adding OS=13.2.2 back for Travis release
noobs2ninjas Jan 3, 2020
a375929
fixing xcode version
noobs2ninjas Jan 3, 2020
feb91cd
Final destination fixes
noobs2ninjas Jan 3, 2020
3324fac
simplifying destinations
noobs2ninjas Jan 3, 2020
5634c59
Adding quotations back
noobs2ninjas Jan 3, 2020
6bec35b
Last tweak for jazzy publishing
noobs2ninjas Jan 3, 2020
538dbd0
Changing OS version for Circle specifically.
noobs2ninjas Jan 3, 2020
a50b9b5
removing vendor
noobs2ninjas Jan 3, 2020
76b2b19
Adding Back
noobs2ninjas Jan 3, 2020
9bae0fe
removing carthage files
noobs2ninjas Jan 3, 2020
737a3bf
updating
noobs2ninjas Jan 3, 2020
7fb2205
updating gitmodules
noobs2ninjas Jan 3, 2020
6506927
Adding carthage files back
noobs2ninjas Jan 3, 2020
c39b702
updating toolchain
noobs2ninjas Jan 3, 2020
d17942b
updating xctoolchain. Travis didnt update TVOS
noobs2ninjas Jan 3, 2020
174bf0d
Removing simulator create
noobs2ninjas Jan 3, 2020
9312492
Merge remote-tracking branch 'upstream/master'
noobs2ninjas Jan 7, 2020
6f67392
Adding OCMock as official dependency now that Facebook SDK no longer …
noobs2ninjas Jan 7, 2020
387ca66
Fixing Facebook Util Tests. Adding correct dependencies.
noobs2ninjas Jan 7, 2020
0e0336c
Fixing Twitter Build
noobs2ninjas Jan 7, 2020
ebfb0bd
Fixing macOS and iOS Tests by adding OCMock reference.
noobs2ninjas Jan 7, 2020
ea6e7a8
removing OCMock as cartfile dependency.
noobs2ninjas Jan 15, 2020
5b16ce4
Makes gem install bundler use root
drdaz Jan 18, 2020
73dca30
Adding OCMock to fix twitter test.
noobs2ninjas Mar 2, 2020
1a57e32
Switching twitter utils to build from project rather than building fr…
noobs2ninjas Mar 2, 2020
5a523e9
Updating terminology.
noobs2ninjas Mar 2, 2020
4883a07
Updating facebook to use iOS specific OCMock. Also, restart travis test.
noobs2ninjas Mar 2, 2020
a18cbc6
Update git ignore to keep from adding OCMock.framework headers after …
noobs2ninjas Mar 4, 2020
9f44cab
Fix for testFindObjectsCacheOnlyCorruptJSON
noobs2ninjas Mar 9, 2020
c6020ed
Fixing testBuyProductsAsync.
noobs2ninjas Mar 9, 2020
9131177
Fixes for testFetchPin, testConstructors, and testDownloadStreamSha…
noobs2ninjas Mar 9, 2020
042f1b4
Fixed one error about registering pin before using parse.
noobs2ninjas Mar 9, 2020
6d87dc7
Reverts to OCMock v3.4.3
drdaz Mar 9, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ aliases:
- &prepare
|
git submodule update --init --recursive
gem install bundler
sudo gem install bundler
bundle install
- &filter-only-master
branches:
Expand All @@ -19,7 +19,6 @@ jobs:
<<: *defaults
steps:
- checkout
- run: echo 'chruby ruby-2.6' >> ~/.bash_profile
- run: *prepare
- run: bundle exec rake test:ios
- run: bash <(curl -s https://codecov.io/bash)
Expand All @@ -29,7 +28,6 @@ jobs:
<<: *defaults
steps:
- checkout
- run: echo 'chruby ruby-2.6' >> ~/.bash_profile
- run: *prepare
- run:
name: "Create and set the default keychain"
Expand All @@ -49,7 +47,6 @@ jobs:
<<: *defaults
steps:
- checkout
- run: echo 'chruby ruby-2.6' >> ~/.bash_profile
- run: *prepare
- run: bundle exec rake test:facebook_utils:ios
- run: bash <(curl -s https://codecov.io/bash)
Expand All @@ -59,7 +56,6 @@ jobs:
<<: *defaults
steps:
- checkout
- run: echo 'chruby ruby-2.6' >> ~/.bash_profile
- run: *prepare
- run: bundle exec rake test:twitter_utils:ios
- run: bash <(curl -s https://codecov.io/bash)
Expand All @@ -69,7 +65,6 @@ jobs:
<<: *defaults
steps:
- checkout
- run: echo 'chruby ruby-2.6' >> ~/.bash_profile
- run: *prepare
- run: bundle exec rake test:parseui:all
- run: bash <(curl -s https://codecov.io/bash)
Expand All @@ -87,21 +82,18 @@ jobs:
<<: *defaults
steps:
- checkout
- run: echo 'chruby ruby-2.6' >> ~/.bash_profile
- run: *prepare
- run: ./Scripts/jazzy.sh
carthage:
<<: *defaults
steps:
- checkout
- run: echo 'chruby ruby-2.6' >> ~/.bash_profile
- run: *prepare
- run: bundle exec rake test:carthage
cocoapods:
<<: *defaults
steps:
- checkout
- run: echo 'chruby ruby-2.6' >> ~/.bash_profile
- run: *prepare
- run: bundle exec rake test:cocoapods

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
## Build generated
build/
DerivedData
OCMock.framework

## Various settings
*.pbxuser
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "Carthage/Checkouts/facebook-objc-sdk"]
path = Carthage/Checkouts/facebook-objc-sdk
url = https://github.com/facebook/facebook-objc-sdk.git
[submodule "Carthage/Checkouts/OCMock"]
path = Carthage/Checkouts/OCMock
url = https://github.com/erikdoe/OCMock.git
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "facebook/facebook-objc-sdk" "v5.13.1"
github "facebook/facebook-objc-sdk" "v5.15.1"
github "parse-community/Bolts-ObjC" "1.9.1"
1 change: 1 addition & 0 deletions Carthage/Checkouts/OCMock
Submodule OCMock added at 62fd0b
2 changes: 1 addition & 1 deletion Carthage/Checkouts/facebook-objc-sdk
84 changes: 8 additions & 76 deletions Parse/Parse.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions Parse/Parse/Internal/PFApplication.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ - (id)init {
if (self) {
#if TARGET_OS_IOS || TARGET_OS_TV
if (@available(iOS 1.0, tvOS 10.0, *)) {
[self.systemApplication addObserver:self forKeyPath:@"applicationIconBadgeNumber" options:NSKeyValueObservingOptionNew context:nil];
_iconBadgeNumber = self.systemApplication.applicationIconBadgeNumber;
dispatch_async(dispatch_get_main_queue(), ^{
[self.systemApplication addObserver:self forKeyPath:@"applicationIconBadgeNumber" options:NSKeyValueObservingOptionNew context:nil];
self->_iconBadgeNumber = self.systemApplication.applicationIconBadgeNumber;
});
}
#endif
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ - (void)start {
- (void)cancel {
}

@end
@end
4 changes: 2 additions & 2 deletions Parse/Tests/Unit/FileControllerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ - (void)testDownloadStreamSharesOperations {
BFTaskCompletionSource *taskCompletionSource = [BFTaskCompletionSource taskCompletionSource];
__block PFProgressBlock progressBlock = nil;

id mockedCommandRunner = [mockedDataSource commandRunner];
OCMStub([mockedCommandRunner runFileDownloadCommandAsyncWithFileURL:tempPath
id<PFCommandRunning> commandRunner = [mockedDataSource commandRunner];
OCMStub([commandRunner runFileDownloadCommandAsyncWithFileURL:tempPath
targetFilePath:[OCMArg isNotNil]
cancellationToken:nil
progressBlock:[OCMArg checkWithBlock:^BOOL(id obj) {
Expand Down
2 changes: 1 addition & 1 deletion Parse/Tests/Unit/KeyValueCacheTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ - (void)testConstructors {
XCTAssertEqual(cache.maxDiskCacheRecords, 1000);
XCTAssertEqual(cache.maxMemoryCacheBytesPerRecord, 1024 * 1024);

id mockedFileManager = [TestFileManager fileManager];
id mockedFileManager = [OCMockObject partialMockForObject:[TestFileManager fileManager]];
OCMExpect([mockedFileManager createDirectoryAtURL:OCMOCK_ANY withIntermediateDirectories:YES attributes:nil error:NULL]);

NSCache *mockedCache = [TestCache cache];
Expand Down
3 changes: 1 addition & 2 deletions Parse/Tests/Unit/PinningObjectStoreTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ @implementation PinningObjectStoreTests

- (void)setUp
{
[PFPin registerSubclass];

[super setUp];
[PFPin registerSubclass];
}

- (void)testConstructors {
Expand Down
6 changes: 4 additions & 2 deletions Parse/Tests/Unit/PurchaseControllerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,10 @@ - (void)testBuyProductsAsync {
}];

[self waitForTestExpectations];

OCMStub([purchaseController canPurchase]).andReturn(YES);

id partial = [OCMockObject partialMockForObject:purchaseController];
OCMStub([partial canPurchase]).andReturn(YES);

XCTestExpectation *failInvalidProductExpectation = [self expectationWithDescription:@"Failed Invalid Product"];

[[purchaseController buyProductAsyncWithIdentifier:@"nonexistent"] continueWithBlock:^id(BFTask *task) {
Expand Down
Loading