Skip to content

Commit b8e5070

Browse files
authored
Merge pull request #548 from watson-developer-cloud/v3.0.0
v3.0.0
2 parents 9ca71c9 + 3d4de35 commit b8e5070

File tree

1,591 files changed

+55910
-78326
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,591 files changed

+55910
-78326
lines changed

.bumpversion.cfg

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
[bumpversion]
2-
current_version = 2.15.3
2+
current_version = 2.15.4
33
commit = True
44
message = [skip ci] docs: Update version numbers from {current_version} -> {new_version}
55

66
[bumpversion:file:Doxyfile]
7-
search = {current_version}
8-
replace = {new_version}
97

10-
[bumpversion:file:Scripts/Utilities/Constants.cs]
8+
[bumpversion:file:Common/Common.cs]
119
search = {current_version}
1210
replace = {new_version}
13-

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@ Docs/publishing-release.md.meta
7878
/Scripts/Editor/Help/
7979
/Scripts/Editor/Help.meta
8080
*/MRefBuilder.config.meta
81-
package-lock.json
82-
package-lock.json.meta
81+
node_modules
82+
package-lock.json

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "Core"]
2+
path = Core
3+
url = [email protected]:IBM/unity-sdk-core.git

.releaserc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
"branch": "master",
33
"verifyConditions": [],
44
"prepare": [
5-
"@semantic-release/git",
6-
{
5+
{
76
"path": "@semantic-release/exec",
8-
"cmd": "bumpversion --current-version ${lastRelease.version} --new-version ${nextRelease.version} --allow-dirty --verbose patch"
7+
"cmd": "bumpversion --current-version ${lastRelease.version} --new-version ${nextRelease.version} patch"
98
}
109
],
1110
"publish": ["@semantic-release/github"]

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ rvm:
99
cache:
1010
directories:
1111
- ./Unity
12+
git:
13+
submodules: false
1214
before_install:
15+
# Use sed to replace the SSH URL with the public URL, then initialize submodules
16+
- sed -i -e 's/[email protected]:/https:\/\/github.com\//' .gitmodules
17+
- git submodule update --init --recursive
1318
- chmod a+x ./Travis/installUnity.sh
1419
- npm install -g [email protected]
1520
install:
1621
- pip install bumpversion
1722
- ./Travis/installUnity.sh
1823
- npm install @semantic-release/exec
19-
- npm install @semantic-release/git
20-
- npm install @semantic-release/changelog
2124
before_script:
2225
- chmod a+x ./Travis/createProject.sh
2326
- chmod a+x ./Travis/installSDK.sh
@@ -28,7 +31,6 @@ script:
2831
- ./Travis/installSDK.sh
2932
# - ./Travis/runTests.sh
3033
# - ./Travis/build.sh
31-
- git reset --hard
3234
deploy:
3335
- provider: script
3436
skip_cleanup: true

Common.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Common/Common.cs

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/**
2+
* Copyright 2019 IBM Corp. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
using IBM.Cloud.SDK.Utilities;
19+
using System.Collections.Generic;
20+
using UnityEngine;
21+
22+
namespace IBM.Watson
23+
{
24+
public class Common : MonoBehaviour
25+
{
26+
/// <summary>
27+
/// The SDK version.
28+
/// </summary>
29+
public const string Version = "watson-apis-unity-sdk-2.15.4";
30+
/// <summary>
31+
/// Tracking for onboarding.
32+
/// </summary>
33+
public const string TrackingQueryParam = "target=/developer/watson&cm_sp=WatsonPlatform-WatsonServices-_-OnPageNavLink-IBMWatson_SDKs-_-Unity";
34+
/// <summary>
35+
/// Returns a set of default headers to use with each request.
36+
/// </summary>
37+
/// <param name="serviceName">The service name to be used in X-IBMCloud-SDK-Analytics header.</param>
38+
/// <param name="serviceVersion">The service version to be used in X-IBMCloud-SDK-Analytics header.</param>
39+
/// <param name="operation">The operation name to be used in X-IBMCloud-SDK-Analytics header.</param>
40+
/// <returns></returns>
41+
public static Dictionary<string, string> GetSdkHeaders(string serviceName, string serviceVersion, string operationId)
42+
{
43+
Dictionary<string, string> defaultHeaders = new Dictionary<string, string>();
44+
defaultHeaders.Add("X-IBMCloud-SDK-Analytics",
45+
string.Format("service_name={0};service_version={1};operation_id={2}",
46+
serviceName,
47+
serviceVersion,
48+
operationId));
49+
defaultHeaders.Add("User-Agent",
50+
string.Format(
51+
"{0} {1} {2} {3}",
52+
Version,
53+
SystemInformation.Os,
54+
SystemInformation.OsVersion,
55+
Application.unityVersion
56+
));
57+
return defaultHeaders;
58+
}
59+
}
60+
}

Common/Common.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Core

Submodule Core added at 35890c3

Core.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "IBM Watson SDK for Unity"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = 2.15.3
41+
PROJECT_NUMBER = 2.15.4
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

Editor.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Help.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

Editor/Help/LastBuild.log.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Help/Working.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Help/Working/GenerateRefInfo.proj.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Help/Working/MRefBuilder.config.meta

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Help/Working/SHFBContent.xml.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Help/Working/reflection.org.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/IBMCloudSignup.cs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/**
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
using IBM.Cloud.SDK;
19+
using UnityEngine;
20+
21+
namespace IBM.Watson.Editor
22+
{
23+
public class IBMCloudSignup : MonoBehaviour
24+
{
25+
public static void OpenIBMCloudWebsite()
26+
{
27+
Application.OpenURL(Constants.String.IBM_CLOUD_URL + "?" + Common.TrackingQueryParam);
28+
}
29+
}
30+
}

Editor/IBMCloudSignup.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Scripts/Editor/WatsonMenu.cs renamed to Editor/WatsonMenu.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
using UnityEditor;
2121
using UnityEngine;
2222

23-
namespace IBM.Watson.DeveloperCloud.Editor
23+
namespace IBM.Watson.Editor
2424
{
2525
public class WatsonMenu : MonoBehaviour
2626
{

Editor/WatsonMenu.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)