This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 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
175175 }
176176
177177 binaryHashDictionary = [NSMutableDictionary dictionary ];
178+ NSMutableArray *manifest = [NSMutableArray array ];
178179
180+ // If the app is using assets, then add
181+ // them to the generated content manifest.
179182 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+ }
187191 }
188192
189193 NSData *jsBundleContents = [NSData dataWithContentsOfURL: binaryBundleUrl];
You can’t perform that action at this time.
0 commit comments