We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0017bd9 commit c27b053Copy full SHA for c27b053
1 file changed
OneSignalExample/Assets/OneSignalPackager/Editor/OneSignalPackagePublisher.cs
@@ -28,6 +28,7 @@
28
using System.IO;
29
using System.Linq;
30
using UnityEditor;
31
+using UnityEngine;
32
33
namespace OneSignalSDK
34
{
@@ -56,17 +57,12 @@ public static void ExportUnityPackage()
56
57
var filePaths = _filePaths();
58
Debug.Log($"File paths to export: {filePaths}");
59
- if (filePaths.Length == 0)
60
- {
61
- Debug.LogError("ERROR: No file paths returned by _filePaths()!");
62
- EditorApplication.Exit(1);
63
- return;
64
- }
65
-
66
Debug.Log("Starting AssetDatabase.ExportPackage...");
67
+ var exportPath = "Assets/OneSignal";
+
68
AssetDatabase.ExportPackage(
69
- _filePaths(),
+ exportPath,
70
packageName,
71
ExportPackageOptions.Recurse | ExportPackageOptions.IncludeDependencies
72
);
0 commit comments