Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ public static IDCLFileBrowserService GetFileBrowserService()
{

#if UNITY_WEBGL && !UNITY_EDITOR
UnityEngine.Debug.Log($"DCLFileBrowserFactory.GetFileBrowserService UNITY_WEBGL && !UNITY_EDITOR");
return new DCLFileBrowserServiceWebGL();
#endif

#if FILE_BROWSER_PRESENT
UnityEngine.Debug.Log($"DCLFileBrowserFactory.GetFileBrowserService FILE_BROWSER_PRESENT is defined");
return new FileBrowserIntegration.FileBrowserWrapper();
#endif
UnityEngine.Debug.Log($"DCLFileBrowserFactory.GetFileBrowserService FILE_BROWSER_PRESENT is NOT defined, returning service mock!");
return new DCLFileBrowserServiceMock();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ public void SaveFile(string title, string directory, string defaultName, byte[]

public async UniTask SaveFileAsync(string title, string directory, string defaultName, byte[] content, ExtensionFilter[] extensions)
{
UnityEngine.Debug.Log($"FileBrowserWrapper.SaveFileAsync start of method");
UniTaskCompletionSource<string> completionSource = new UniTaskCompletionSource<string>();
FileBrowser.Instance.SaveFileAsync(path => completionSource.TrySetResult(path), title, directory, defaultName, ConvertExtensionFilters(extensions));
var path = await completionSource.Task;
UnityEngine.Debug.Log($"FileBrowserWrapper.SaveFileAsync path:{path} before calling System.IO.File.WriteAllBytesAsync");
await System.IO.File.WriteAllBytesAsync(path, content);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ internal async UniTask VrmExport(CancellationToken ct)
view?.SetVRMSuccessToastActive(false);
}

backpackAnalyticsService.SendVRMExportSucceeded();
//backpackAnalyticsService.SendVRMExportSucceeded();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// </summary>
public class Analytics : IAnalytics
{
private static bool VERBOSE = false;
private static bool VERBOSE = true;

public void SendAnalytic(string eventName, Dictionary<string, string> data)
{
Expand All @@ -21,4 +21,4 @@ public void SendAnalytic(string eventName, Dictionary<string, string> data)
internal void SendToSegment(string eventName, Dictionary<string, string> data) { WebInterface.ReportAnalyticsEvent(eventName, data.Select(x => new WebInterface.AnalyticsPayload.Property(x.Key, x.Value)).ToArray()); }

public void Dispose() { }
}
}