Skip to content

Commit 61f68e9

Browse files
committed
(っ˘▽˘)っ ☁️ ⊂(◕。◕⊂)
0 parents  commit 61f68e9

File tree

565 files changed

+77605
-0
lines changed

Some content is hidden

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

565 files changed

+77605
-0
lines changed

.clang-format

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Copyright (c) 2015-present, Parse, LLC.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree. An additional grant
6+
# of patent rights can be found in the PATENTS file in the same directory.
7+
8+
---
9+
Language: Cpp
10+
BasedOnStyle: LLVM
11+
AccessModifierOffset: -2
12+
AlignAfterOpenBracket: true
13+
AlignEscapedNewlinesLeft: true
14+
AlignOperands: true
15+
AlignTrailingComments: false
16+
AllowAllParametersOfDeclarationOnNextLine: false
17+
AllowShortBlocksOnASingleLine: false
18+
AllowShortCaseLabelsOnASingleLine: false
19+
AllowShortIfStatementsOnASingleLine: true
20+
AllowShortLoopsOnASingleLine: false
21+
AllowShortFunctionsOnASingleLine: false
22+
AlwaysBreakAfterDefinitionReturnType: false
23+
AlwaysBreakTemplateDeclarations: false
24+
AlwaysBreakBeforeMultilineStrings: false
25+
BreakBeforeBinaryOperators: None
26+
BreakBeforeTernaryOperators: true
27+
BreakConstructorInitializersBeforeComma: true
28+
BinPackParameters: true
29+
BinPackArguments: true
30+
ColumnLimit: 0
31+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
32+
ConstructorInitializerIndentWidth: 4
33+
DerivePointerAlignment: true
34+
ExperimentalAutoDetectBinPacking: true
35+
IndentCaseLabels: true
36+
IndentWrappedFunctionNames: true
37+
IndentFunctionDeclarationAfterType: true
38+
MaxEmptyLinesToKeep: 1
39+
KeepEmptyLinesAtTheStartOfBlocks: true
40+
NamespaceIndentation: None
41+
ObjCBlockIndentWidth: 4
42+
ObjCSpaceAfterProperty: true
43+
ObjCSpaceBeforeProtocolList: true
44+
PenaltyBreakBeforeFirstCallParameter: 19
45+
PenaltyBreakComment: 300
46+
PenaltyBreakString: 1000
47+
PenaltyBreakFirstLessLess: 140
48+
PenaltyExcessCharacter: 1000000
49+
PenaltyReturnTypeOnItsOwnLine: 120
50+
PointerAlignment: Right
51+
SpacesBeforeTrailingComments: 1
52+
Cpp11BracedListStyle: true
53+
Standard: Cpp11
54+
IndentWidth: 4
55+
TabWidth: 4
56+
UseTab: Never
57+
BreakBeforeBraces: Attach
58+
SpacesInParentheses: false
59+
SpacesInSquareBrackets: false
60+
SpacesInAngles: false
61+
SpaceInEmptyParentheses: false
62+
SpacesInCStyleCastParentheses: false
63+
SpaceAfterCStyleCast: false
64+
SpacesInContainerLiterals: true
65+
SpaceBeforeAssignmentOperators: true
66+
ContinuationIndentWidth: 4
67+
CommentPragmas: '^ IWYU pragma:'
68+
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
69+
SpaceBeforeParens: ControlStatements
70+
DisableFormat: false
71+
...

