Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit c895b4c

Browse files
committed
remove 'get'
1 parent 3ab1fa0 commit c895b4c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

ios/CodePush/CodePush.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ failCallback:(void (^)(NSError *err))failCallback;
115115
+ (NSString *)findMainBundleInFolder:(NSString *)folderPath
116116
error:(NSError **)error;
117117

118-
+ (NSString *)getAssetsFolderName;
118+
+ (NSString *)assetsFolderName;
119119
+ (NSString *)getHashForBinaryContents:(NSURL *)binaryBundleUrl
120120
error:(NSError **)error;
121121

122-
+ (NSString *)getManifestFolderPrefix;
122+
+ (NSString *)manifestFolderPrefix;
123123
+ (NSString *)modifiedDateStringOfFileAtURL:(NSURL *)fileURL;
124124

125125
+ (BOOL)verifyHashForDiffUpdate:(NSString *)finalUpdateFolder

ios/CodePush/CodePushPackage.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ @implementation CodePushPackage
1515

1616
+ (NSString *)getBinaryAssetsPath
1717
{
18-
return [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:[CodePushUpdateUtils getAssetsFolderName]];
18+
return [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:[CodePushUpdateUtils assetsFolderName]];
1919
}
2020

2121
+ (NSString *)getCodePushPath
@@ -275,7 +275,7 @@ + (void)downloadPackage:(NSDictionary *)updatePackage
275275

276276
if (currentPackageFolderPath == nil) {
277277
// Currently running the binary version, copy files from the bundled resources
278-
NSString *newUpdateCodePushPath = [newUpdateFolderPath stringByAppendingPathComponent:[CodePushUpdateUtils getManifestFolderPrefix]];
278+
NSString *newUpdateCodePushPath = [newUpdateFolderPath stringByAppendingPathComponent:[CodePushUpdateUtils manifestFolderPrefix]];
279279
[[NSFileManager defaultManager] createDirectoryAtPath:newUpdateCodePushPath
280280
withIntermediateDirectories:YES
281281
attributes:nil
@@ -286,7 +286,7 @@ + (void)downloadPackage:(NSDictionary *)updatePackage
286286
}
287287

288288
[[NSFileManager defaultManager] copyItemAtPath:[self getBinaryAssetsPath]
289-
toPath:[newUpdateCodePushPath stringByAppendingPathComponent:[CodePushUpdateUtils getAssetsFolderName]]
289+
toPath:[newUpdateCodePushPath stringByAppendingPathComponent:[CodePushUpdateUtils assetsFolderName]]
290290
error:&error];
291291
if (error) {
292292
failCallback(error);

ios/CodePush/CodePushUpdateUtils.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ + (NSString *)findMainBundleInFolder:(NSString *)folderPath
150150
return nil;
151151
}
152152

153-
+ (NSString *)getAssetsFolderName
153+
+ (NSString *)assetsFolderName
154154
{
155155
return AssetsFolderName;
156156
}
@@ -178,7 +178,7 @@ + (NSString *)getHashForBinaryContents:(NSURL *)binaryBundleUrl
178178
NSString *assetsPath = [CodePushPackage getBinaryAssetsPath];
179179
NSMutableArray *manifest = [NSMutableArray array];
180180
[self addContentsOfFolderToManifest:assetsPath
181-
pathPrefix:[NSString stringWithFormat:@"%@/%@", [self getManifestFolderPrefix], @"assets"]
181+
pathPrefix:[NSString stringWithFormat:@"%@/%@", [self manifestFolderPrefix], @"assets"]
182182
manifest:manifest
183183
error:error];
184184
if (*error) {
@@ -187,7 +187,7 @@ + (NSString *)getHashForBinaryContents:(NSURL *)binaryBundleUrl
187187

188188
NSData *jsBundleContents = [NSData dataWithContentsOfURL:binaryBundleUrl];
189189
NSString *jsBundleContentsHash = [self computeHashForData:jsBundleContents];
190-
[manifest addObject:[[NSString stringWithFormat:@"%@/%@:", [self getManifestFolderPrefix], [binaryBundleUrl lastPathComponent]] stringByAppendingString:jsBundleContentsHash]];
190+
[manifest addObject:[[NSString stringWithFormat:@"%@/%@:", [self manifestFolderPrefix], [binaryBundleUrl lastPathComponent]] stringByAppendingString:jsBundleContentsHash]];
191191
binaryHash = [self computeFinalHashFromManifest:manifest error:error];
192192

193193
// Cache the hash in user preferences. This assumes that the modified date for the
@@ -198,7 +198,7 @@ + (NSString *)getHashForBinaryContents:(NSURL *)binaryBundleUrl
198198
return binaryHash;
199199
}
200200

201-
+ (NSString *)getManifestFolderPrefix
201+
+ (NSString *)manifestFolderPrefix
202202
{
203203
return ManifestFolderPrefix;
204204
}

0 commit comments

Comments
 (0)