This repository has been archived by the owner on Jun 1, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ecb889c
commit acee1c1
Showing
25 changed files
with
591 additions
and
437 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
# Use a project from GitHub | ||
github "watson-developer-cloud/swift-sdk" ~> 0.29.0 | ||
|
||
|
||
github "watson-developer-cloud/swift-sdk" == 0.37.0 |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,33 @@ | ||
# Uncomment this line to define a global platform for your project | ||
# platform :ios, '9.0' | ||
platform :ios, '9.0' | ||
|
||
target 'visualrecognitionios' do | ||
pod 'BMSCore', '~> 2.0' | ||
|
||
# Comment this line if you're not using Swift and don't want to use dynamic frameworks | ||
use_frameworks! | ||
pod "SwiftSpinner", '~> 1.3.0' | ||
pod 'KTCenterFlowLayout', '~> 1.3.1' | ||
# Comment this line if you're not using Swift and don't want to use dynamic frameworks | ||
use_frameworks! | ||
pod "SwiftSpinner", '~> 1.5.0' | ||
pod 'KTCenterFlowLayout', '~> 1.3.1' | ||
|
||
# Pods for visualrecognitionios | ||
# Pods for visualrecognitionios | ||
|
||
target 'visualrecognitioniosTests' do | ||
inherit! :search_paths | ||
# Pods for testing | ||
end | ||
|
||
target 'visualrecognitioniosUITests' do | ||
inherit! :search_paths | ||
# Pods for testing | ||
end | ||
target 'visualrecognitioniosTests' do | ||
inherit! :search_paths | ||
# Pods for testing | ||
end | ||
|
||
target 'visualrecognitioniosUITests' do | ||
inherit! :search_paths | ||
# Pods for testing | ||
end | ||
|
||
post_install do |installer| | ||
installer.pods_project.targets.each do |target| | ||
if ['SwiftSpinner', 'SwiftCloudant', 'KTCenterFlowLayout'].include? target.name | ||
target.build_configurations.each do |config| | ||
config.build_settings['SWIFT_VERSION'] = '3.2' | ||
end | ||
end | ||
end | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
visualrecognitionios.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file was deleted.
Oops, something went wrong.
Binary file added
BIN
+104 KB
...project.xcworkspace/xcuserdata/AaronLiberatore.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
Binary file removed
BIN
-12.4 KB
...codeproj/project.xcworkspace/xcuserdata/norton.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains 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
24 changes: 0 additions & 24 deletions
24
...ecognitionios.xcodeproj/xcuserdata/Algebra.xcuserdatad/xcschemes/xcschememanagement.plist
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
...ecognitionios.xcodeproj/xcuserdata/zlozano.xcuserdatad/xcschemes/xcschememanagement.plist
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/** | ||
* Copyright IBM Corporation 2018 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
**/ | ||
|
||
import Foundation | ||
|
||
enum ApplicationError: Error, CustomStringConvertible { | ||
|
||
case missingCredentials | ||
|
||
case invalidCredentials | ||
|
||
case photoLibraryUnavailable | ||
|
||
case cameraUnavailable | ||
|
||
case error(String) | ||
|
||
var title: String { | ||
switch self { | ||
case .missingCredentials: return "Missing Visual Recognition Credentials" | ||
case .invalidCredentials: return "Invalid Visual Recognition Credentials" | ||
case .photoLibraryUnavailable: return "Photo Library Unavailable" | ||
case .cameraUnavailable: return "Camera Unavailable" | ||
case .error: return "Visual Recognition Failed" | ||
} | ||
} | ||
|
||
var message: String { | ||
switch self { | ||
case .missingCredentials: return "Please check the readme to ensure proper credentials configuration." | ||
case .invalidCredentials: return "Please check the readme to ensure proper credentials configuration." | ||
case .photoLibraryUnavailable: return "The Photo Library feature is currently unavailable on this device. Please try again." | ||
case .cameraUnavailable: return "The camera feature is currently unavailable on this device. If you are running the application on a simulator, please use a physical device in order to utilize camera functionality." | ||
case .error(let msg): return msg | ||
} | ||
} | ||
|
||
var description: String { | ||
return title + ": " + message | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.