Skip to content

Commit

Permalink
Merge branch 'release/1.6.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenVot committed Dec 5, 2018
2 parents 30c2349 + fb3e6af commit 5a6304a
Show file tree
Hide file tree
Showing 6 changed files with 135 additions and 1 deletion.
48 changes: 48 additions & 0 deletions BFUserFeedbackNavigationController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
//
// BFUserFeedbackViewController.h
// BugfenderSDK
//
// Created by Rubén Vázquez Otero on 15/10/2018.
// Copyright © 2018 Mobile Jazz. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BFUserFeedbackViewController.h"

NS_ASSUME_NONNULL_BEGIN

@interface BFUserFeedbackNavigationController : UINavigationController



/**
Root View Controller containing a table with the textfields used to gather feedback
*/
@property (nonatomic, strong) BFUserFeedbackViewController *feedbackViewController;

/**
Provides a View Controller to gather the feedback of the users and sent it to Bugfender.
The returning BFUserFeedbackNavigationController has to be presented modally and it has it's own Send and Cancel buttons
Additionally, it is possible to customize the aspect of the screen accessing BFUserFeedbackNavigationController.feedbackViewController
@param title Title for the navigation bar
@param hint Short text at the beginning
@param subjectPlaceholder placeholder in the subject textfield
@param messagePlaceholder placeholder in the message textfield
@param sendButtonTitle title for the send button in the navigation bar
@param cancelButtonTitle title for the cancel button
@return BFUserFeedbackNavigationController containing a BFUserFeedbackViewController as root view controller
*/
+ (BFUserFeedbackNavigationController *)userFeedbackViewControllerWithTitle:(NSString *)title
hint:(NSString *)hint
subjectPlaceholder:(NSString *)subjectPlaceholder
messagePlaceholder:(NSString *)messagePlaceholder
sendButtonTitle:(NSString *)sendButtonTitle
cancelButtonTitle:(NSString *)cancelButtonTitle
completion:(void (^)(BOOL feedbackSent))completionBlock;


@end

NS_ASSUME_NONNULL_END
81 changes: 81 additions & 0 deletions BFUserFeedbackViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
//
// BFUserFeedbackViewController.h
// BugfenderSDK
//
// Created by Rubén Vázquez Otero on 16/10/2018.
// Copyright © 2018 Mobile Jazz. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface BFUserFeedbackViewController : UITableViewController {

}

#pragma mark - Background colors

/**
The background of the view controller
*/
@property (nonatomic, strong) UIColor *mainBackgroundColor;

/**
Background for textfields
*/
@property (nonatomic, strong) UIColor *secondaryBackgroundColor;

#pragma mark - Hint

/**
The hint is the upper text in the view controller.
Use the hint give instructions to your users or just to thank them for providing feedback
*/
@property (nonatomic, strong) NSString *hint;

@property (nonatomic, strong) UIFont *hintFont;

@property (nonatomic, strong) UIColor *hintFontColor;

#pragma mark - Subject

/**
The subject of the feedback.
Remember to provide a placeholder
*/
@property (nonatomic, strong) UIFont *subjectFont;

@property (nonatomic, strong) UIColor *subjectFontColor;

@property (nonatomic, strong) UIColor *subjectPlaceholderFontColor;

@property (nonatomic, strong) NSString *subjectPlaceholder;

#pragma mark - Message
/**
The message of the feedback
Remember to provide a placeholder
*/
@property (nonatomic, strong) UIFont *messageFont;

@property (nonatomic, strong) UIColor *messageFontColor;

@property (nonatomic, strong) UIColor *messagePlaceholderFontColor;

@property (nonatomic, strong) NSString *messagePlaceholder;

#pragma mark - Actions

- (void)dismiss;

- (void)sendFeedback;

/**
Pass a block if you want to be notified after feedback was sent (or not)
*/
@property (nonatomic, copy) void (^completionBlock)(BOOL feedbackSent);

@end

NS_ASSUME_NONNULL_END
Binary file modified BugfenderSDK.framework/BugfenderSDK
Binary file not shown.
1 change: 1 addition & 0 deletions BugfenderSDK.framework/Headers/BugfenderSDK.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ NS_ASSUME_NONNULL_BEGIN
#define BFLibraryVersionNumber_1_5_5 47
#define BFLibraryVersionNumber_1_5_6 48
#define BFLibraryVersionNumber_1_6_0 49
#define BFLibraryVersionNumber_1_6_1 50

/**
* Current Bugfender version number.
Expand Down
2 changes: 1 addition & 1 deletion BugfenderSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'BugfenderSDK'
s.version = '1.6.0'
s.version = '1.6.1'
s.ios.deployment_target = '8.0'
s.license = { :type => 'Commercial', :text => 'See https://bugfender.com/terms-of-service/' }
s.summary = 'Bugfender: a mobile remote logger'
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.6.1
- Fixed crash when using the Bugfender User Feedback in Swift
- Improved return key type in the User Feedback textfields

# 1.6.0
- Featuring the new Bugfender User Feedback. A fast and easy way to gather feedback from the users
- Fixed swift bridges sending the full path of the files instead the filename
Expand Down

0 comments on commit 5a6304a

Please sign in to comment.