This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let provider = SoundCloudProvider(clientId: "xxx", clientSecret: "yyy", redirectUri: "test://test") | |
| let webview = OAuth2WebView(frame: self.view.frame, provider: provider) { (session, error) | |
| if let session = session { | |
| print("User access token: \(session.accessToken)") | |
| } else if let error = error { | |
| print("Something went wrong during the authentication: \(error)") | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - | |
| name: “status:in_progress” | |
| color: “35bd00” | |
| - | |
| name: “status:blocked” | |
| color: “251235” |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Constants.swift | |
| import Foundation | |
| internal enum Keys: String { | |
| case Forecast | |
| } | |
| //ForecastEntity.swift | |
| import Foundation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lane :deploy do | |
| ensure_git_branch | |
| version = version_bump_podspec(path: "MyPod.podspec") | |
| git_commit(path: ["./MyPod.podspec", "./Example/MyPod.lock"], message: "Bumped to version #{version}") | |
| push_to_git_remote(remote_branch: 'master', force: false, tags: true) | |
| changelog = changelog_from_git_commits | |
| github_release = set_github_release( | |
| repository_name: "MyOrg/MyPod", | |
| api_token: ENV['GITHUB_TOKEN'], | |
| name: version, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lane :travis do | |
| pods | |
| tests | |
| pod_lib_lint(allow_warnings: true, verbose: false) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| osx_image: xcode7.3 | |
| language: objective-c | |
| notifications: | |
| email: false | |
| before_install: | |
| - gem install bundler | |
| - bundle install | |
| script: | |
| - bundle exec fastlane travis | |
| after_success: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lane :tests do | |
| scan(workspace: "Example/MyPod.xcworkspace", scheme: "MyPod-Example", clean: true) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lane :pods do | |
| cocoapods(podfile: "Example/") | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lane :my_lane do | |
| # Todo | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protocol Repository { | |
| typealias T | |
| func save(entity entity: T, name: String) | |
| func clear(name name: String) | |
| func fetch(name name: String) -> T? | |
| func observe(name name: String) -> Observable<T?> | |
| } |