-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Credentials Manager for tvOS and Mac Platforms #206
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,11 +16,30 @@ web_auth_files = [ | |
'Auth0/SilentSafariViewController.swift', | ||
'Auth0/NativeAuth.swift', | ||
'Auth0/AuthProvider.swift', | ||
'Auth0/CredentialsManager.swift', | ||
'Auth0/CredentialsManagerError.swift', | ||
'Auth0/BioAuthentication.swift' | ||
] | ||
|
||
watchos_exclude_files = [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this looks like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sadly not, i've tried joining arrays etc it will just throw out an error in cocoapods when linting the lib. |
||
'Auth0/_ObjectiveWebAuth.swift', | ||
'Auth0/ControllerModalPresenter.swift', | ||
'Auth0/OAuth2Grant.swift', | ||
'Auth0/AuthTransaction.swift', | ||
'Auth0/TransactionStore.swift', | ||
'Auth0/WebAuth.swift', | ||
'Auth0/WebAuthError.swift', | ||
'Auth0/SafariWebAuth.swift', | ||
'Auth0/AuthSession.swift', | ||
'Auth0/SafariSession.swift', | ||
'Auth0/SafariAuthenticationSession.swift', | ||
'Auth0/SafariAuthenticationCallback.swift', | ||
'Auth0/SilentSafariViewController.swift', | ||
'Auth0/NativeAuth.swift', | ||
'Auth0/AuthProvider.swift', | ||
'Auth0/BioAuthentication.swift', | ||
'Auth0/CredentialsManagerError.swift', | ||
'Auth0/CredentialsManager.swift' | ||
] | ||
|
||
Pod::Spec.new do |s| | ||
s.name = 'Auth0' | ||
s.version = version | ||
|
@@ -45,8 +64,10 @@ Pod::Spec.new do |s| | |
s.ios.dependency 'SimpleKeychain' | ||
s.osx.source_files = 'Auth0/*.swift' | ||
s.osx.exclude_files = web_auth_files | ||
s.osx.dependency 'SimpleKeychain' | ||
s.watchos.source_files = 'Auth0/*.swift' | ||
s.watchos.exclude_files = web_auth_files | ||
s.watchos.exclude_files = watchos_exclude_files | ||
s.tvos.source_files = 'Auth0/*.swift' | ||
s.tvos.exclude_files = web_auth_files | ||
s.tvos.dependency 'SimpleKeychain' | ||
end |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// AppDelegate.swift | ||
// OAuth2Mac | ||
// | ||
// Created by Martin on 16/07/2018. | ||
// Copyright © 2018 Auth0. All rights reserved. | ||
// | ||
|
||
import Cocoa | ||
|
||
@NSApplicationMain | ||
class AppDelegate: NSObject, NSApplicationDelegate { | ||
|
||
|
||
|
||
func applicationDidFinishLaunching(_ aNotification: Notification) { | ||
// Insert code here to initialize your application | ||
} | ||
|
||
func applicationWillTerminate(_ aNotification: Notification) { | ||
// Insert code here to tear down your application | ||
} | ||
|
||
|
||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "mac", | ||
"size" : "16x16", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"size" : "16x16", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"size" : "32x32", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"size" : "32x32", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"size" : "128x128", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"size" : "128x128", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"size" : "256x256", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"size" : "256x256", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"size" : "512x512", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "mac", | ||
"size" : "512x512", | ||
"scale" : "2x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this are referenced in
s.osx.exclude_files
. Why did you remove them?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enabling it for tvOS also allows it for Mac