Skip to content

Commit

Permalink
Merge pull request #244 from getappbox/develop
Browse files Browse the repository at this point in the history
Fix app is not installing due to invalid dropbox direct download URL
  • Loading branch information
vineetchoudhary authored May 4, 2022
2 parents 629c8c4 + dad0cf5 commit ff01f0e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
8 changes: 4 additions & 4 deletions AppBox.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@
CODE_SIGN_ENTITLEMENTS = AppBox/AppBox.entitlements;
CODE_SIGN_IDENTITY = "Mac Developer";
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 5;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 3PQ7E4L589;
ENABLE_APP_SANDBOX = YES;
ENABLE_HARDENED_RUNTIME = YES;
Expand Down Expand Up @@ -1253,7 +1253,7 @@
LD_DYLIB_INSTALL_NAME = "";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.11;
MARKETING_VERSION = 3.0.0;
MARKETING_VERSION = 3.0.1;
PRODUCT_BUNDLE_IDENTIFIER = com.developerinsider.AppBox;
PRODUCT_NAME = "$(TARGET_NAME)";
USER_HEADER_SEARCH_PATHS = "$(PROJECT_DIR)";
Expand All @@ -1268,7 +1268,7 @@
CODE_SIGN_ENTITLEMENTS = AppBox/AppBox.entitlements;
CODE_SIGN_IDENTITY = "Mac Developer";
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 5;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 3PQ7E4L589;
ENABLE_APP_SANDBOX = YES;
ENABLE_HARDENED_RUNTIME = YES;
Expand Down Expand Up @@ -1299,7 +1299,7 @@
LD_DYLIB_INSTALL_NAME = "";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.11;
MARKETING_VERSION = 3.0.0;
MARKETING_VERSION = 3.0.1;
PRODUCT_BUNDLE_IDENTIFIER = com.developerinsider.AppBox;
PRODUCT_NAME = "$(TARGET_NAME)";
USER_HEADER_SEARCH_PATHS = "$(PROJECT_DIR)";
Expand Down
5 changes: 4 additions & 1 deletion AppBox/Common/UploadManager/UploadManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,9 @@ -(void)handleSharedURLResult:(NSString *)url{
//Create manifest file with share IPA url and upload manifest file
if (self.dbFileType == DBFileTypeIPA) {
NSString *shareableLink = url;
shareableLink = [shareableLink stringByReplacingOccurrencesOfString:@"https://www.dropbox.com" withString:abDropBoxDirectDownload];
shareableLink = [shareableLink stringByReplacingOccurrencesOfString:@"https://dropbox.com" withString:abDropBoxDirectDownload];
shareableLink = [shareableLink substringToIndex:shareableLink.length-5];
self.project.ipaFileDBShareableURL = [NSURL URLWithString:shareableLink];
[self.project createManifestWithIPAURL:self.project.ipaFileDBShareableURL completion:^(NSURL *manifestURL) {
strongify(self);
Expand All @@ -649,7 +652,7 @@ -(void)handleSharedURLResult:(NSString *)url{
}
[Common showAlertWithTitle:@"Error" andMessage:@"Unable to create manifest file!!"];
self.errorBlock(nil, YES);
}else{
} else {
//change file type and upload manifest
self.dbFileType = DBFileTypeManifest;
[self dbUploadFile:manifestURL.resourceSpecifier to:self.project.dbManifestFullPath.absoluteString mode:[[DBFILESWriteMode alloc] initWithOverwrite]];
Expand Down
4 changes: 4 additions & 0 deletions AppBox/ViewController/HomeViewController/HomeViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ -(void)updateViewState{
[textFieldEmail setEnabled:enable];
[textFieldMessage setEnabled:enable];

//Reset text field content
[textFieldEmail setStringValue: enable ? textFieldEmail.stringValue : abEmptyString];
[textFieldMessage setStringValue: enable ? textFieldMessage.stringValue : abEmptyString];

//Just for confirm changes
[self textFieldMailValueChanged:textFieldEmail];
[self textFieldDevMessageValueChanged:textFieldMessage];
Expand Down

0 comments on commit ff01f0e

Please sign in to comment.