diff --git a/AppBox.xcodeproj/project.pbxproj b/AppBox.xcodeproj/project.pbxproj index e6add5bc..38776dc5 100644 --- a/AppBox.xcodeproj/project.pbxproj +++ b/AppBox.xcodeproj/project.pbxproj @@ -339,9 +339,9 @@ E1CFC65B1D7E7FD9005872BE /* Common */ = { isa = PBXGroup; children = ( + E16018F11DEC0EB700E3A377 /* Constants.h */, E1CFC65C1D7E7FEA005872BE /* Common.h */, E1CFC65D1D7E7FEA005872BE /* Common.m */, - E16018F11DEC0EB700E3A377 /* Constants.h */, E18DCB1B1DFED95000BD7F11 /* UserData.h */, E18DCB1C1DFED95000BD7F11 /* UserData.m */, E1A3965B1E040C9E0065FC7F /* NetworkHandler.h */, diff --git a/AppBox/Base.lproj/Main.storyboard b/AppBox/Base.lproj/Main.storyboard index 21a2c116..7a5dabdb 100644 --- a/AppBox/Base.lproj/Main.storyboard +++ b/AppBox/Base.lproj/Main.storyboard @@ -364,11 +364,11 @@ - + - + @@ -423,11 +423,11 @@ + @@ -584,6 +594,7 @@ + @@ -599,6 +610,7 @@ + @@ -666,7 +678,7 @@ - + diff --git a/AppBox/Common/Constants.h b/AppBox/Common/Constants.h index 0063a0a1..997c66f5 100644 --- a/AppBox/Common/Constants.h +++ b/AppBox/Common/Constants.h @@ -21,6 +21,10 @@ //notification #define SessionLogUpdated @"SessionLogUpdated" +//messages +#define KeepSameLinkHelpTitle @"What is keep same link for all future upload?" +#define KeepSameLinkHelpMessage @"This feature will keep same short url for all future build/ipa uploaded with same bundle identifier, this means old build/ipa url will replaced by new ipa file. You can change the link by changing the Dropbox app folder name below. \n\nWe are working on this feature, Once we fineshed this you will be able to install previous build/ipa also." + //enums typedef enum : NSUInteger { diff --git a/AppBox/ViewController/HomeViewController/HomeViewController.m b/AppBox/ViewController/HomeViewController/HomeViewController.m index b81cccce..2e61342c 100644 --- a/AppBox/ViewController/HomeViewController/HomeViewController.m +++ b/AppBox/ViewController/HomeViewController/HomeViewController.m @@ -10,7 +10,7 @@ static NSString *const UNIQUE_LINK_SHARED = @"uniqueLinkShared"; static NSString *const UNIQUE_LINK_SHORT = @"uniqueLinkShort"; -static NSString *const FILE_NAME_UNIQUE_JSON = @"UniqueLink.json"; +static NSString *const FILE_NAME_UNIQUE_JSON = @"appinfo.json"; @implementation HomeViewController{ XCProject *project; @@ -102,7 +102,11 @@ - (IBAction)ipaFilePathHandle:(NSPathControl *)sender { } - (IBAction)buttonUniqueLinkTapped:(NSButton *)sender{ - //NOT required + [textFieldBundleIdentifier setEnabled:(sender.state == NSOnState)]; +} + +- (IBAction)buttonSameLinkHelpTapped:(NSButton *)sender { + [Common showAlertWithTitle:KeepSameLinkHelpTitle andMessage:KeepSameLinkHelpMessage]; } @@ -133,7 +137,9 @@ - (IBAction)textFieldMailValueChanged:(NSTextField *)sender { //developer message text field - (IBAction)textFieldDevMessageValueChanged:(NSTextField *)sender { - [UserData setUserMessage:sender.stringValue]; + if (sender.stringValue.length > 0){ + [UserData setUserMessage:sender.stringValue]; + } } #pragma mark → Final Action Button (Build/IPA) @@ -700,12 +706,13 @@ -(void)enableMailField:(BOOL)enable{ [textFieldMessage setEnabled:enable]; //Get last time valid data - [textFieldEmail setStringValue:[UserData userEmail]]; - [textFieldMessage setStringValue:[UserData userMessage]]; + [textFieldEmail setStringValue: enable ? [UserData userEmail] : @""]; + [textFieldMessage setStringValue: enable ? [UserData userMessage] : @""]; //Just for confirm changes [self textFieldMailValueChanged:textFieldEmail]; [self textFieldDevMessageValueChanged:textFieldMessage]; + } #pragma mark - TabView Delegate