diff --git a/storage/testapp/Assets/Firebase/Sample/Storage/UIHandler.cs b/storage/testapp/Assets/Firebase/Sample/Storage/UIHandler.cs index f95bfb65..f4ce3973 100644 --- a/storage/testapp/Assets/Firebase/Sample/Storage/UIHandler.cs +++ b/storage/testapp/Assets/Firebase/Sample/Storage/UIHandler.cs @@ -79,7 +79,11 @@ public class UIHandler : MonoBehaviour { // the required dependencies to use Firebase, and if not, // add them if possible. protected virtual void Start() { - persistentDataPath = Application.persistentDataPath; +#if (UNITY_TVOS) + persistentDataPath = Application.temporaryCachePath; +#else + persistentDataPath = Application.persistentDataPath; +#endif FirebaseApp.CheckAndFixDependenciesAsync().ContinueWithOnMainThread(task => { dependencyStatus = task.Result; if (dependencyStatus == DependencyStatus.Available) { diff --git a/storage/testapp/Assets/Firebase/Sample/Storage/UIHandlerAutomated.cs b/storage/testapp/Assets/Firebase/Sample/Storage/UIHandlerAutomated.cs index e17b9fec..fa4aa320 100644 --- a/storage/testapp/Assets/Firebase/Sample/Storage/UIHandlerAutomated.cs +++ b/storage/testapp/Assets/Firebase/Sample/Storage/UIHandlerAutomated.cs @@ -117,18 +117,12 @@ protected override void Start() { TestUploadBytesSmallFileThenUpdateMetadata, TestUploadStreamLargeFile, TestUploadStreamSmallFile, -#if !(UNITY_TVOS) - // Tests which require file access don't work on tvOS. TestUploadFromFileLargeFile, TestUploadFromFileSmallFile, -#endif TestUploadFromNonExistantFile, TestUploadBytesWithCancelation, TestUploadStreamWithCancelation, -#if !(UNITY_TVOS) - // Tests which require file access don't work on tvOS. TestUploadFromFileWithCancelation, -#endif TestUploadSmallFileGetDownloadUrl, TestGetDownloadUrlNonExistantFile, TestUploadSmallFileGetMetadata, @@ -143,12 +137,9 @@ protected override void Start() { TestUploadSmallFileAndDownloadUsingStreamCallback, TestUploadLargeFileAndDownloadUsingStreamCallback, TestUploadLargeFileAndDownloadUsingStreamCallbackWithCancelation, -#if !(UNITY_TVOS) - // Tests which require file access don't work on tvOS. TestUploadSmallFileAndDownloadToFile, TestUploadLargeFileAndDownloadToFile, TestUploadLargeFileAndDownloadToFileWithCancelation, -#endif }; testRunner = AutomatedTestRunner.CreateTestRunner(