This repository has been archived by the owner on Jan 16, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 256b4cc
Showing
90 changed files
with
6,771 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Copyright (c) 2015-present, Parse, LLC. | ||
# All rights reserved. | ||
# | ||
# This source code is licensed under the BSD-style license found in the | ||
# LICENSE file in the root directory of this source tree. An additional grant | ||
# of patent rights can be found in the PATENTS file in the same directory. | ||
|
||
--- | ||
Language: Cpp | ||
BasedOnStyle: LLVM | ||
AccessModifierOffset: -2 | ||
AlignAfterOpenBracket: true | ||
AlignEscapedNewlinesLeft: true | ||
AlignOperands: true | ||
AlignTrailingComments: false | ||
AllowAllParametersOfDeclarationOnNextLine: false | ||
AllowShortBlocksOnASingleLine: false | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortIfStatementsOnASingleLine: true | ||
AllowShortLoopsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: false | ||
AlwaysBreakAfterDefinitionReturnType: false | ||
AlwaysBreakTemplateDeclarations: false | ||
AlwaysBreakBeforeMultilineStrings: false | ||
BreakBeforeBinaryOperators: None | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializersBeforeComma: true | ||
BinPackParameters: true | ||
BinPackArguments: true | ||
ColumnLimit: 0 | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: true | ||
ConstructorInitializerIndentWidth: 4 | ||
DerivePointerAlignment: true | ||
ExperimentalAutoDetectBinPacking: true | ||
IndentCaseLabels: true | ||
IndentWrappedFunctionNames: true | ||
IndentFunctionDeclarationAfterType: true | ||
MaxEmptyLinesToKeep: 1 | ||
KeepEmptyLinesAtTheStartOfBlocks: true | ||
NamespaceIndentation: None | ||
ObjCBlockIndentWidth: 4 | ||
ObjCSpaceAfterProperty: true | ||
ObjCSpaceBeforeProtocolList: true | ||
PenaltyBreakBeforeFirstCallParameter: 19 | ||
PenaltyBreakComment: 300 | ||
PenaltyBreakString: 1000 | ||
PenaltyBreakFirstLessLess: 140 | ||
PenaltyExcessCharacter: 1000000 | ||
PenaltyReturnTypeOnItsOwnLine: 120 | ||
PointerAlignment: Right | ||
SpacesBeforeTrailingComments: 1 | ||
Cpp11BracedListStyle: true | ||
Standard: Cpp11 | ||
IndentWidth: 4 | ||
TabWidth: 4 | ||
UseTab: Never | ||
BreakBeforeBraces: Attach | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
SpacesInAngles: false | ||
SpaceInEmptyParentheses: false | ||
SpacesInCStyleCastParentheses: false | ||
SpaceAfterCStyleCast: false | ||
SpacesInContainerLiterals: true | ||
SpaceBeforeAssignmentOperators: true | ||
ContinuationIndentWidth: 4 | ||
CommentPragmas: '^ IWYU pragma:' | ||
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | ||
SpaceBeforeParens: ControlStatements | ||
DisableFormat: false | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.DS_Store | ||
|
||
*.pbxuser | ||
*.perspective | ||
*.perspectivev3 | ||
|
||
*.mode1v3 | ||
*.mode2v3 | ||
|
||
*.xcodeproj/xcuserdata/*.xcuserdatad | ||
|
||
*.xccheckout | ||
*.xcscmblueprint | ||
*.xcuserdatad | ||
|
||
Pods | ||
|
||
DerivedData | ||
build | ||
|
||
Vendor/Parse.framework | ||
Vendor/Bolts.framework |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
branches: | ||
only: | ||
- master | ||
- master-v3 | ||
language: objective-c | ||
os: osx | ||
osx_image: xcode7 | ||
env: | ||
global: | ||
- LC_CTYPE=en_US.UTF-8 | ||
- LANG=en_US.UTF-8 | ||
matrix: | ||
- TEST_TYPE=ios | ||
- TEST_TYPE=podspecs | ||
script: | ||
- | | ||
if [ "$TEST_TYPE" = ios ]; then | ||
set -o pipefail | ||
xcodebuild test -workspace ParseFacebookUtils.xcworkspace -sdk iphonesimulator -scheme ParseFacebookUtilsV4-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 | ||
elif [ "$TEST_TYPE" = podspecs ]; then | ||
pod lib lint ParseFacebookUtilsV4.podspec | ||
pod lib lint --use-libraries ParseFacebookUtilsV4.podspec | ||
fi | ||
after_success: | ||
- | | ||
if [ "$TEST_TYPE" = ios ]; then | ||
bash <(curl -s https://codecov.io/bash) | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Contributing to Parse Facebook Utils for iOS | ||
We want to make contributing to this project as easy and transparent as possible. | ||
|
||
## Code of Conduct | ||
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. | ||
|
||
## Our Development Process | ||
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. | ||
|
||
### `master` is unsafe | ||
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. | ||
|
||
### Pull Requests | ||
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. | ||
|
||
1. Fork the repo and create your branch from `master`. | ||
4. Add unit tests for any new code you add. | ||
3. If you've changed APIs, update the documentation. | ||
4. Ensure the test suite passes. | ||
5. Make sure your code lints. | ||
6. If you haven't already, complete the Contributor License Agreement ("CLA"). | ||
|
||
### Contributor License Agreement ("CLA") | ||
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. | ||
|
||
Complete your CLA here: <https://developers.facebook.com/opensource/cla> | ||
|
||
## Bugs | ||
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. | ||
|
||
### Known Issues | ||
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. | ||
|
||
### Reporting New Issues | ||
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]. | ||
|
||
To view the REST API network requests issued by the Parse SDK, please check out our [Network Debugging Tool][network-debugging-tool]. | ||
|
||
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: | ||
|
||
* A description. What did you expect to happen and what actually happened? Why do you think that was wrong? | ||
* 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. | ||
* What version does this reproduce on? What version did it last work on? | ||
* [Stacktrace or GTFO][stacktrace-or-gtfo]. In all honesty, full stacktraces with line numbers make a happy developer. | ||
* Anything else you find relevant. | ||
|
||
|
||
### Security Bugs | ||
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. | ||
|
||
## Style Guide | ||
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: | ||
|
||
* Most importantly, match the existing code style as much as possible. | ||
* Try to keep lines under 120 characters, if possible. | ||
|
||
## License | ||
By contributing to Parse Facebook Utils for iOS, you agree that your contributions will be licensed under its license. | ||
|
||
[google-group]: https://groups.google.com/forum/#!forum/parse-developers | ||
[stack-overflow]: http://stackoverflow.com/tags/parse.com | ||
[bug-reports]: https://www.parse.com/help#report | ||
[rest-api]: https://www.parse.com/docs/rest/guide | ||
[parse-api-console]: http://blog.parse.com/announcements/introducing-the-parse-api-console/ | ||
[network-debugging-tool]: https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/wiki/Network-Debug-Tool | ||
[stacktrace-or-gtfo]: http://i.imgur.com/jacoj.jpg | ||
[tests-dir]: /Tests/Unit/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// Copyright (c) 2015-present, Parse, LLC. | ||
// All rights reserved. | ||
// | ||
// This source code is licensed under the BSD-style license found in the | ||
// LICENSE file in the root directory of this source tree. An additional grant | ||
// of patent rights can be found in the PATENTS file in the same directory. | ||
// | ||
|
||
#include "Shared/Platform/iOS.xcconfig" | ||
#include "Shared/Product/Application.xcconfig" | ||
|
||
PRODUCT_NAME = ParseFacebookTestApplicationV4 | ||
|
||
CLANG_ENABLE_MODULES = YES | ||
|
||
INFOPLIST_FILE = $(SRCROOT)/Tests/TestApplication/Resources/Info.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// Copyright (c) 2015-present, Parse, LLC. | ||
// All rights reserved. | ||
// | ||
// This source code is licensed under the BSD-style license found in the | ||
// LICENSE file in the root directory of this source tree. An additional grant | ||
// of patent rights can be found in the PATENTS file in the same directory. | ||
// | ||
|
||
#include "Shared/Platform/iOS.xcconfig" | ||
#include "Shared/Product/UnitTest.xcconfig" | ||
#include "Pods/Target Support Files/Pods-ParseFacebookUtilsV4-UnitTests/Pods-ParseFacebookUtilsV4-UnitTests.debug.xcconfig" | ||
|
||
PRODUCT_NAME = ParseFacebookUtilsV4-UnitTests | ||
|
||
CLANG_ENABLE_MODULES = YES | ||
|
||
INFOPLIST_FILE = $(SRCROOT)/Tests/Resources/Info.plist | ||
TEST_HOST = $(BUILT_PRODUCTS_DIR)/ParseFacebookTestApplicationV4.app/ParseFacebookTestApplicationV4 | ||
|
||
FRAMEWORK_SEARCH_PATHS = $(inherited) $(BUILT_PRODUCTS_DIR) $(SRCROOT)/Vendor | ||
LIBRARY_SEARCH_PATHS = $(inherited) $(BUILT_PRODUCTS_DIR) | ||
HEADER_SEARCH_PATHS = $(inherited) $(BUILT_PRODUCTS_DIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// Copyright (c) 2015-present, Parse, LLC. | ||
// All rights reserved. | ||
// | ||
// This source code is licensed under the BSD-style license found in the | ||
// LICENSE file in the root directory of this source tree. An additional grant | ||
// of patent rights can be found in the PATENTS file in the same directory. | ||
// | ||
|
||
#include "Shared/Platform/iOS.xcconfig" | ||
#include "Shared/Product/Framework.xcconfig" | ||
|
||
PRODUCT_NAME = ParseFacebookUtilsV4 | ||
|
||
MACH_O_TYPE = staticlib | ||
DEFINES_MODULE = YES | ||
CLANG_ENABLE_MODULES = YES | ||
|
||
INFOPLIST_FILE = $(SRCROOT)/Resources/Info.plist | ||
|
||
FRAMEWORK_SEARCH_PATHS = $(inherited) $(SRCROOT)/Vendor | ||
LIBRARY_SEARCH_PATHS = $(inherited) $(BUILT_PRODUCTS_DIR) | ||
HEADER_SEARCH_PATHS = $(inherited) $(BUILT_PRODUCTS_DIR) | ||
|
||
OTHER_CFLAGS[sdk=iphoneos9.0] = $(inherited) -fembed-bitcode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// Copyright (c) 2015-present, Parse, LLC. | ||
// All rights reserved. | ||
// | ||
// This source code is licensed under the BSD-style license found in the | ||
// LICENSE file in the root directory of this source tree. An additional grant | ||
// of patent rights can be found in the PATENTS file in the same directory. | ||
// | ||
|
||
#include "Warnings.xcconfig" | ||
|
||
// Language Settings | ||
CLANG_ENABLE_OBJC_ARC = YES | ||
GCC_C_LANGUAGE_STANDARD = gnu11 | ||
CLANG_CXX_LANGUAGE_STANDARD = gnu++14 | ||
CLANG_CXX_LIBRARY = libstdc++ | ||
|
||
// Search Paths | ||
PARSE_DIR = $(PROJECT_DIR) | ||
VENDOR_DIR = $(PARSE_DIR)/Vendor | ||
ALWAYS_SEARCH_USER_PATHS = NO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// Copyright (c) 2015-present, Parse, LLC. | ||
// All rights reserved. | ||
// | ||
// This source code is licensed under the BSD-style license found in the | ||
// LICENSE file in the root directory of this source tree. An additional grant | ||
// of patent rights can be found in the PATENTS file in the same directory. | ||
// | ||
|
||
SDKROOT = macosx | ||
MACOSX_DEPLOYMENT_TARGET = 10.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// Copyright (c) 2015-present, Parse, LLC. | ||
// All rights reserved. | ||
// | ||
// This source code is licensed under the BSD-style license found in the | ||
// LICENSE file in the root directory of this source tree. An additional grant | ||
// of patent rights can be found in the PATENTS file in the same directory. | ||
// | ||
|
||
SDKROOT = iphoneos | ||
IPHONEOS_DEPLOYMENT_TARGET = 7.0 | ||
|
||
GCC_THUMB_SUPPORT = NO | ||
|
||
ARCHS = $(ARCHS_STANDARD) armv7s | ||
DSTROOT = /tmp/$(PRODUCT_NAME).dst | ||
|
||
CODE_SIGN_IDENTITY = | ||
CODE_SIGNING_REQUIRED = NO | ||
|
||
TARGETED_DEVICE_FAMILY = 1,2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// Copyright (c) 2014, Facebook, Inc. | ||
// All rights reserved. | ||
// | ||
// This source code is licensed under the BSD-style license found in the | ||
// LICENSE file in the root directory of this source tree. An additional grant | ||
// of patent rights can be found in the PATENTS file in the same directory. | ||
// | ||
|
||
SDKROOT = watchos | ||
WATCHOS_DEPLOYMENT_TARGET = 2.0 | ||
|
||
CODE_SIGN_IDENTITY = | ||
CODE_SIGNING_REQUIRED = NO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// Copyright (c) 2015-present, Parse, LLC. | ||
// All rights reserved. | ||
// | ||
// This source code is licensed under the BSD-style license found in the | ||
// LICENSE file in the root directory of this source tree. An additional grant | ||
// of patent rights can be found in the PATENTS file in the same directory. | ||
// | ||
|
||
LD_RUNPATH_SEARCH_PATHS = @executable_path/Frameworks | ||
|
||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon | ||
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage | ||
CLANG_ENABLE_MODULES = YES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// Copyright (c) 2015-present, Parse, LLC. | ||
// All rights reserved. | ||
// | ||
// This source code is licensed under the BSD-style license found in the | ||
// LICENSE file in the root directory of this source tree. An additional grant | ||
// of patent rights can be found in the PATENTS file in the same directory. | ||
// | ||
|
||
ENABLE_NS_ASSERTIONS = NO | ||
MTL_ENABLE_DEBUG_INFO = NO | ||
|
||
DYLIB_COMPATIBILITY_VERSION = 1 | ||
DYLIB_CURRENT_VERSION = 1 | ||
|
||
SKIP_INSTALL = YES | ||
|
||
CLANG_MODULES_AUTOLINK = NO | ||
CLANG_ENABLE_MODULES = YES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// Copyright (c) 2015-present, Parse, LLC. | ||
// All rights reserved. | ||
// | ||
// This source code is licensed under the BSD-style license found in the | ||
// LICENSE file in the root directory of this source tree. An additional grant | ||
// of patent rights can be found in the PATENTS file in the same directory. | ||
// | ||
|
||
OTHER_LDFLAGS = $(inherited) -ObjC -framework XCTest | ||
BUNDLE_LOADER = $(TEST_HOST) | ||
|
||
LD_RUNPATH_SEARCH_PATHS = $(inherited) @loader_path/Frameworks @executable_path/Frameworks | ||
USER_HEADER_SEARCH_PATHS = $(value) $(PARSE_DIR)/Tests/** | ||
CLANG_ENABLE_MODULES = YES |
Oops, something went wrong.