Skip to content

Commit

Permalink
Added tvOS and watchOS to the podspec platforms.
Browse files Browse the repository at this point in the history
NOTE: While watchOS and tvOS are now specified and the available classes should
compile and run, only iOS and macOS have UI implementations of the authorization
service. You can use the classes of AppAuth with tokens on watchOS and tvOS, but
currently the library won't help you obtain authorization grants on those
platforms.
  • Loading branch information
WilliamDenniss committed Aug 8, 2016
1 parent c36afa4 commit 1f8adfb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
19 changes: 14 additions & 5 deletions AppAuth.podspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Pod::Spec.new do |s|

s.name = "AppAuth"
s.version = "0.4.1"
s.summary = "AppAuth for iOS is a client SDK for communicating with OAuth 2.0 and OpenID Connect providers."
s.version = "0.4.2"
s.summary = "AppAuth for iOS and macOS is a client SDK for communicating with OAuth 2.0 and OpenID Connect providers."

s.description = <<-DESC
Expand All @@ -22,16 +22,25 @@ tasks like performing an action with fresh tokens.
"Steven E Wright" => "stevewright@google.com",
}

# Note: While watchOS and tvOS are specified here, only iOS and macOS have
# UI implementations of the authorization service. You can use the
# classes of AppAuth with tokens on watchOS and tvOS, but currently the
# library won't help you obtain authorization grants on those platforms.

s.platforms = { :ios => "7.0", :osx => "10.8", :watchos => "2.0", :tvos => "9.0" }

s.source = { :git => "https://github.com/openid/AppAuth-iOS.git", :tag => s.version }

s.source_files = "Source/*.{h,m}"
s.requires_arc = true

s.ios.source_files = "Source/iOS/**/*.{h,m}"
# iOS
s.ios.source_files = "Source/iOS/**/*.{h,m}"
s.ios.deployment_target = "7.0"
s.ios.framework = "SafariServices"
s.ios.framework = "SafariServices"

s.osx.source_files = "Source/macOS/**/*.{h,m}"
# macOS
s.osx.source_files = "Source/macOS/**/*.{h,m}"
s.osx.deployment_target = '10.8'

end
6 changes: 4 additions & 2 deletions Source/AppAuth.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@
#import "OIDTokenRequest.h"
#import "OIDTokenResponse.h"

#if TARGET_OS_IPHONE
#if TARGET_OS_TV
#elif TARGET_OS_WATCH
#elif TARGET_OS_IOS
#import "OIDAuthState+IOS.h"
#import "OIDAuthorizationService+IOS.h"
#elif TARGET_OS_MAC
#import "OIDAuthState+Mac.h"
#import "OIDAuthorizationService+Mac.h"
#else
#error "Platform Undefined; please specify TARGET_OS_MAC or TARGET_OS_IPHONE"
#error "Platform Undefined"
#endif


Expand Down

0 comments on commit 1f8adfb

Please sign in to comment.