Skip to content
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

Logging v2 part 1 strings #426

Merged
merged 8 commits into from Dec 30, 2020
Merged

Logging v2 part 1 strings #426

merged 8 commits into from Dec 30, 2020

Conversation

tiinanguyen
Copy link
Contributor

@tiinanguyen tiinanguyen commented Dec 18, 2020

This PR currently adds the following string files: AttributionStrings, ConfigureStrings, and PurchaserInfoStrings.

Part 2: #428
Part 3: #430
Additional log methods: #422

@tiinanguyen tiinanguyen marked this pull request as draft December 18, 2020 02:09
Copy link
Contributor Author

@tiinanguyen tiinanguyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only adding string files first. I also added a comment at the end of each string with the log method. Can I get a review on the names and respective logging method?

Copy link
Member

@aboedo aboedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking great! left some naming suggestions

@tiinanguyen tiinanguyen marked this pull request as ready for review December 22, 2020 03:45
RCLog(@"called post subscriber attributes with an empty attributes dict!");
RCWarnLog(@"%@", RCStrings.attribution.empty_subscriber_attributes);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do some of these do (@"%@", <string>); while others just pass it in directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aboedo The (@"%@", <string>); is to treat it as a string literal or else Xcode throws warnings. Others pass in directly have a string formatter and Xcode doesn't complain.

@tiinanguyen tiinanguyen merged commit 0eda629 into develop Dec 30, 2020
@tiinanguyen tiinanguyen deleted the Logging-v2-part-1-strings branch December 30, 2020 20:54
@aboedo aboedo added this to the 3.10.0 milestone Jan 5, 2021
@aboedo aboedo mentioned this pull request Jan 5, 2021
2 tasks
@aboedo aboedo mentioned this pull request Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants