This repository has been archived by the owner on Nov 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 336
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 528dde6
Showing
178 changed files
with
13,458 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,37 @@ | ||
## OS X | ||
.DS_Store | ||
|
||
## Build generated | ||
build/ | ||
DerivedData | ||
|
||
## Various settings | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
xcuserdata | ||
|
||
## Other | ||
*.xccheckout | ||
*.moved-aside | ||
*.xcuserstate | ||
*.xcscmblueprint | ||
|
||
## Obj-C/Swift specific | ||
*.hmap | ||
*.ipa | ||
|
||
## Dependency Managers | ||
Pods/ | ||
Carthage/Build | ||
|
||
## AppCode | ||
.idea/ | ||
|
||
## Ignore Docs Folder | ||
.docs |
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,9 @@ | ||
[submodule "Carthage/Checkouts/Bolts-ObjC"] | ||
path = Carthage/Checkouts/Bolts-ObjC | ||
url = https://github.com/BoltsFramework/Bolts-ObjC.git | ||
[submodule "Carthage/Checkouts/facebook-ios-sdk"] | ||
path = Carthage/Checkouts/facebook-ios-sdk | ||
url = https://github.com/facebook/facebook-ios-sdk.git | ||
[submodule "Vendor/xctoolchain"] | ||
path = Vendor/xctoolchain | ||
url = https://github.com/ParsePlatform/xctoolchain.git |
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,137 @@ | ||
{ | ||
"author": "Facebook", | ||
"author_url": "https://github.com/facebook/facebook-sdk-swift", | ||
"custom_categories": [ | ||
{ | ||
"children": [ | ||
"AccessToken", | ||
"UserProfile", | ||
"UserProfilePictureView", | ||
"ApplicationDelegate", | ||
"SDKSettings", | ||
"SDKLoggingBehavior", | ||
"SDKVersion" | ||
], | ||
"name": "Common" | ||
}, | ||
{ | ||
"children": [ | ||
"AppEvent", | ||
"AppEventName", | ||
"AppEventParameterName", | ||
"AppEventsLogger", | ||
"AppEventLoggable", | ||
"AppEventParameterValueType" | ||
], | ||
"name": "App Events" | ||
}, | ||
{ | ||
"children": [ | ||
"LoginManager", | ||
"LoginButton", | ||
"LoginButtonDelegate", | ||
"LoginBehavior", | ||
"LoginDefaultAudience", | ||
"LoginResult" | ||
], | ||
"name": "Facebook Login" | ||
}, | ||
{ | ||
"children": [ | ||
"Permission", | ||
"ReadPermission", | ||
"PublishPermission" | ||
], | ||
"name": "Facebook Permissions" | ||
}, | ||
{ | ||
"children": [ | ||
"GraphRequest", | ||
"GraphRequestProtocol", | ||
"GraphRequestResult", | ||
"GraphRequestHTTPMethod", | ||
"GraphResponse", | ||
"GraphResponseProtocol", | ||
"GraphRequestConnection", | ||
"GraphRequestDataAttachment" | ||
], | ||
"name": "Graph API" | ||
}, | ||
{ | ||
"children": [ | ||
"ShareButton", | ||
"SendButton", | ||
"LikeButton", | ||
"LikeControl", | ||
"LikableObject" | ||
], | ||
"name": "Sharing Buttons" | ||
}, | ||
{ | ||
"children": [ | ||
"ShareDialog", | ||
"ShareDialogMode", | ||
"MessageDialog", | ||
"ContentSharingDialogProtocol" | ||
], | ||
"name": "Sharing Dialogs" | ||
}, | ||
{ | ||
"children": [ | ||
"LinkShareContent", | ||
"Photo", | ||
"PhotoShareContent", | ||
"Video", | ||
"VideoShareContent", | ||
"Hashtag", | ||
"ContentProtocol", | ||
"ContentSharingResultProtocol", | ||
"PostSharingResult" | ||
], | ||
"name": "Shareable Content" | ||
}, | ||
{ | ||
"children": [ | ||
"OpenGraphObject", | ||
"OpenGraphAction", | ||
"OpenGraphShareContent", | ||
"OpenGraphPropertyName", | ||
"OpenGraphPropertyValue", | ||
"OpenGraphPropertyContaining" | ||
], | ||
"name": "Share Custom Open Graph Stories" | ||
}, | ||
{ | ||
"children": [ | ||
"GraphSharer", | ||
"ShareError", | ||
"ContentSharerResult", | ||
"ContentSharingProtocol" | ||
], | ||
"name": "Sharing via Graph API" | ||
}, | ||
{ | ||
"children": [ | ||
"AppInvite" | ||
], | ||
"name": "App Invites" | ||
}, | ||
{ | ||
"children": [ | ||
"GameRequest" | ||
], | ||
"name": "Game Requests" | ||
}, | ||
{ | ||
"children": [ | ||
"==(_:_:)" | ||
], | ||
"name": "Equality Helpers" | ||
} | ||
], | ||
"hide_documentation_coverage": true, | ||
"module": "Facebook Swift SDK", | ||
"readme": "README.md", | ||
"skip_undocumented": true, | ||
"theme": "fullwidth" | ||
} |
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 @@ | ||
2.3.1 |
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 @@ | ||
line_length: 140 | ||
file_length: 1000 | ||
type_body_length: 500 | ||
opt_in_rules: | ||
- empty_count | ||
- missing_docs | ||
disabled_rules: | ||
- cyclomatic_complexity | ||
- conditional_binding_cascade | ||
excluded: | ||
- Pods |
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,46 @@ | ||
branches: | ||
only: | ||
- master | ||
language: objective-c | ||
os: osx | ||
osx_image: xcode7.3 | ||
cache: | ||
- cocoapods | ||
env: | ||
matrix: | ||
- TEST_TYPE=iOS | ||
- TEST_TYPE=Lint | ||
- TEST_TYPE=Samples | ||
- TEST_TYPE=CocoaPods | ||
before_install: | ||
- | | ||
if [ "$TEST_TYPE" = Lint ] || [ "$TEST_TYPE" = Carthage ]; then | ||
brew update | ||
fi | ||
install: | ||
- | | ||
gem update --system --no-document | ||
bundle install | ||
if [ "$TEST_TYPE" = Lint ]; then | ||
brew install swiftlint || brew upgrade swiftlint | ||
elif [ "$TEST_TYPE" = CocoaPods ]; then | ||
pod repo update --silent | ||
fi | ||
script: | ||
- | | ||
if [ "$TEST_TYPE" = iOS ]; then | ||
set -o pipefail | ||
xcodebuild build -workspace FacebookSwift.xcworkspace -sdk iphonesimulator -scheme FacebookCore -configuration Debug -destination "platform=iOS Simulator,name=iPhone 4s" -destination "platform=iOS Simulator,name=iPhone 6 Plus" | xcpretty -c | ||
xcodebuild build -workspace FacebookSwift.xcworkspace -sdk iphonesimulator -scheme FacebookLogin -configuration Debug -destination "platform=iOS Simulator,name=iPhone 4s" -destination "platform=iOS Simulator,name=iPhone 6 Plus" | xcpretty -c | ||
xcodebuild build -workspace FacebookSwift.xcworkspace -sdk iphonesimulator -scheme FacebookShare -configuration Debug -destination "platform=iOS Simulator,name=iPhone 4s" -destination "platform=iOS Simulator,name=iPhone 6 Plus" | xcpretty -c | ||
elif [ "$TEST_TYPE" = Lint ]; then | ||
swiftlint lint --path Sources --quiet | ||
swiftlint lint --path Samples --quiet | ||
elif [ "$TEST_TYPE" = Samples ]; then | ||
set -o pipefail | ||
xcodebuild build -workspace FacebookSwift.xcworkspace -sdk iphonesimulator -scheme SwiftCatalog -configuration Debug -destination "platform=iOS Simulator,name=iPhone 4s" -destination "platform=iOS Simulator,name=iPhone 6 Plus" | xcpretty -c | ||
elif [ "$TEST_TYPE" = CocoaPods ]; then | ||
#pod lib lint FacebookCore.podspec | ||
#pod lib lint FacebookLogin.podspec | ||
#pod lib lint FacebookShare.podspec | ||
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,5 @@ | ||
# Change Log | ||
|
||
## [0.1.0](https://github.com/facebook/Facebook-SDK-Swift/tree/0.1.0) | ||
|
||
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator) |
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,33 @@ | ||
# Contributing to Facebook Swift SDK | ||
We want to make contributing to this project as easy and transparent as possible. | ||
|
||
## Pull Requests | ||
We actively welcome your pull requests. | ||
|
||
1. Fork the repo and create your branch from `master`. | ||
2. If you've added code that should be tested, add tests. | ||
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> | ||
|
||
## Issues | ||
We use GitHub issues to track public bugs. Please ensure your description is | ||
clear and has sufficient instructions to be able to reproduce the issue. | ||
|
||
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. | ||
|
||
## Coding Style | ||
* Most importantly, match the existing code style as much as possible. | ||
* Try to keep lines under 140 characters, if possible. | ||
|
||
## License | ||
See the `LICENSE` file. |
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 @@ | ||
github "facebook/facebook-ios-sdk" ~> 4.14 |
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,2 @@ | ||
github "BoltsFramework/Bolts-ObjC" "1.8.4" | ||
github "facebook/facebook-ios-sdk" "sdk-version-4.14.0" |
Submodule Bolts-ObjC
added at
e64dee
Submodule facebook-ios-sdk
added at
bc053d
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,33 @@ | ||
// Copyright (c) 2016-present, Facebook, Inc. All rights reserved. | ||
// | ||
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, | ||
// copy, modify, and distribute this software in source code or binary form for use | ||
// in connection with the web services and APIs provided by Facebook. | ||
// | ||
// As with any software that integrates with the Facebook platform, your use of | ||
// this software is subject to the Facebook Developer Principles and Policies | ||
// [http://developers.facebook.com/policy/]. This copyright notice shall be | ||
// included in all copies or substantial portions of the software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
#include "Shared/Platform/iOS.xcconfig" | ||
#include "Shared/Product/DynamicFramework.xcconfig" | ||
#include "Version.xcconfig" | ||
|
||
PRODUCT_NAME = FacebookCore | ||
PRODUCT_BUNDLE_IDENTIFIER = com.facebook.swift.core | ||
|
||
SWIFT_VERSION = 2.3 | ||
|
||
IPHONEOS_DEPLOYMENT_TARGET = 8.0 | ||
|
||
INFOPLIST_FILE = $(SRCROOT)/Resources/Info.plist | ||
|
||
// Enable testability to make internal things visible with @testable import | ||
ENABLE_TESTABILITY = 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,30 @@ | ||
// Copyright (c) 2016-present, Facebook, Inc. All rights reserved. | ||
// | ||
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, | ||
// copy, modify, and distribute this software in source code or binary form for use | ||
// in connection with the web services and APIs provided by Facebook. | ||
// | ||
// As with any software that integrates with the Facebook platform, your use of | ||
// this software is subject to the Facebook Developer Principles and Policies | ||
// [http://developers.facebook.com/policy/]. This copyright notice shall be | ||
// included in all copies or substantial portions of the software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
#include "Shared/Platform/iOS.xcconfig" | ||
#include "Shared/Product/DynamicFramework.xcconfig" | ||
#include "Version.xcconfig" | ||
|
||
PRODUCT_NAME = FacebookLogin | ||
PRODUCT_BUNDLE_IDENTIFIER = com.facebook.swift.login | ||
|
||
SWIFT_VERSION = 2.3 | ||
|
||
IPHONEOS_DEPLOYMENT_TARGET = 8.0 | ||
|
||
INFOPLIST_FILE = $(SRCROOT)/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,30 @@ | ||
// Copyright (c) 2016-present, Facebook, Inc. All rights reserved. | ||
// | ||
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, | ||
// copy, modify, and distribute this software in source code or binary form for use | ||
// in connection with the web services and APIs provided by Facebook. | ||
// | ||
// As with any software that integrates with the Facebook platform, your use of | ||
// this software is subject to the Facebook Developer Principles and Policies | ||
// [http://developers.facebook.com/policy/]. This copyright notice shall be | ||
// included in all copies or substantial portions of the software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
#include "Shared/Platform/iOS.xcconfig" | ||
#include "Shared/Product/DynamicFramework.xcconfig" | ||
#include "Version.xcconfig" | ||
|
||
PRODUCT_NAME = FacebookShare | ||
PRODUCT_BUNDLE_IDENTIFIER = com.facebook.swift.share | ||
|
||
SWIFT_VERSION = 2.3 | ||
|
||
IPHONEOS_DEPLOYMENT_TARGET = 8.0 | ||
|
||
INFOPLIST_FILE = $(SRCROOT)/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 @@ | ||
../Vendor/xctoolchain/Configurations |
Oops, something went wrong.