Skip to content

v3.0.0 #548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 116 commits into from
Mar 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
3e94c74
chore: Removed all service classes, tests and examples except for Ass…
mediumTaj Jan 4, 2019
3798616
feat: Simplified namespaces
mediumTaj Jan 4, 2019
f16890a
feat: Added WatsonResponse and WatsonError
mediumTaj Jan 4, 2019
7f8a0b3
chore: Refactored Assistant V2 to use new WatsonResponse and WatsonError
mediumTaj Jan 4, 2019
721f30c
chore(Assistant V2): Look into generic props
mediumTaj Jan 7, 2019
d31cd77
Merge branch 'develop' into feature-major-release
mediumTaj Jan 9, 2019
add8b46
feat(Assistant V2): Deserializing Dictionaries
mediumTaj Jan 9, 2019
dd59bb8
chore(Assistant V2): Trying with generic object
mediumTaj Jan 10, 2019
14264cb
chore(Assistant V2): Adding back MessageContextSkill and MessageConte…
mediumTaj Jan 10, 2019
5fc6c20
chore(AssistantV2): Updated converter
mediumTaj Jan 13, 2019
d8244f8
feat: Generated services
mediumTaj Jan 24, 2019
6db822e
chore(Tone Analyzer): Generated Tone Analyzer service
mediumTaj Jan 29, 2019
53e8b1e
feat: Separating core from sdk
mediumTaj Feb 7, 2019
9ceeb61
feat(Serialization): Transitioned from FullSerializer to Json.net
mediumTaj Feb 8, 2019
865ab3d
chore: Testing new json serialization
mediumTaj Feb 10, 2019
ed1acb9
feat: Regenerated the SDK based on the lateset definitions and unity …
mediumTaj Feb 20, 2019
f85fc74
build: Removed code to move TravisIntegrationTests
mediumTaj Feb 21, 2019
ad6e4ba
test(Unity Test Runner): Adding tests for Unity Test Runner
mediumTaj Feb 21, 2019
eb43f94
test(Assembly): Added asmdef for sdk to reference in tests
mediumTaj Feb 21, 2019
a7cc48d
test(Assistant V2): Updated Assistant V2 tests for new test framework
mediumTaj Feb 21, 2019
9b9d3bf
test: Updated test script
mediumTaj Feb 21, 2019
fdc2937
test: Enabled tests
mediumTaj Feb 21, 2019
aa04c70
test: Updated tests
mediumTaj Feb 21, 2019
2dd75a2
Merge branch 'feature-unity-testrunner' into feature-major-release
mediumTaj Feb 22, 2019
41f3039
test(Assistant): Refactored Assistant V2 tests, started Assistant V1 …
mediumTaj Feb 22, 2019
714b31e
feat(All services): Exploded body parameters in service methods
mediumTaj Feb 26, 2019
1174348
chore(Additional Properties): WIP
mediumTaj Feb 28, 2019
1be31bf
feat: Created a commmon class to get default headers
mediumTaj Mar 4, 2019
c064868
chore: Use common class to get headers
mediumTaj Mar 4, 2019
38dbe5d
test(GetDefaultHeaders): Added to default header test
mediumTaj Mar 6, 2019
f6f8efa
build: Disable tests temporarily
mediumTaj Mar 6, 2019
86f19d7
build: Disable tests temporarily
mediumTaj Mar 6, 2019
f5f4791
feat(Core): Separated core from the services
mediumTaj Mar 4, 2019
4c18480
feat(Core): Added submodule for core class
mediumTaj Mar 6, 2019
8a59a9a
chore(Core): Removed core from common branch
mediumTaj Mar 6, 2019
6c18de2
chore(Core): Merged in common changes
mediumTaj Mar 6, 2019
25344f8
chore(Assistant V1): Use JObject as dynamic type, write integration t…
mediumTaj Mar 4, 2019
f514173
chore(Core): Updated assembly
mediumTaj Mar 6, 2019
f429a54
build: Added hack to handle submodules in travis
mediumTaj Mar 6, 2019
e61e390
build: Added -e to sed command for mac specific version
mediumTaj Mar 6, 2019
2468190
Merge branch 'feature-v3-separate-core' into feature-v3-generate-inte…
mediumTaj Mar 6, 2019
1984e41
test(Test Order): Updated tests to use Order
mediumTaj Mar 6, 2019
ac24c36
Merge pull request #529 from watson-developer-cloud/feature-v3-common…
mediumTaj Mar 7, 2019
c30bdf6
Merge pull request #530 from watson-developer-cloud/feature-v3-separa…
mediumTaj Mar 11, 2019
5ac33e4
Merge branch 'v3.0.0' into feature-v3-generate-integration-tests
mediumTaj Mar 11, 2019
dc4a984
test(Assistant V1): Added generated integration tests
mediumTaj Mar 11, 2019
952a315
test(Assistant V1): Finished Assistant integration tests
mediumTaj Mar 11, 2019
2d61d58
chore(Assistant V1): Replaced old integration tests wit new tests
mediumTaj Mar 11, 2019
e5b47fa
test(Assistant V1): Updated integration tests to include x-watson-tes…
mediumTaj Mar 12, 2019
22eb7b8
chore(Assistant V1): Regenerated assistant v1 with the latest api def…
mediumTaj Mar 12, 2019
978d998
chore(Assistant V1): Updated tests and examples to account for regene…
mediumTaj Mar 12, 2019
bbebd23
chore(All Services): Regenerated all services according to the latest…
mediumTaj Mar 12, 2019
631035d
test(Compare Comply V1): Added integration tests for Compare Comply
mediumTaj Mar 12, 2019
2a5fd5f
test(Discovery V1): Starting discovery tests
mediumTaj Mar 13, 2019
a1eda91
chore(Discovery V1): Regenerate with null json check, continue integr…
mediumTaj Mar 13, 2019
c057d79
test(Discovery V1): Finished integration tests
mediumTaj Mar 13, 2019
c528ba7
chore(Language Translator V3): Integration tests, generator changes
mediumTaj Mar 14, 2019
dc67add
chore(All services): Regenerated for missing space in template
mediumTaj Mar 14, 2019
a02970e
test: NLU and NLC integration tests
mediumTaj Mar 14, 2019
407fadd
test(Personality Insights V3): Updated service and added tests
mediumTaj Mar 14, 2019
f0c9b27
chore(Binary return type): Make all binary return type memorystreams
mediumTaj Mar 14, 2019
d55f21f
test(Tone Analyzer V3): Added integration tests
mediumTaj Mar 14, 2019
eec59d1
test(Speech to Text and Text to Speech): Added integration tests
mediumTaj Mar 15, 2019
34f513b
chore: Regenerate based on latest generator changes
mediumTaj Mar 15, 2019
3850987
test(Visual Recognition V3): Added integration tests
mediumTaj Mar 15, 2019
4aee41f
refactor: Refactored GetDefaultHeaders to GetSdkHeaders
mediumTaj Mar 15, 2019
b56eb51
chore(Visual Recognition V3): Wrapped method to wait for classifier i…
mediumTaj Mar 15, 2019
8689b64
chore(Integration tests): Added try catch to integration tests
mediumTaj Mar 16, 2019
4af1ab3
refactor: Generating binary return types instead of memeory streams
mediumTaj Mar 16, 2019
1301ce5
Merge pull request #537 from watson-developer-cloud/feature-v3-genera…
mediumTaj Mar 18, 2019
ecc46f4
chore: Added streaming class
mediumTaj Mar 18, 2019
70888dc
Merge branch 'feature-v3-stt-streaming' into v3.0.0
mediumTaj Mar 18, 2019
b0fd19a
Merge branch 'v3.0.0' of github.com:watson-developer-cloud/unity-sdk …
mediumTaj Mar 18, 2019
e78754e
feat: Removed customData from response, added response json to respon…
mediumTaj Mar 18, 2019
d1bbee8
feat: Removed customData from operations
mediumTaj Mar 19, 2019
48d5b37
test: Remove customData from tests and exaamples
mediumTaj Mar 19, 2019
ae99688
chore: Generate filename param, use MemoryStream rather than FileStre…
mediumTaj Mar 19, 2019
efe45fd
chore: Updates for filename
mediumTaj Mar 19, 2019
00ae811
chore: Regenerated SDK and updated tests based on required filename
mediumTaj Mar 19, 2019
3612323
chore: Remove commented code
mediumTaj Mar 20, 2019
97794aa
Merge pull request #538 from watson-developer-cloud/feature-v3-remove…
mediumTaj Mar 20, 2019
5caa5fe
chore(Speech to Text V1): Handwritten change for Timestamps and Wor…
mediumTaj Mar 20, 2019
3e217fb
chore(Visual Recognition V4): Regenerated using new mapified param fe…
mediumTaj Mar 20, 2019
956e5a5
Merge branch 'v3.0.0' into feature-v3-filenames
mediumTaj Mar 20, 2019
31f9fce
chore: Regenerated with the latest definitions, added formatting of d…
mediumTaj Mar 20, 2019
015ee61
test: Removved positive example filename
mediumTaj Mar 20, 2019
cae3174
chore: Regenerate for DateTime
mediumTaj Mar 20, 2019
f12d235
docs: Update Readme
mediumTaj Mar 20, 2019
9fc29bc
build: Do not download credentials in pull request
mediumTaj Mar 21, 2019
803183b
build: Corrected installSDK script
mediumTaj Mar 21, 2019
7cf16b8
chore: Updated submodule
mediumTaj Mar 21, 2019
f2ce616
docs: Updated import statement in readme
mediumTaj Mar 21, 2019
04d50db
refactor: Updated generator to get correct service name
mediumTaj Mar 22, 2019
10386f9
chore: Moved submodule to github.com/IBM
mediumTaj Mar 26, 2019
85cf79c
feat(Regeneration): This PR adds the newest generated code using API …
mediumTaj Mar 26, 2019
290258c
Merge pull request #539 from watson-developer-cloud/feature-v3-filenames
mediumTaj Mar 26, 2019
ec02233
test(Compare Comply V1): Updated test to reflect param name change
mediumTaj Mar 26, 2019
a3b1562
Merge pull request #540 from watson-developer-cloud/feature-v3-datetime
mediumTaj Mar 26, 2019
10c1e56
Merge branch 'v3.0.0' into feature-v3-update-submodule
mediumTaj Mar 26, 2019
8d50ccd
Merge pull request #544 from watson-developer-cloud/feature-v3-update…
mediumTaj Mar 26, 2019
b613391
Merge branch 'v3.0.0' into feature-v3-regenerate-services
mediumTaj Mar 26, 2019
7d60d7f
feat(Regeneration): Regenerated all services using API definition com…
mediumTaj Mar 26, 2019
a217817
chore(Speech to Text V1): Hand edit for timestamps and word confidence
mediumTaj Mar 26, 2019
ab2177f
test(Visual Recognition V3): Disabled some long-running tests
mediumTaj Mar 26, 2019
72f70c5
chore(Regeneration): Regenerated with latest commits from the generator
mediumTaj Mar 26, 2019
6e0fdbd
test: Updated integration tests
mediumTaj Mar 27, 2019
1b60a1a
chore(filename): Regenerated sending filename of `filename` rather th…
mediumTaj Mar 27, 2019
9d86c1a
docs: Updated README.md
mediumTaj Mar 28, 2019
c9ade93
chore(Core): Updated submodule to latest release
mediumTaj Mar 28, 2019
c2f0f0f
chore(Core): Updated submodule to the latest release
mediumTaj Mar 28, 2019
d194dbd
Merge pull request #547 from watson-developer-cloud/feature-v3-update…
mediumTaj Mar 28, 2019
76ceaba
Merge pull request #545 from watson-developer-cloud/feature-v3-regene…
mediumTaj Mar 28, 2019
860f23d
Merge branch 'master' into v3.0.0
mediumTaj Mar 28, 2019
9bdcfce
feat(Regeneration): Regenerated SDK with the latest API definitions
mediumTaj Mar 28, 2019
38bc99a
chore(Version): Updated version to current released version, added no…
mediumTaj Mar 28, 2019
3d4de35
Merge branch 'master' into v3.0.0
mediumTaj Mar 28, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 2 additions & 5 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
[bumpversion]
current_version = 2.15.3
current_version = 2.15.4
commit = True
message = [skip ci] docs: Update version numbers from {current_version} -> {new_version}

