Skip to content

Commit 2893e72

Browse files
authored
fix(tv): Put sqlite in cache for tvOS (#128) LP-8642
1 parent f37ad02 commit 2893e72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Leanplum-SDK/Classes/LPDatabase.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@ + (LPDatabase *)sharedDatabase
8484
*/
8585
+ (NSString *)sqliteFilePath
8686
{
87+
#if LP_NOT_TV
8788
return [[LPFileManager documentsDirectory] stringByAppendingPathComponent:LEANPLUM_SQLITE_NAME];
89+
#else
90+
return [[LPFileManager cachesDirectory] stringByAppendingPathComponent:LEANPLUM_SQLITE_NAME];
91+
#endif
8892
}
8993

9094
/**

0 commit comments

Comments
 (0)