File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -175,15 +175,19 @@ + (NSString *)getHashForBinaryContents:(NSURL *)binaryBundleUrl
175
175
}
176
176
177
177
binaryHashDictionary = [NSMutableDictionary dictionary ];
178
+ NSMutableArray *manifest = [NSMutableArray array ];
178
179
180
+ // If the app is using assets, then add
181
+ // them to the generated content manifest.
179
182
NSString *assetsPath = [CodePushPackage getBinaryAssetsPath ];
180
- NSMutableArray *manifest = [NSMutableArray array ];
181
- [self addContentsOfFolderToManifest: assetsPath
182
- pathPrefix: [NSString stringWithFormat: @" %@ /%@ " , [self manifestFolderPrefix ], @" assets" ]
183
- manifest: manifest
184
- error: error];
185
- if (*error) {
186
- return nil ;
183
+ if ([[NSFileManager defaultManager ] fileExistsAtPath: assetsPath]) {
184
+ [self addContentsOfFolderToManifest: assetsPath
185
+ pathPrefix: [NSString stringWithFormat: @" %@ /%@ " , [self manifestFolderPrefix ], @" assets" ]
186
+ manifest: manifest
187
+ error: error];
188
+ if (*error) {
189
+ return nil ;
190
+ }
187
191
}
188
192
189
193
NSData *jsBundleContents = [NSData dataWithContentsOfURL: binaryBundleUrl];
You can’t perform that action at this time.
0 commit comments