From 1bd89eb5492942ee034a7612367b9564f2385933 Mon Sep 17 00:00:00 2001 From: Dimas Gabriel Date: Mon, 28 Jul 2014 18:36:40 -0300 Subject: [PATCH 1/2] Importing UIKit so TMCache can be used in Swift --- TMCache/TMDiskCache.h | 1 + TMCache/TMMemoryCache.h | 1 + 2 files changed, 2 insertions(+) diff --git a/TMCache/TMDiskCache.h b/TMCache/TMDiskCache.h index 7bb9e05..66aefe7 100644 --- a/TMCache/TMDiskCache.h +++ b/TMCache/TMDiskCache.h @@ -24,6 +24,7 @@ */ #import +#import @class TMDiskCache; diff --git a/TMCache/TMMemoryCache.h b/TMCache/TMMemoryCache.h index a999b27..e230e05 100644 --- a/TMCache/TMMemoryCache.h +++ b/TMCache/TMMemoryCache.h @@ -16,6 +16,7 @@ */ #import +#import @class TMMemoryCache; From 2868e56495b12357f2724caa6d3d6ad14eee7d43 Mon Sep 17 00:00:00 2001 From: Dimas Gabriel Date: Thu, 4 Dec 2014 11:59:05 -0200 Subject: [PATCH 2/2] Importing UIKit to .mS files to fix swift compile error --- TMCache/TMDiskCache.h | 1 - TMCache/TMDiskCache.m | 1 + TMCache/TMMemoryCache.h | 1 - TMCache/TMMemoryCache.m | 1 + 4 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TMCache/TMDiskCache.h b/TMCache/TMDiskCache.h index 66aefe7..7bb9e05 100644 --- a/TMCache/TMDiskCache.h +++ b/TMCache/TMDiskCache.h @@ -24,7 +24,6 @@ */ #import -#import @class TMDiskCache; diff --git a/TMCache/TMDiskCache.m b/TMCache/TMDiskCache.m index a15f07d..c084929 100644 --- a/TMCache/TMDiskCache.m +++ b/TMCache/TMDiskCache.m @@ -1,4 +1,5 @@ #import "TMDiskCache.h" +#import #define TMDiskCacheError(error) if (error) { NSLog(@"%@ (%d) ERROR: %@", \ [[NSString stringWithUTF8String:__FILE__] lastPathComponent], \ diff --git a/TMCache/TMMemoryCache.h b/TMCache/TMMemoryCache.h index e230e05..a999b27 100644 --- a/TMCache/TMMemoryCache.h +++ b/TMCache/TMMemoryCache.h @@ -16,7 +16,6 @@ */ #import -#import @class TMMemoryCache; diff --git a/TMCache/TMMemoryCache.m b/TMCache/TMMemoryCache.m index 66972cc..07eca87 100644 --- a/TMCache/TMMemoryCache.m +++ b/TMCache/TMMemoryCache.m @@ -1,4 +1,5 @@ #import "TMMemoryCache.h" +#import NSString * const TMMemoryCachePrefix = @"com.tumblr.TMMemoryCache";