[bumpversion:file:Doxyfile]
search = {current_version}
replace = {new_version}

[bumpversion:file:Scripts/Utilities/Constants.cs]
[bumpversion:file:Common/Common.cs]
search = {current_version}
replace = {new_version}

44 changes: 0 additions & 44 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

18 changes: 0 additions & 18 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ Docs/publishing-release.md.meta
/Scripts/Editor/Help/
/Scripts/Editor/Help.meta
*/MRefBuilder.config.meta
package-lock.json
package-lock.json.meta
node_modules
package-lock.json
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "Core"]
path = Core
url = [email protected]:IBM/unity-sdk-core.git
5 changes: 2 additions & 3 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"branch": "master",
"verifyConditions": [],
"prepare": [
"@semantic-release/git",
{
{
"path": "@semantic-release/exec",
"cmd": "bumpversion --current-version ${lastRelease.version} --new-version ${nextRelease.version} --allow-dirty --verbose patch"
"cmd": "bumpversion --current-version ${lastRelease.version} --new-version ${nextRelease.version} patch"
}
],
"publish": ["@semantic-release/github"]
Expand Down
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@ rvm:
cache:
directories:
- ./Unity
git:
submodules: false
before_install:
# Use sed to replace the SSH URL with the public URL, then initialize submodules
- sed -i -e 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
- chmod a+x ./Travis/installUnity.sh
- npm install -g [email protected]
install:
- pip install bumpversion
- ./Travis/installUnity.sh
- npm install @semantic-release/exec
- npm install @semantic-release/git
- npm install @semantic-release/changelog
before_script:
- chmod a+x ./Travis/createProject.sh
- chmod a+x ./Travis/installSDK.sh
Expand All @@ -28,7 +31,6 @@ script:
- ./Travis/installSDK.sh
# - ./Travis/runTests.sh
# - ./Travis/build.sh
- git reset --hard
deploy:
- provider: script
skip_cleanup: true
Expand Down
8 changes: 8 additions & 0 deletions Common.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions Common/Common.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/**
* Copyright 2019 IBM Corp. All Rights Reserved.
*
* 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.
*
*/

using IBM.Cloud.SDK.Utilities;
using System.Collections.Generic;
using UnityEngine;

namespace IBM.Watson
{
public class Common : MonoBehaviour
{
/// <summary>
/// The SDK version.
/// </summary>
public const string Version = "watson-apis-unity-sdk-2.15.4";
/// <summary>
/// Tracking for onboarding.
/// </summary>
public const string TrackingQueryParam = "target=/developer/watson&cm_sp=WatsonPlatform-WatsonServices-_-OnPageNavLink-IBMWatson_SDKs-_-Unity";
/// <summary>
/// Returns a set of default headers to use with each request.
/// </summary>
/// <param name="serviceName">The service name to be used in X-IBMCloud-SDK-Analytics header.</param>
/// <param name="serviceVersion">The service version to be used in X-IBMCloud-SDK-Analytics header.</param>
/// <param name="operation">The operation name to be used in X-IBMCloud-SDK-Analytics header.</param>
/// <returns></returns>
public static Dictionary<string, string> GetSdkHeaders(string serviceName, string serviceVersion, string operationId)
{
Dictionary<string, string> defaultHeaders = new Dictionary<string, string>();
defaultHeaders.Add("X-IBMCloud-SDK-Analytics",
string.Format("service_name={0};service_version={1};operation_id={2}",
serviceName,
serviceVersion,
operationId));
defaultHeaders.Add("User-Agent",
string.Format(
"{0} {1} {2} {3}",
Version,
SystemInformation.Os,
SystemInformation.OsVersion,
Application.unityVersion
));
return defaultHeaders;
}
}
}
11 changes: 11 additions & 0 deletions Common/Common.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Core
Submodule Core added at 35890c
8 changes: 8 additions & 0 deletions Core.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = "IBM Watson SDK for Unity"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 2.15.3
PROJECT_NUMBER = 2.15.4

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
8 changes: 8 additions & 0 deletions Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Editor/Help.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
7 changes: 7 additions & 0 deletions Editor/Help/LastBuild.log.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Editor/Help/Working.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Editor/Help/Working/GenerateRefInfo.proj.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions Editor/Help/Working/MRefBuilder.config.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Editor/Help/Working/SHFBContent.xml.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Editor/Help/Working/reflection.org.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions Editor/IBMCloudSignup.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* Copyright 2018 IBM Corp. All Rights Reserved.
*
* 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.
*
*/

using IBM.Cloud.SDK;
using UnityEngine;

namespace IBM.Watson.Editor
{
public class IBMCloudSignup : MonoBehaviour
{
public static void OpenIBMCloudWebsite()
{
Application.OpenURL(Constants.String.IBM_CLOUD_URL + "?" + Common.TrackingQueryParam);
}
}
}
11 changes: 11 additions & 0 deletions Editor/IBMCloudSignup.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Scripts/Editor/WatsonMenu.cs → Editor/WatsonMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
using UnityEditor;
using UnityEngine;

namespace IBM.Watson.DeveloperCloud.Editor
namespace IBM.Watson.Editor
{
public class WatsonMenu : MonoBehaviour
{
Expand Down
11 changes: 11 additions & 0 deletions Editor/WatsonMenu.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading