Skip to content
This repository was archived by the owner on Jan 16, 2021. It is now read-only.

Commit 60e49c1

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

File tree

182 files changed

+23057
-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.

182 files changed

+23057
-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

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
18+
DerivedData
19+
build
20+
21+
Vendor/Parse.framework
22+
Vendor/Bolts.framework

.travis.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
branches:
2+
only:
3+
- master
4+
- master-v3
5+
language: objective-c
6+
os: osx
7+
osx_image: xcode7
8+
env:
9+
global:
10+
- LC_CTYPE=en_US.UTF-8
11+
- LANG=en_US.UTF-8
12+
matrix:
13+
- TEST_TYPE=ios
14+
- TEST_TYPE=podspecs
15+
script:
16+
- |
17+
if [ "$TEST_TYPE" = ios ]; then
18+
set -o pipefail
19+
xcodebuild test -workspace ParseFacebookUtils.xcworkspace -sdk iphonesimulator -scheme ParseFacebookUtils-iOS -configuration Debug -destination "platform=iOS Simulator,name=iPhone 4s" -destination "platform=iOS Simulator,name=iPhone 6 Plus" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty
20+
elif [ "$TEST_TYPE" = podspecs ]; then
21+
pod lib lint --use-libraries ParseFacebookUtils.podspec --allow-warnings
22+
fi
23+
after_success:
24+
- |
25+
if [ "$TEST_TYPE" = ios ]; then
26+
bash <(curl -s https://codecov.io/bash)
27+
fi

CONTRIBUTING.md

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Contributing to Parse Facebook Utils for iOS
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+
To view the REST API network requests issued by the Parse SDK, please check out our [Network Debugging Tool][network-debugging-tool].
38+
39+
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:
40+
41+
* A description. What did you expect to happen and what actually happened? Why do you think that was wrong?
42+
* 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.
43+
* What version does this reproduce on? What version did it last work on?
44+
* [Stacktrace or GTFO][stacktrace-or-gtfo]. In all honesty, full stacktraces with line numbers make a happy developer.
45+
* Anything else you find relevant.
46+
47+
48+
### Security Bugs
49+
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.
50+
51+
## Style Guide
52+
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:
53+
54+
* Most importantly, match the existing code style as much as possible.
55+
* Try to keep lines under 120 characters, if possible.
56+
57+
## License
58+
By contributing to Parse Facebook Utils for iOS, you agree that your contributions will be licensed under its license.
59+
60+
[google-group]: https://groups.google.com/forum/#!forum/parse-developers
61+
[stack-overflow]: http://stackoverflow.com/tags/parse.com
62+
[bug-reports]: https://www.parse.com/help#report
63+
[rest-api]: https://www.parse.com/docs/rest/guide
64+
[parse-api-console]: http://blog.parse.com/announcements/introducing-the-parse-api-console/
65+
[network-debugging-tool]: https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/wiki/Network-Debug-Tool
66+
[stacktrace-or-gtfo]: http://i.imgur.com/jacoj.jpg
67+
[tests-dir]: /Tests/Unit/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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/Application.xcconfig"
12+
13+
PRODUCT_NAME = ParseFacebookTestApplication
14+
15+
INFOPLIST_FILE = $(SRCROOT)/Tests/TestApplication/Resources/Info.plist
16+
17+
LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks
18+
19+
CLANG_ENABLE_MODULES = YES
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/iOS.xcconfig"
11+
#include "Shared/Product/Framework.xcconfig"
12+
13+
PRODUCT_NAME = ParseFacebookUtils
14+
15+
MACH_O_TYPE = staticlib
16+
17+
INFOPLIST_FILE = $(SRCROOT)/Resources/Info.plist
18+
19+
FRAMEWORK_SEARCH_PATHS = $(inherited) $(SRCROOT)/Vendor
20+
21+
OTHER_CFLAGS[sdk=iphoneos9.0] = $(inherited) -fembed-bitcode
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
#include "Pods/Target Support Files/Pods-ParseFacebookUtilsV3-UnitTests/Pods-ParseFacebookUtilsV3-UnitTests.debug.xcconfig"
13+
14+
PRODUCT_NAME = ParseFacebookUtilsV3-UnitTests
15+
TEST_HOST = $(BUILT_PRODUCTS_DIR)/ParseFacebookTestApplication.app/ParseFacebookTestApplication
16+
BUNDLE_LOADER = $(TEST_HOST)
17+
18+
INFOPLIST_FILE = $(SRCROOT)/Tests/Resources/Info.plist
19+
20+
FRAMEWORK_SEARCH_PATHS = $(inherited) $(SRCROOT)/Vendor/
21+
HEADER_SEARCH_PATHS = $(inherited) $(BUILT_PRODUCTS_DIR)
22+
LIBRARY_SEARCH_PATHS = $(inherited) $(BUILT_PRODUCTS_DIR)
23+
24+
CLANG_ENABLE_MODULES = YES

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,14 @@
1+
//
2+
// Copyright (c) 2014, Facebook, Inc.
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 = watchos
11+
WATCHOS_DEPLOYMENT_TARGET = 2.0
12+
13+
CODE_SIGN_IDENTITY =
14+
CODE_SIGNING_REQUIRED = NO
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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
14+
CLANG_ENABLE_MODULES = YES
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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
17+
18+
CLANG_MODULES_AUTOLINK = NO
19+
CLANG_ENABLE_MODULES = YES
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
OTHER_LDFLAGS = $(inherited) -ObjC -framework XCTest
11+
BUNDLE_LOADER = $(TEST_HOST)
12+
13+
LD_RUNPATH_SEARCH_PATHS = $(inherited) @loader_path/Frameworks @executable_path/Frameworks
14+
USER_HEADER_SEARCH_PATHS = $(value) $(PARSE_DIR)/Tests/**
15+
CLANG_ENABLE_MODULES = YES

0 commit comments

Comments
 (0)