.gitignore

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.DS_Store
2+
3+
*.pbxuser
4+
*.perspective
5+
*.perspectivev3
6+
7+
*.mode1v3
8+
*.mode2v3
9+
10+
*.xcodeproj/xcuserdata/*.xcuserdatad
11+
12+
*.xccheckout
13+
*.xcscmblueprint
14+
*.xcuserdatad
15+
16+
Pods
17+
Podfile.lock
18+
19+
DerivedData
20+
build

.gitmodules

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "Vendor/Bolts-ObjC"]
2+
path = Vendor/Bolts-ObjC
3+
url = git@github.com:BoltsFramework/Bolts-iOS.git
4+
[submodule "Vendor/OCMock"]
5+
path = Vendor/OCMock
6+
url = git@github.com:erikdoe/ocmock.git

.slather.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ci_service: travis_pro
2+
coverage_service: coveralls
3+
xcodeproj: Parse.xcodeproj
4+
ignore:
5+
- Tests/*
6+
- Vendor/*

.travis.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
branches:
2+
only:
3+
- master
4+
language: objective-c
5+
osx_image: xcode6.4
6+
cache: bundler
7+
env:
8+
global:
9+
- LC_CTYPE=en_US.UTF-8
10+
- LANG=en_US.UTF-8
11+
matrix:
12+
- TEST_TYPE=ios
13+
- TEST_TYPE=osx
14+
- TEST_TYPE=deployment
15+
- TEST_TYPE=starters
16+
- TEST_TYPE=podspecs
17+
before_install:
18+
- bundle install
19+
script:
20+
- bundle exec rake test:$TEST_TYPE

CONTRIBUTING.md

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Contributing to Parse SDK for iOS/OS X
2+
We want to make contributing to this project as easy and transparent as possible.
3+
4+
## Code of Conduct
5+
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read [the full text](https://code.facebook.com/codeofconduct) so that you can understand what actions will and will not be tolerated.
6+
7+
## Our Development Process
8+
Most of our work will be done in public directly on GitHub. There may be changes done through our internal source control, but it will be rare and only as needed.
9+
10+
### `master` is unsafe
11+
Our goal is to keep `master` stable, but there may be changes that your application may not be compatible with. We'll do our best to publicize any breaking changes, but try to use our specific releases in any production environment.
12+
13+
### Pull Requests
14+
We actively welcome your pull requests. When we get one, we'll run some Parse-specific integration tests on it first. From here, we'll need to get a core member to sign off on the changes and then merge the pull request. For API changes we may need to fix internal uses, which could cause some delay. We'll do our best to provide updates and feedback throughout the process.
15+
16+
1. Fork the repo and create your branch from `master`.
17+
4. Add unit tests for any new code you add.
18+
3. If you've changed APIs, update the documentation.
19+
4. Ensure the test suite passes.
20+
5. Make sure your code lints.
21+
6. If you haven't already, complete the Contributor License Agreement ("CLA").
22+
23+
### Contributor License Agreement ("CLA")
24+
In order to accept your pull request, we need you to submit a CLA. You only need to do this once to work on any of Facebook's open source projects.
25+
26+
Complete your CLA here: <https://developers.facebook.com/opensource/cla>
27+
28+
## Bugs
29+
Although we try to keep developing on Parse easy, you still may run into some issues. General questions should be asked on [Google Groups][google-group], technical questions should be asked on [Stack Overflow][stack-overflow], and for everything else we'll be using GitHub issues.
30+
31+
### Known Issues
32+
We use GitHub issues to track public bugs. We will keep a close eye on this and try to make it clear when we have an internal fix in progress. Before filing a new issue, try to make sure your problem doesn't already exist.
33+
34+
### Reporting New Issues
35+
Not all issues are SDK issues. If you're unsure whether your bug is with the SDK or backend, you can test to see if it reproduces with our [REST API][rest-api] and [Parse API Console][parse-api-console]. If it does, you can report backend bugs [here][bug-reports].
36+
37+
Details are key. The more information you provide us the easier it'll be for us to debug and the faster you'll receive a fix. Some examples of useful tidbits:
38+
39+
* A description. What did you expect to happen and what actually happened? Why do you think that was wrong?
40+
* A simple unit test that fails. Refer [here][tests-dir] for examples of existing unit tests. See our [README](README.md#usage) for how to run unit tests. You can submit a pull request with your failing unit test so that our CI verifies that the test fails.
41+
* What version does this reproduce on? What version did it last work on?
42+
* [Stacktrace or GTFO][stacktrace-or-gtfo]. In all honesty, full stacktraces with line numbers make a happy developer.
43+
* Anything else you find relevant.
44+
45+
46+
### Security Bugs
47+
Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe disclosure of security bugs. In those cases, please go through the process outlined on that page and do not file a public issue.
48+
49+
## Style Guide
50+
We're still working on providing a code style for your IDE and getting a linter on GitHub, but for now try to keep the following:
51+
52+
* Most importantly, match the existing code style as much as possible.
53+
* Try to keep lines under 120 characters, if possible.
54+
55+
## License
56+
By contributing to Parse iOS/OSX SDK, you agree that your contributions will be licensed under its license.
57+
58+
[google-group]: https://groups.google.com/forum/#!forum/parse-developers
59+
[stack-overflow]: http://stackoverflow.com/tags/parse.com
60+
[bug-reports]: https://www.parse.com/help#report
61+
[rest-api]: https://www.parse.com/docs/rest/guide
62+
[parse-api-console]: http://blog.parse.com/announcements/introducing-the-parse-api-console/
63+
[stacktrace-or-gtfo]: http://i.imgur.com/jacoj.jpg
64+
[tests-dir]: /Tests/Unit/

Configurations/BoltsSDK-OSX.xcconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
SDKROOT = macosx

Configurations/BoltsSDK-iOS.xcconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
SDKROOT = iphoneos

Configurations/Parse-OSX.xcconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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/OSX.xcconfig"
11+
#include "Shared/Product/Framework.xcconfig"
12+
13+
PRODUCT_NAME = ParseOSX
14+
15+
MACH_O_TYPE = mh_dylib
16+
DEFINES_MODULE = YES
17+
DYLIB_INSTALL_NAME_BASE = @rpath
18+
19+
FRAMEWORK_SEARCH_PATHS = $(inherited) $(BUILT_PRODUCTS_DIR) $(VENDOR_DIR)/Bolts-ObjC/build/osx/
20+
21+
INFOPLIST_FILE = $(PARSE_DIR)/Parse/Resources/FrameworkOSX.plist

Configurations/Parse-iOS.xcconfig

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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/Framework.xcconfig"
12+
13+
PRODUCT_NAME = Parse
14+
15+
MACH_O_TYPE = staticlib
16+
DEFINES_MODULE = YES
17+
18+
FRAMEWORK_SEARCH_PATHS = $(inherited) $(BUILT_PRODUCTS_DIR) $(VENDOR_DIR)/Bolts-ObjC/build/ios/
19+
20+
INFOPLIST_FILE = $(PARSE_DIR)/Parse/Resources/Framework.plist
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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/OSX.xcconfig"
11+
#include "Shared/Product/UnitTest.xcconfig"
12+
13+
PRODUCT_NAME = ParseUnitTests-OSX
14+
PRODUCT_MODULE_NAME = ParseUnitTests
15+
16+
INFOPLIST_FILE = $(SRCROOT)/Tests/Resources/ParseUnitTests-OSX-Info.plist
17+
LD_RUNPATH_SEARCH_PATHS = $(inherited) @loader_path/../Frameworks
18+
19+
FRAMEWORK_SEARCH_PATHS = $(inherited) $(VENDOR_DIR)/Bolts-ObjC/build/osx $(BUILT_PRODUCTS_DIR)/../Release$(EFFECTIVE_PLATFORM_NAME)
20+
21+
HEADER_SEARCH_PATHS = $(inherited) $(BUILT_PRODUCTS_DIR)
22+
USER_HEADER_SEARCH_PATHS = $(inherited) $(PARSE_DIR)/Parse/Internal/**
23+
24+
// Swift
25+
SWIFT_OBJC_BRIDGING_HEADER = $(SRCROOT)/Tests/Other/Swift/ParseUnitTests-OSX-Bridging-Header.h
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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/UnitTest.xcconfig"
12+
13+
PRODUCT_NAME = ParseUnitTests-iOS
14+
PRODUCT_MODULE_NAME = ParseUnitTests
15+
16+
INFOPLIST_FILE = $(SRCROOT)/Tests/Resources/ParseUnitTests-iOS-Info.plist
17+
18+
FRAMEWORK_SEARCH_PATHS = $(inherited) $(VENDOR_DIR)/Bolts-ObjC/build/ios
19+
LIBRARY_SEARCH_PATHS = $(inherited) $(BUILT_PRODUCTS_DIR) $(BUILT_PRODUCTS_DIR)/../Release$(EFFECTIVE_PLATFORM_NAME)
20+
21+
HEADER_SEARCH_PATHS = $(inherited) $(BUILT_PRODUCTS_DIR) $(BUILT_PRODUCTS_DIR)/../Release$(EFFECTIVE_PLATFORM_NAME)
22+
USER_HEADER_SEARCH_PATHS = $(inherited) $(PARSE_DIR)/Parse/Internal/**
23+
24+
// Swift
25+
SWIFT_OBJC_BRIDGING_HEADER = $(SRCROOT)/Tests/Other/Swift/ParseUnitTests-iOS-Bridging-Header.h

Configurations/Shared/Common.xcconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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 "Warnings.xcconfig"
11+
12+
// Language Settings
13+
CLANG_ENABLE_OBJC_ARC = YES
14+
GCC_C_LANGUAGE_STANDARD = gnu11
15+
CLANG_CXX_LANGUAGE_STANDARD = gnu++14
16+
CLANG_CXX_LIBRARY = libstdc++
17+
18+
// Search Paths
19+
PARSE_DIR = $(PROJECT_DIR)
20+
VENDOR_DIR = $(PARSE_DIR)/Vendor
21+
ALWAYS_SEARCH_USER_PATHS = NO
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
SDKROOT = macosx
11+
MACOSX_DEPLOYMENT_TARGET = 10.9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
SDKROOT = iphoneos
11+
IPHONEOS_DEPLOYMENT_TARGET = 7.0
12+
13+
GCC_THUMB_SUPPORT = NO
14+
15+
ARCHS = $(ARCHS_STANDARD) armv7s
16+
DSTROOT = /tmp/$(PRODUCT_NAME).dst
17+
18+
CODE_SIGN_IDENTITY =
19+
CODE_SIGNING_REQUIRED = NO
20+
21+
TARGETED_DEVICE_FAMILY = 1,2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
LD_RUNPATH_SEARCH_PATHS = @executable_path/Frameworks
11+
12+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
13+
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage
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+
ENABLE_NS_ASSERTIONS = NO
11+
MTL_ENABLE_DEBUG_INFO = NO
12+
13+
DYLIB_COMPATIBILITY_VERSION = 1
14+
DYLIB_CURRENT_VERSION = 1
15+
16+
SKIP_INSTALL = YES

0 commit comments

Comments
 (0)