-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[in_app_purchase] improve readme #3731
Conversation
Before I can do a detailed review of this README, I need some info:
|
@kwalrath Here are my answers to the questions :)
We don't have a Preparation section in the main README. It's only in the example app README, the purpose is to teach users how to setup and run the example app.
Getting Started is more than just Example code, due to the speciality of the plugin, there are a lot of initial setup need to be done in the GooglePlay console and App Store Connect before the code can work.
I renamed the Development to Contributing to this plugin so the purpose might be a little more clear? It is for contributors.
I think you are right. It can be a second paragraph in the section # In App Purchase, right before ## Features. WDTY?
in-app purchase
underlying store . |
@kwalrath friendly ping regarding my last response :) |
The gifs seem really large — both in number of bytes and in visual size. @jayoung-lee & @filiph, what do you think a good size would be? |
I manually set the height to be 400 in code, it looks ok to me, if you guys like it, I can update the gif file so it is smaller by default. |
400 px high lgtm |
I'm working on a new version of the top README and have a couple of questions:
|
links to API docs sounds good to me.
PlayStore is the PlayStore on android phones: https://play.google.com/store |
|
I made a bunch of edits, some of which are particular to this README, and some of which are more generally applicable. Here are the more interesting ones that might apply to all package READMEs: * DON'T have a title, because I think it looks better on pub.dev to not have a title (e.g. compare https://pub.dev/packages/yaml with https://pub.dev/packages/crypto). * DO start with a one-line description, followed (if the package has a dedicated repo) by badges. * DO use hand-created TOCs if necessary for longer pages/sections. * DO mention terms that people might use to search for your package (but after that, be consistent about which terms you use). Also, some other changes that aren't particular to READMEs: * Keep line length < 80 chars. * Format code correctly. * Supply alt text for images. * Be succinct. Don't say please. Use consistent terminology. And other things that are [common recommendations for developer docs](https://developers.google.com/style/highlights). There's a PENDING note where I happened to notice some code that seemed to be duplicated; we need to fix that before committing this. I tested the page in a github-style markdown previewer, and also in the GitHub Flavored Markdown mode of https://dart-lang.github.io/markdown (which is what I think/hope pub.dev uses). Please let me know what you think.
@kwalrath Yeah, we shouldn't code font the "PlayStore". |
I think we just need to fix the _listenToPurchaseUpdated/_handlePurchaseUpdates code and remove that PENDING note, and then this PR is good to go! |
Done! |
@kwalrath @jayoung-lee Thanks for helping out, this looks pretty good now, could you please take a final review? |
@cyanglaz it looks like the "[PENDING: We already showed code like this above (except the handler was called _listenToPurchaseUpdated). Copy this up there and remove from here?]" text is still there, and it hasn't been completely addressed. The code is still in two places, with different handlers (e.g. onDone & onError are only in the second example), so it's a bit confusing what exactly your code should look like. |
@kwalrath Sorry I missed that part. I copied the second one to the top. Fixed! |
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.
lgtm once you fix the order of the usage toc and change that numbered list to a bulleted one (since it isn't a sequence: https://developers.google.com/style/highlights#formatting,-punctuation,-and-organization). Can't believe I didn't notice that before!
Co-authored-by: Kathy Walrath <kathyw@google.com>
Co-authored-by: Kathy Walrath <kathyw@google.com>
This improves the readme of the plugin.
Upcoming in a separate PR: video demos for the plugin.
Pre-launch Checklist
[shared_preferences]
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.