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

Commit e4dc02f

Browse files
committed
Removing 'Name' suffix
1 parent 46cdaf8 commit e4dc02f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

CodePush.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
+ (NSURL *)bundleURL;
66

7-
+ (NSURL *)bundleURLForResourceName:(NSString *)resourceName;
7+
+ (NSURL *)bundleURLForResource:(NSString *)resourceName;
88

9-
+ (NSURL *)bundleURLForResourceName:(NSString *)resourceName
10-
withExtension:(NSString *)resourceExtension;
9+
+ (NSURL *)bundleURLForResource:(NSString *)resourceName
10+
withExtension:(NSString *)resourceExtension;
1111

1212
+ (NSString *)getDocumentsDirectory;
1313

CodePush.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ + (NSURL *)bundleURL
3030
return [self bundleURLForResourceName:@"main"];
3131
}
3232

33-
+ (NSURL *)bundleURLForResourceName:(NSString *)resourceName
33+
+ (NSURL *)bundleURLForResource:(NSString *)resourceName
3434
{
3535
return [self bundleURLForResourceName:resourceName
3636
withExtension:@"jsbundle"];
3737
}
3838

39-
+ (NSURL *)bundleURLForResourceName:(NSString *)resourceName
40-
withExtension:(NSString *)resourceExtension
39+
+ (NSURL *)bundleURLForResource:(NSString *)resourceName
40+
withExtension:(NSString *)resourceExtension
4141
{
4242
NSError *error;
4343
NSString *packageFile = [CodePushPackage getCurrentPackageBundlePath:&error];

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Once your Xcode project has been setup to build/link the CodePush plugin, you ne
7474
7575
This change configures your app to always load the most recent version of your app's JS bundle. On the initial launch, this will correspond to the file that was compiled with the app. However, after an update has been pushed via CodePush, this will return the location of the most recently installed update.
7676
77-
*NOTE: The `bundleURL` method assumes your app's JS bundle is named `main.jsbundle`. If you have configured your app to use a different file name, simply call the `bundleURLForResourceName:` method (which assumes you're using the `.jsbundle` extension) or `bundleURLForResourceName:withExtension:` method instead, in order to overwrite that default behavior*
77+
*NOTE: The `bundleURL` method assumes your app's JS bundle is named `main.jsbundle`. If you have configured your app to use a different file name, simply call the `bundleURLForResource:` method (which assumes you're using the `.jsbundle` extension) or `bundleURLForResource:withExtension:` method instead, in order to overwrite that default behavior*
7878
7979
To let the CodePush runtime know which deployment it should query for updates against, perform the following steps:
8080

0 commit comments

Comments
 (0)