-
Notifications
You must be signed in to change notification settings - Fork 41
Add a mechanism to specify dynamic key-value pairs in the prefill email body of a bug report #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e83ab73
to
86869c2
Compare
@@ -40,6 +51,9 @@ NS_ASSUME_NONNULL_BEGIN | |||
/// The email body that will be presented to the user when they compose a report. | |||
@property (nonatomic, copy) NSString *prefilledEmailBody; | |||
|
|||
/// The email body delegate, responsible for providing key/value pairs to include in the bug report at the time the bug is filed. | |||
@property (nullable, nonatomic) id <ARKEmailBugReporterEmailBodyAdditionsDelegate> emailBodyAdditionsDelegate; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be weak? I can see arguments for both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because there's the possibility of a retain cycle it should be weak. Good catch!
LGTM! We should probably write a test for what the email body looks like when there is no email body additions delegate and when there is one returning some keys and values. |
7e3ec3d
to
f9644ea
Compare
f9644ea
to
abe56f1
Compare
54be3ef
to
714abd3
Compare
@@ -368,6 +370,22 @@ - (void)_dismissEmailComposeWindow; | |||
} | |||
} | |||
|
|||
- (NSMutableString *)_prefilledEmailBodyWithEmailBodyAdditions:(nullable NSDictionary *)emailBodyAdditions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's beautiful!
Still good! |
Add a mechanism to specify dynamic key-value pairs in the prefill email body of a bug report
cc @shawnwelch @rhgills @mthole
This should allow us to stop setting the
prefilledEmailBody
at setup time, and start providing key/value pairs on-demand. This will allow us to easily provide the correct user token or wifi network (among other dynamic content) at bug file time.