Skip to content

Commit 71e4da8

Browse files
author
Rui Peres
committed
The demo + lib are in a single project (different targets)
1 parent 2cd8790 commit 71e4da8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+799
-399
lines changed

FastImageCache/FastImageCache.xcodeproj/project.pbxproj

Lines changed: 658 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//
2+
// FastImageCache.h
3+
// FastImageCache
4+
//
5+
// Created by Rui Peres on 17/06/2015.
6+
// Copyright (c) 2015 Path. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
//! Project version number for FastImageCache.
12+
FOUNDATION_EXPORT double FastImageCacheVersionNumber;
13+
14+
//! Project version string for FastImageCache.
15+
FOUNDATION_EXPORT const unsigned char FastImageCacheVersionString[];
16+
17+
// In this header, you should import all the public headers of your framework using statements like #import <FastImageCache/PublicHeader.h>
18+
19+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>com.path.$(PRODUCT_NAME:rfc1034identifier)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleSignature</key>
20+
<string>????</string>
21+
<key>CFBundleVersion</key>
22+
<string>$(CURRENT_PROJECT_VERSION)</string>
23+
<key>NSPrincipalClass</key>
24+
<string></string>
25+
</dict>
26+
</plist>

FastImageCacheDemo/Supporting Files/Assets.xcassets/Icon.appiconset/Contents.json renamed to FastImageCache/FastImageCacheDemo/Assets.xcassets/Icon.appiconset/Contents.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
"filename" : "[email protected]",
3434
"scale" : "2x"
3535
},
36+
{
37+
"idiom" : "iphone",
38+
"size" : "60x60",
39+
"scale" : "3x"
40+
},
3641
{
3742
"idiom" : "ipad",
3843
"size" : "29x29",

FastImageCacheDemo/Classes/FICDAppDelegate.h renamed to FastImageCache/FastImageCacheDemo/Classes/FICDAppDelegate.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// See LICENSE for full license agreement.
77
//
88

9+
#import <UIKit/UIKit.h>
10+
911
@class FICDViewController;
1012

1113
@interface FICDAppDelegate : UIResponder <UIApplicationDelegate>

FastImageCacheDemo/Classes/FICDFullscreenPhotoDisplayController.h renamed to FastImageCache/FastImageCacheDemo/Classes/FICDFullscreenPhotoDisplayController.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
// See LICENSE for full license agreement.
77
//
88

9+
#import <Foundation/Foundation.h>
10+
#import <UIKit/UIKit.h>
11+
912
@class FICDPhoto;
1013

1114
@protocol FICDFullscreenPhotoDisplayControllerDelegate;

FastImageCacheDemo/Classes/FICDPhotosTableViewCell.h renamed to FastImageCache/FastImageCacheDemo/Classes/FICDPhotosTableViewCell.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// See LICENSE for full license agreement.
77
//
88

9+
#import <UIKit/UIKit.h>
10+
911
@class FICDPhoto;
1012

1113
@protocol FICDPhotosTableViewCellDelegate;

FastImageCacheDemo/Classes/FICDTableView.h renamed to FastImageCache/FastImageCacheDemo/Classes/FICDTableView.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// See LICENSE for full license agreement.
77
//
88

9+
#import <UIKit/UIKit.h>
10+
911
@interface FICDTableView : UITableView
1012

1113
@property (nonatomic, assign, readonly) CGFloat averageFPS;

FastImageCacheDemo/Classes/FICDViewController.h renamed to FastImageCache/FastImageCacheDemo/Classes/FICDViewController.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// See LICENSE for full license agreement.
77
//
88

9+
#import <UIKit/UIKit.h>
10+
911
@class FICDTableView;
1012

1113
@interface FICDViewController : UIViewController

FastImageCacheDemo/Supporting Files/FastImageCacheDemo-Info.plist renamed to FastImageCache/FastImageCacheDemo/Info.plist

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,44 @@
44
<dict>
55
<key>CFBundleDevelopmentRegion</key>
66
<string>en</string>
7-
<key>CFBundleDisplayName</key>
8-
<string>FIC Demo</string>
97
<key>CFBundleExecutable</key>
10-
<string>${EXECUTABLE_NAME}</string>
11-
<key>CFBundleIcons</key>
12-
<dict/>
13-
<key>CFBundleIcons~ipad</key>
14-
<dict/>
8+
<string>$(EXECUTABLE_NAME)</string>
159
<key>CFBundleIdentifier</key>
16-
<string>com.path.${PRODUCT_NAME:rfc1034identifier}</string>
10+
<string>com.path.$(PRODUCT_NAME:rfc1034identifier)</string>
1711
<key>CFBundleInfoDictionaryVersion</key>
1812
<string>6.0</string>
1913
<key>CFBundleName</key>
20-
<string>${PRODUCT_NAME}</string>
14+
<string>$(PRODUCT_NAME)</string>
2115
<key>CFBundlePackageType</key>
2216
<string>APPL</string>
2317
<key>CFBundleShortVersionString</key>
2418
<string>1.0</string>
2519
<key>CFBundleSignature</key>
2620
<string>????</string>
2721
<key>CFBundleVersion</key>
28-
<string>1.0</string>
22+
<string>1</string>
2923
<key>LSRequiresIPhoneOS</key>
3024
<true/>
25+
<key>UILaunchStoryboardName</key>
26+
<string>LaunchScreen</string>
27+
<key>UIMainStoryboardFile</key>
28+
<string>Main</string>
3129
<key>UIRequiredDeviceCapabilities</key>
3230
<array>
3331
<string>armv7</string>
3432
</array>
35-
<key>UIStatusBarHidden</key>
36-
<false/>
37-
<key>UIStatusBarHidden~ipad</key>
38-
<false/>
3933
<key>UISupportedInterfaceOrientations</key>
4034
<array>
4135
<string>UIInterfaceOrientationPortrait</string>
36+
<string>UIInterfaceOrientationLandscapeLeft</string>
37+
<string>UIInterfaceOrientationLandscapeRight</string>
4238
</array>
4339
<key>UISupportedInterfaceOrientations~ipad</key>
4440
<array>
4541
<string>UIInterfaceOrientationPortrait</string>
4642
<string>UIInterfaceOrientationPortraitUpsideDown</string>
43+
<string>UIInterfaceOrientationLandscapeLeft</string>
44+
<string>UIInterfaceOrientationLandscapeRight</string>
4745
</array>
48-
<key>UIViewControllerBasedStatusBarAppearance</key>
49-
<false/>
5046
</dict>
5147
</plist>

FastImageCacheDemo/Supporting Files/main.m renamed to FastImageCache/FastImageCacheDemo/main.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
// main.m
33
// FastImageCacheDemo
44
//
5-
// Copyright (c) 2013 Path, Inc.
6-
// See LICENSE for full license agreement.
5+
// Created by Rui Peres on 17/06/2015.
6+
// Copyright (c) 2015 Path. All rights reserved.
77
//
88

9+
#import <UIKit/UIKit.h>
910
#import "FICDAppDelegate.h"
1011

11-
int main(int argc, char *argv[]) {
12+
int main(int argc, char * argv[]) {
1213
@autoreleasepool {
1314
return UIApplicationMain(argc, argv, nil, NSStringFromClass([FICDAppDelegate class]));
1415
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
//
2+
// FastImageCacheTests.m
3+
// FastImageCacheTests
4+
//
5+
// Created by Rui Peres on 17/06/2015.
6+
// Copyright (c) 2015 Path. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
#import <XCTest/XCTest.h>
11+
12+
@interface FastImageCacheTests : XCTestCase
13+
14+
@end
15+
16+
@implementation FastImageCacheTests
17+
18+
- (void)setUp {
19+
[super setUp];
20+
// Put setup code here. This method is called before the invocation of each test method in the class.
21+
}
22+
23+
- (void)tearDown {
24+
// Put teardown code here. This method is called after the invocation of each test method in the class.
25+
[super tearDown];
26+
}
27+
28+
- (void)testExample {
29+
// This is an example of a functional test case.
30+
XCTAssert(YES, @"Pass");
31+
}
32+
33+
- (void)testPerformanceExample {
34+
// This is an example of a performance test case.
35+
[self measureBlock:^{
36+
// Put the code you want to measure the time of here.
37+
}];
38+
}
39+
40+
@end
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>com.path.$(PRODUCT_NAME:rfc1034identifier)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>BNDL</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleSignature</key>
20+
<string>????</string>
21+
<key>CFBundleVersion</key>
22+
<string>1</string>
23+
</dict>
24+
</plist>

0 commit comments

Comments
 (0)