mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-10 15:49:36 +08:00
Binary hash w/o assets
This commit is contained in:
@@ -175,15 +175,19 @@ NSString * const ManifestFolderPrefix = @"CodePush";
|
||||
}
|
||||
|
||||
binaryHashDictionary = [NSMutableDictionary dictionary];
|
||||
|
||||
NSString *assetsPath = [CodePushPackage getBinaryAssetsPath];
|
||||
NSMutableArray *manifest = [NSMutableArray array];
|
||||
[self addContentsOfFolderToManifest:assetsPath
|
||||
pathPrefix:[NSString stringWithFormat:@"%@/%@", [self manifestFolderPrefix], @"assets"]
|
||||
manifest:manifest
|
||||
error:error];
|
||||
if (*error) {
|
||||
return nil;
|
||||
|
||||
// If the app is using assets, then add
|
||||
// them to the generated content manifest.
|
||||
NSString *assetsPath = [CodePushPackage getBinaryAssetsPath];
|
||||
if ([[NSFileManager defaultManager] fileExistsAtPath:assetsPath]) {
|
||||
[self addContentsOfFolderToManifest:assetsPath
|
||||
pathPrefix:[NSString stringWithFormat:@"%@/%@", [self manifestFolderPrefix], @"assets"]
|
||||
manifest:manifest
|
||||
error:error];
|
||||
if (*error) {
|
||||
return nil;
|
||||
}
|
||||
}
|
||||
|
||||
NSData *jsBundleContents = [NSData dataWithContentsOfURL:binaryBundleUrl];
|
||||
|
||||
Reference in New Issue
Block a user