Skip to content

Commit

Permalink
Merge pull request #845 from watson-developer-cloud/v0.29-release
Browse files Browse the repository at this point in the history
Release candidate for v0.29 release
  • Loading branch information
Mike Kistler authored Jun 29, 2018
2 parents 3ffdaeb + 0a1c607 commit b4fc14c
Show file tree
Hide file tree
Showing 1,058 changed files with 6,854 additions and 26,945 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Change Log
==========

## Version 0.29.0
_2018-06-29_

This release regenerates all services with generator updates for error handling and multi-consumes operations.

The release also adds a deprecation notice for the Language Translator v2 service. Users are encouraged to migrate
to the new Language Translator v3 service.

This release should be fully compatible with the previous SDK release.

## Version 0.28.1
_2018-06-21_

Expand Down
23 changes: 5 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Add the following to your `Package.swift` file to identify the Swift SDK as a de

```swift
dependencies: [
.package(url: "https://github.com/watson-developer-cloud/swift-sdk", from: "0.28.1")
.package(url: "https://github.com/watson-developer-cloud/swift-sdk", from: "0.29.0")
]
```

Expand Down Expand Up @@ -411,24 +411,11 @@ The following links provide more information about the IBM Discovery service:

## Language Translator V2

The IBM Watson Language Translator service lets you select a domain, customize it, then identify or select the language of text, and then translate the text from one supported language to another.

The following example demonstrates how to use the Language Translator service:

```swift
import LanguageTranslatorV2

let username = "your-username-here"
let password = "your-password-here"
let languageTranslator = LanguageTranslator(username: username, password: password)
### Deprecation notice
Language Translator v3 is now available. The v2 Language Translator API will no longer be available after July 31, 2018.
To take advantage of the latest service enhancements, migrate to the v3 API.
View the [Migrating to Language Translator v3](https://console.bluemix.net/docs/services/language-translator/migrating.html) page for more information.

let failure = { (error: Error) in print(error) }
let request = TranslateRequest(text: ["Hello"], source: "en", target: "es")
languageTranslator.translate(request: request, failure: failure) {
translation in
print(translation)
}
```

## Language Translator V3

Expand Down
1 change: 1 addition & 0 deletions Source/LanguageTranslatorV2/LanguageTranslator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import Foundation
take news from across the globe and present it in your language, communicate with your customers in their own language,
and more.
*/
@available(*, deprecated, message: "Language Translator v3 is now available. The v2 Language Translator API will no longer be available after July 31, 2018. To take advantage of the latest service enhancements, migrate to the v3 API.")
public class LanguageTranslator {

/// The base URL to use when contacting the service.
Expand Down
2 changes: 1 addition & 1 deletion Source/RestKit/RestRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal struct RestRequest {

internal static let userAgent: String = {
let sdk = "watson-apis-swift-sdk"
let sdkVersion = "0.28.1"
let sdkVersion = "0.29.0"

let operatingSystem: String = {
#if os(iOS)
Expand Down
17 changes: 1 addition & 16 deletions docs/swift-api/services/AssistantV1/Classes.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@
<li class="nav-group-task">
<a href="Structs/CreateIntent.html">CreateIntent</a>
</li>
<li class="nav-group-task">
<a href="Structs/CreateSynonym.html">CreateSynonym</a>
</li>
<li class="nav-group-task">
<a href="Structs/CreateValue.html">CreateValue</a>
</li>
Expand Down Expand Up @@ -215,9 +212,6 @@
<li class="nav-group-task">
<a href="Structs/SystemResponse.html">SystemResponse</a>
</li>
<li class="nav-group-task">
<a href="Structs/UpdateCounterexample.html">UpdateCounterexample</a>
</li>
<li class="nav-group-task">
<a href="Structs/UpdateDialogNode.html">UpdateDialogNode</a>
</li>
Expand All @@ -239,15 +233,6 @@
<li class="nav-group-task">
<a href="Structs/UpdateEntity.html">UpdateEntity</a>
</li>
<li class="nav-group-task">
<a href="Structs/UpdateExample.html">UpdateExample</a>
</li>
<li class="nav-group-task">
<a href="Structs/UpdateIntent.html">UpdateIntent</a>
</li>
<li class="nav-group-task">
<a href="Structs/UpdateSynonym.html">UpdateSynonym</a>
</li>
<li class="nav-group-task">
<a href="Structs/UpdateValue.html">UpdateValue</a>
</li>
Expand Down Expand Up @@ -332,7 +317,7 @@ <h4>Declaration</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2018 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2018-06-12)</p>
<p>&copy; 2018 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2018-06-29)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.3</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</article>
Expand Down
Loading

0 comments on commit b4fc14c

Please sign in to comment.