Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.

Commit

Permalink
(っ˘▽˘)っ facebook ⊂(◕。◕⊂)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlutsenko committed Jul 14, 2016
0 parents commit 528dde6
Show file tree
Hide file tree
Showing 178 changed files with 13,458 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .gitignore
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
9 changes: 9 additions & 0 deletions .gitmodules
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
137 changes: 137 additions & 0 deletions .jazzy.json
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"
}
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.3.1
11 changes: 11 additions & 0 deletions .swiftlint.yml
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
46 changes: 46 additions & 0 deletions .travis.yml
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
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)
33 changes: 33 additions & 0 deletions CONTRIBUTING.md
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.
1 change: 1 addition & 0 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "facebook/facebook-ios-sdk" ~> 4.14
2 changes: 2 additions & 0 deletions Cartfile.resolved
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"
1 change: 1 addition & 0 deletions Carthage/Checkouts/Bolts-ObjC
Submodule Bolts-ObjC added at e64dee
1 change: 1 addition & 0 deletions Carthage/Checkouts/facebook-ios-sdk
Submodule facebook-ios-sdk added at bc053d
33 changes: 33 additions & 0 deletions Configurations/FacebookCore.xcconfig
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
30 changes: 30 additions & 0 deletions Configurations/FacebookLogin.xcconfig
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
30 changes: 30 additions & 0 deletions Configurations/FacebookShare.xcconfig
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
1 change: 1 addition & 0 deletions Configurations/Shared
Loading

0 comments on commit 528dde6

Please sign in to comment.