Skip to content

Commit ffc921e

Browse files
authored
tvOS Storage iTest now properly uses Caches directory (#601)
* automated testapps check for UNITY_TVOS * add TVOS_UNITY detection to XcodeCapabilities.cs * disable storage tests * revert changes to dynamic links * first draft * testapps uses a platform config to test supplied target list * JSON formatting * python script formatting * removed new line * add storage test again
1 parent e867f90 commit ffc921e

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

storage/testapp/Assets/Firebase/Sample/Storage/UIHandler.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ public class UIHandler : MonoBehaviour {
7979
// the required dependencies to use Firebase, and if not,
8080
// add them if possible.
8181
protected virtual void Start() {
82-
persistentDataPath = Application.persistentDataPath;
82+
#if (UNITY_TVOS)
83+
persistentDataPath = Application.temporaryCachePath;
84+
#else
85+
persistentDataPath = Application.persistentDataPath;
86+
#endif
8387
FirebaseApp.CheckAndFixDependenciesAsync().ContinueWithOnMainThread(task => {
8488
dependencyStatus = task.Result;
8589
if (dependencyStatus == DependencyStatus.Available) {

storage/testapp/Assets/Firebase/Sample/Storage/UIHandlerAutomated.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,12 @@ protected override void Start() {
117117
TestUploadBytesSmallFileThenUpdateMetadata,
118118
TestUploadStreamLargeFile,
119119
TestUploadStreamSmallFile,
120-
#if !(UNITY_TVOS)
121-
// Tests which require file access don't work on tvOS.
122120
TestUploadFromFileLargeFile,
123121
TestUploadFromFileSmallFile,
124-
#endif
125122
TestUploadFromNonExistantFile,
126123
TestUploadBytesWithCancelation,
127124
TestUploadStreamWithCancelation,
128-
#if !(UNITY_TVOS)
129-
// Tests which require file access don't work on tvOS.
130125
TestUploadFromFileWithCancelation,
131-
#endif
132126
TestUploadSmallFileGetDownloadUrl,
133127
TestGetDownloadUrlNonExistantFile,
134128
TestUploadSmallFileGetMetadata,
@@ -143,12 +137,9 @@ protected override void Start() {
143137
TestUploadSmallFileAndDownloadUsingStreamCallback,
144138
TestUploadLargeFileAndDownloadUsingStreamCallback,
145139
TestUploadLargeFileAndDownloadUsingStreamCallbackWithCancelation,
146-
#if !(UNITY_TVOS)
147-
// Tests which require file access don't work on tvOS.
148140
TestUploadSmallFileAndDownloadToFile,
149141
TestUploadLargeFileAndDownloadToFile,
150142
TestUploadLargeFileAndDownloadToFileWithCancelation,
151-
#endif
152143
};
153144

154145
testRunner = AutomatedTestRunner.CreateTestRunner(

0 commit comments

Comments
 (0)