Skip to content

Commit 9999e96

Browse files
Exporter script (#76)
* feat: add exporter script * fix: move GrantTokenBuilder out of the tests folder * PubNub SDK v6.0.6 release. Co-authored-by: Client Engineering Bot <[email protected]>
1 parent 8df06ba commit 9999e96

File tree

10 files changed

+55
-6
lines changed

10 files changed

+55
-6
lines changed

.pubnub.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
2-
version: v6.0.5
2+
version: v6.0.6
33
changelog:
4+
- date: 2022-10-12
5+
version: v6.0.6
6+
changes:
7+
- type: bug
8+
text: "The PlaymodeTests folder has been excluded from the build; also, GrantToken has been moved to the appropriate place in the project."
49
- date: 2022-09-02
510
version: v6.0.5
611
changes:
@@ -653,7 +658,7 @@ sdks:
653658
distribution-type: package
654659
distribution-repository: git release
655660
package-name: PubNub.unitypackage
656-
location: https://github.com/pubnub/unity/releases/download/v6.0.5/PubNub.unitypackage
661+
location: https://github.com/pubnub/unity/releases/download/v6.0.6/PubNub.unitypackage
657662
requires:
658663
-
659664
name: "UnityEditor"
@@ -820,7 +825,7 @@ sdks:
820825
distribution-type: package
821826
distribution-repository: git release
822827
package-name: PubNub.unitypackage
823-
location: https://github.com/pubnub/unity/releases/download/v6.0.5/PubNub.unitypackage
828+
location: https://github.com/pubnub/unity/releases/download/v6.0.6/PubNub.unitypackage
824829
requires:
825830
-
826831
name: "UnityEditor"

PubNubUnity/Assets/PubNub/PubNubUnity/PubNubUnityBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace PubNubAPI
77
public class PubNubUnityBase
88
{
99
protected Counter publishMessageCounter;
10-
private const string build = "6.0.5";
10+
private const string build = "6.0.6";
1111
private string pnsdkVersion = string.Format ("PubNub-CSharp-Unity/{0}", build);
1212

1313
public string Version {

PubNubUnity/Assets/Utils.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.

PubNubUnity/Assets/Utils/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.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using UnityEngine;
2+
using UnityEditor;
3+
using System.Linq;
4+
5+
public class PubNubPackageExporter : MonoBehaviour {
6+
7+
[MenuItem("Assets/Export PubNub Package")]
8+
public static void ExportPackage() {
9+
bool assetFilter(string s) => !s.StartsWith("Assets/PubNub/PlayModeTests");
10+
11+
var assets = AssetDatabase.FindAssets("", new[] { "Assets/PubNub" }).Select(AssetDatabase.GUIDToAssetPath).Where(assetFilter).ToArray();
12+
13+
Debug.Log("Assets to be exported:\n" + string.Join(", ", assets));
14+
15+
AssetDatabase.ExportPackage(assets, "PubNub.unitypackage", ExportPackageOptions.Recurse);
16+
}
17+
}

PubNubUnity/Assets/Utils/Editor/PubNubPackageExporter.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.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You will need the publish and subscribe keys to authenticate your app. Get your
1212

1313
## Configure PubNub
1414

15-
1. Download the PubNub Unity package from [this repository](https://github.com/pubnub/unity/releases/download/v6.0.5/PubNub.unitypackage).
15+
1. Download the PubNub Unity package from [this repository](https://github.com/pubnub/unity/releases/download/v6.0.6/PubNub.unitypackage).
1616

1717
2. Import it to your Unity project by going to Assets -> Import Package -> Custom Package.
1818

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.5
1+
6.0.6

0 commit comments

Comments
 (0)