Skip to content

Commit

Permalink
final commits!
Browse files Browse the repository at this point in the history
  • Loading branch information
edjiang committed May 20, 2016
1 parent 4e73ec2 commit b543599
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 23 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![License](https://img.shields.io/cocoapods/l/Simplicity.svg?style=flat)](http://cocoapods.org/pods/Simplicity)
[![Platform](https://img.shields.io/cocoapods/p/Simplicity.svg?style=flat)](http://cocoapods.org/pods/Simplicity) [![codebeat badge](https://codebeat.co/badges/be32bb87-36e8-47e3-9324-5eae153a4d6d)](https://codebeat.co/projects/github-com-simplicitymobile-simplicity)

Simplicity is a framework for performing Facebook and Google login in your iOS and OS X apps written by [Edward Jiang](https://twitter.com/edwardstarcraft) at [Stormpath](https://stormpath.com).
Simplicity is a simple way to implement Facebook and Google login in your iOS and OS X apps. Written by [Edward Jiang](https://twitter.com/edwardstarcraft) at [Stormpath](https://stormpath.com).

Simplicity can be easily extended to support other external login providers, including OAuth2, OpenID, SAML, and other custom protocols, and will support more in the future. We always appreciate pull requests!

Expand Down Expand Up @@ -78,9 +78,9 @@ Simplicity.login(Facebook()) { (accessToken, error) in

## Using Google Login

To get started, you first need to [register an application](https://console.developers.google.com/project) with Google. Click "Enable and Manage APIs", and then the credentials tab. Create two sets of OAuth Client IDs, one as "Web Application", and one as "iOS".
To get started, you first need to [register an application](https://console.developers.google.com/project) with Google. Click "Enable and Manage APIs", and then the credentials tab. Create an OAuth Client ID for "iOS".

Finally, open up your App's Xcode project and go to the project's info tab. Under "URL Types", add a new entry, and in the URL schemes form field, type in your Google iOS Client's `iOS URL scheme` from the Google Developer Console.
Next, open up your App's Xcode project and go to the project's info tab. Under "URL Types", add a new entry, and in the URL schemes form field, type in your Google iOS Client's `iOS URL scheme` from the Google Developer Console.

Then, you can initiate the login screen by calling:

Expand Down
27 changes: 7 additions & 20 deletions Simplicity.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,27 @@
# Be sure to run `pod lib lint Simplicity.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
s.name = "Simplicity"
s.version = "0.0.1"
s.summary = "A framework for authenticating with external providers on iOS"

# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.version = "1.0"
s.summary = "A simple way to login with Facebook or Google on iOS"

s.description = <<-DESC
A framework for authenticating with external providers on iOS
Simplicity is a simple way to implement Facebook and Google login in your iOS and OS X apps.
Simplicity can be easily extended to support other external login providers, including OAuth2, OpenID, SAML, and other custom protocols, and will support more in the future. We always appreciate pull requests!
DESC

s.homepage = "https://github.com/SimplicityMobile/Simplicity"
# s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
s.license = 'Apache 2.0'
s.author = { "Edward Jiang" => "[email protected]" }
s.source = { :git => "https://github.com/SimplicityMobile/Simplicity.git", :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.social_media_url = 'https://twitter.com/EdwardStarcraft'

s.ios.deployment_target = '8.0'

s.source_files = 'Simplicity/**/*.swift'

# s.resource_bundles = {
# 'Simplicity' => ['Simplicity/Assets/*.png']
# }

# s.frameworks = 'UIKit', 'MapKit'
# s.dependency 'AFNetworking', '~> 2.3'
end

0 comments on commit b543599

Please sign in to comment.