Repository navigation
Expand file tree
/
Copy pathXCFrameworkDefinition.m
More file actions
executable file
·53 lines (39 loc) · 1.6 KB
/
Copy pathXCFrameworkDefinition.m
File metadata and controls
executable file
·53 lines (39 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
////////////////////////////////////////////////////////////////////////////////
//
// JASPER BLUES
// Copyright 2012 Jasper Blues
// All Rights Reserved.
//
// NOTICE: Jasper Blues permits you to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////
#import "XCFrameworkDefinition.h"
@implementation XCFrameworkDefinition
@synthesize filePath = _filePath;
@synthesize copyToDestination = _copyToDestination;
/* ====================================================================================================================================== */
#pragma mark - Class Methods
+ (XCFrameworkDefinition*)frameworkDefinitionWithFilePath:(NSString*)filePath copyToDestination:(BOOL)copyToDestination
{
return [[XCFrameworkDefinition alloc] initWithFilePath:filePath copyToDestination:copyToDestination];
}
/* ====================================================================================================================================== */
#pragma mark - Initialization & Destruction
- (id)initWithFilePath:(NSString*)filePath copyToDestination:(BOOL)copyToDestination
{
self = [super init];
if (self)
{
_filePath = [filePath copy];
_copyToDestination = copyToDestination;
}
return self;
}
/* ====================================================================================================================================== */
#pragma mark - Interface Methods
- (NSString*)name
{
return [_filePath lastPathComponent];
}
@end