Skip to content

Commit bb6e94d

Browse files
authored
Merge pull request #1035 from watson-developer-cloud/pi-deprecation-warning
chore: add pi deprecation warning
2 parents ce824ca + dbd64bd commit bb6e94d

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

Scripts/pod-lint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pod lib lint IBMWatsonDiscoveryV2.podspec --allow-warnings
1313
pod lib lint IBMWatsonLanguageTranslatorV3.podspec
1414
pod lib lint IBMWatsonNaturalLanguageClassifierV1.podspec
1515
pod lib lint IBMWatsonNaturalLanguageUnderstandingV1.podspec
16-
pod lib lint IBMWatsonPersonalityInsightsV3.podspec
16+
pod lib lint IBMWatsonPersonalityInsightsV3.podspec --allow-warnings
1717

1818
pod lib lint IBMWatsonSpeechToTextV1.podspec --allow-warnings
1919
# Cleanup from the podspec prepare_command
@@ -28,5 +28,5 @@ rm Source/SupportingFiles/Dependencies/Libraries/*tts.a
2828
find Source/SupportingFiles/Dependencies/Source -maxdepth 1 -type f -delete
2929

3030
pod lib lint IBMWatsonToneAnalyzerV3.podspec
31-
pod lib lint IBMWatsonVisualRecognitionV3.podspec
32-
pod lib lint IBMWatsonVisualRecognitionV4.podspec
31+
pod lib lint IBMWatsonVisualRecognitionV3.podspec --allow-warnings
32+
pod lib lint IBMWatsonVisualRecognitionV4.podspec --allow-warnings

Source/PersonalityInsightsV3/PersonalityInsights.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public class PersonalityInsights {
6565
in "YYYY-MM-DD" format.
6666
*/
6767
public init(version: String) throws {
68+
#warning("On 1 December 2021, Personality Insights will no longer be available. Consider migrating to Watson Natural Language Understanding. For more information, see https://github.com/watson-developer-cloud/swift-sdk/tree/master#personality-insights-deprecation")
6869
self.version = version
6970

7071
let authenticator = try ConfigBasedAuthenticatorFactory.getAuthenticator(credentialPrefix: serviceSdkName)
@@ -86,6 +87,7 @@ public class PersonalityInsights {
8687
- parameter authenticator: The Authenticator object used to authenticate requests to the service
8788
*/
8889
public init(version: String, authenticator: Authenticator) {
90+
#warning("On 1 December 2021, Personality Insights will no longer be available. Consider migrating to Watson Natural Language Understanding. For more information, see https://github.com/watson-developer-cloud/swift-sdk/tree/master#personality-insights-deprecation")
8991
self.version = version
9092
self.authenticator = authenticator
9193
RestRequest.userAgent = Shared.userAgent

Source/VisualRecognitionV3/VisualRecognition.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ public class VisualRecognition {
5454
in "YYYY-MM-DD" format.
5555
*/
5656
public init(version: String) throws {
57+
#warning("On 1 December 2021, Visual Recognition will no longer be available. For more information, see https://github.com/watson-developer-cloud/swift-sdk/tree/master#visual-recognition-deprecation")
58+
5759
self.version = version
5860

5961
let authenticator = try ConfigBasedAuthenticatorFactory.getAuthenticator(credentialPrefix: serviceSdkName)
@@ -75,6 +77,8 @@ public class VisualRecognition {
7577
- parameter authenticator: The Authenticator object used to authenticate requests to the service
7678
*/
7779
public init(version: String, authenticator: Authenticator) {
80+
#warning("On 1 December 2021, Visual Recognition will no longer be available. For more information, see https://github.com/watson-developer-cloud/swift-sdk/tree/master#visual-recognition-deprecation")
81+
7882
self.version = version
7983
self.authenticator = authenticator
8084
RestRequest.userAgent = Shared.userAgent

Source/VisualRecognitionV4/VisualRecognition.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ public class VisualRecognition {
5454
in "YYYY-MM-DD" format.
5555
*/
5656
public init(version: String) throws {
57+
#warning("On 1 December 2021, Visual Recognition will no longer be available. For more information, see https://github.com/watson-developer-cloud/swift-sdk/tree/master#visual-recognition-deprecation")
58+
5759
self.version = version
5860

5961
let authenticator = try ConfigBasedAuthenticatorFactory.getAuthenticator(credentialPrefix: serviceSdkName)
@@ -75,6 +77,8 @@ public class VisualRecognition {
7577
- parameter authenticator: The Authenticator object used to authenticate requests to the service
7678
*/
7779
public init(version: String, authenticator: Authenticator) {
80+
#warning("On 1 December 2021, Visual Recognition will no longer be available. For more information, see https://github.com/watson-developer-cloud/swift-sdk/tree/master#visual-recognition-deprecation")
81+
7882
self.version = version
7983
self.authenticator = authenticator
8084
RestRequest.userAgent = Shared.userAgent

0 commit comments

Comments
 (0)