Always use cloud environment for Feedly.
This commit is contained in:
parent
4c97d099ea
commit
3b3dd9f1bd
|
@ -18,17 +18,10 @@ final class FeedlyAccountDelegate: AccountDelegate {
|
||||||
/// Feedly has a sandbox API and a production API.
|
/// Feedly has a sandbox API and a production API.
|
||||||
/// This property is referred to when clients need to know which environment it should be pointing to.
|
/// This property is referred to when clients need to know which environment it should be pointing to.
|
||||||
/// The value of this proptery must match any `OAuthAuthorizationClient` used.
|
/// The value of this proptery must match any `OAuthAuthorizationClient` used.
|
||||||
|
/// Currently this is always returning the cloud API, but we are leaving it stubbed out for now.
|
||||||
static var environment: FeedlyAPICaller.API {
|
static var environment: FeedlyAPICaller.API {
|
||||||
#if DEBUG
|
|
||||||
// https://developer.feedly.com/v3/developer/
|
|
||||||
if let token = ProcessInfo.processInfo.environment["FEEDLY_DEV_ACCESS_TOKEN"], !token.isEmpty {
|
|
||||||
return .cloud
|
return .cloud
|
||||||
}
|
}
|
||||||
return .sandbox
|
|
||||||
#else
|
|
||||||
return .cloud
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: Kiel, if you decide not to support OPML import you will have to disallow it in the behaviors
|
// TODO: Kiel, if you decide not to support OPML import you will have to disallow it in the behaviors
|
||||||
// See https://developer.feedly.com/v3/opml/
|
// See https://developer.feedly.com/v3/opml/
|
||||||
|
|
Loading…
Reference in New Issue