Skip to content

Commit 197697a

Browse files
committed
Getting rid of CCPackage_private.h (+1 squashed commit)
Squashed commits: [bc26607] Getting rid of CCPackageManager_private.h This one was easy code was already in CCPackageManager.m
1 parent d47ee4f commit 197697a

9 files changed

+10
-44
lines changed

cocos2d-ext/CCPackages/CCPackage.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,21 @@
4141
* @since v3.3 and later
4242
* @see standardIdentifier
4343
*/
44-
@property (nonatomic, copy, readonly) NSString *name;
44+
@property (nonatomic, copy, readwrite) NSString *name;
4545

4646
/**
4747
* Resolution of the package, e.g. tablethd, phonehd, etc.
4848
* @since v3.3 and later
4949
* @see standardIdentifier
5050
*/
51-
@property (nonatomic, copy, readonly) NSString *resolution;
51+
@property (nonatomic, copy, readwrite) NSString *resolution;
5252

5353
/**
5454
* OS of the package e.g. iOS, Mac
5555
* @since v3.3 and later
5656
* @see standardIdentifier
5757
*/
58-
@property (nonatomic, copy, readonly) NSString *os;
58+
@property (nonatomic, copy, readwrite) NSString *os;
5959

6060
/**
6161
* Returns an identifier of the package: The pattern is `<NAME>-<OS>-<RESOLUTION>`. Example: `DLC_Bundle-iOS-phonehd`.
@@ -72,15 +72,15 @@
7272
* The remote URL of the package
7373
* @since v3.3 and later
7474
*/
75-
@property (nonatomic, copy, readonly) NSURL *remoteURL;
75+
@property (nonatomic, copy, readwrite) NSURL *remoteURL;
7676

7777
/**
7878
* The relative local URL where the package is installed. The URL is relative to the caches folder.
7979
* This value will be initially nil and set only if installation was successful.
8080
* @since v3.3 and later
8181
* @see installFullURL
8282
*/
83-
@property (nonatomic, copy, readonly) NSURL *installRelURL;
83+
@property (nonatomic, copy, readwrite) NSURL *installRelURL;
8484

8585
/**
8686
* Full local URL where the package is installed.
@@ -95,13 +95,13 @@
9595
* is used which won't be accessible.
9696
* @since v3.3 and later
9797
*/
98-
@property (nonatomic, copy, readonly) NSURL *localDownloadURL;
98+
@property (nonatomic, copy, readwrite) NSURL *localDownloadURL;
9999

100100
/**
101101
* Local URL of the folder the package is unzipped to
102102
* @since v3.3 and later
103103
*/
104-
@property (nonatomic, copy, readonly) NSURL *unzipURL;
104+
@property (nonatomic, copy, readwrite) NSURL *unzipURL;
105105

106106
/**
107107
* Name of the folder inside the unzip folder. A zipped package is supposed to contain a folder named
@@ -110,22 +110,22 @@
110110
* during installation.
111111
* @since v3.3 and later
112112
*/
113-
@property (nonatomic, copy, readonly) NSString *folderName;
113+
@property (nonatomic, copy, readwrite) NSString *folderName;
114114

115115
/** @name Accessing Package Status */
116116

117117
/**
118118
* Whether or not the the package should be enabled in cocos2d after installation.
119119
* @since v3.3 and later
120120
*/
121-
@property (nonatomic, readonly) BOOL enableOnDownload;
121+
@property (nonatomic, readwrite) BOOL enableOnDownload;
122122

123123
/**
124124
* The current status of the package
125125
* @since v3.3 and later
126126
* @see statusToString
127127
*/
128-
@property (nonatomic, readonly) CCPackageStatus status;
128+
@property (nonatomic, readwrite) CCPackageStatus status;
129129

130130
/**
131131
* Returns the status as a string.

cocos2d-ext/CCPackages/CCPackage.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#import <Foundation/Foundation.h>
22
#import "CCPackage.h"
33
#import "CCPackageHelper.h"
4-
#import "CCPackage_private.h"
54

65
static NSUInteger PACKAGE_SERIALIZATION_VERSION = 1;
76
static NSString *const PACKAGE_SERIALIZATION_KEY_NAME = @"name";

cocos2d-ext/CCPackages/CCPackageCocos2dEnabler.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#import "CCPackage.h"
44
#import "CCFileUtils.h"
55
#import "CCSpriteFrameCache.h"
6-
#import "CCPackage_private.h"
76
#import "CCPackageHelper.h"
87

98

cocos2d-ext/CCPackages/CCPackageDownload.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#import "CCPackage.h"
66
#import "CCPackageConstants.h"
77
#import "ccMacros.h"
8-
#import "CCPackage_private.h"
98
#import "CCFileUtils.h"
109

1110
@interface CCPackageDownload()

cocos2d-ext/CCPackages/CCPackageDownloadManager.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#import "CCPackageDownloadManagerDelegate.h"
55
#import "CCPackageConstants.h"
66
#import "ccMacros.h"
7-
#import "CCPackage_private.h"
87

98

109
@interface CCPackageDownloadManager()

cocos2d-ext/CCPackages/CCPackageInstaller.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#import "CCPackageConstants.h"
33
#import "CCPackage.h"
44
#import "ccMacros.h"
5-
#import "CCPackage_private.h"
65
#import "CCPackageHelper.h"
76

87

cocos2d-ext/CCPackages/CCPackageManager.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#import "CCPackageCocos2dEnabler.h"
99
#import "ccMacros.h"
1010
#import "CCPackageHelper.h"
11-
#import "CCPackage_private.h"
1211
#import "CCDirector.h"
1312

1413

cocos2d-ext/CCPackages/CCPackageManager_private.h

Lines changed: 0 additions & 10 deletions
This file was deleted.

cocos2d-ext/CCPackages/CCPackage_private.h

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)