Skip to content

[docs] Reduce repetitive content and simplify examplesΒ #315

@psnet

Description

@psnet
Original Content

Dont want to hurt anyone, but there some problems in docs.

Docs of this package has a lot of repetitive information can be found in other docs, it is very hard to read the same text again and again on different doc pages feeling maybe something changed in it otherwise why it will be duplicated?

I think need to make prerequisites where explain about common strict reqs: product id, pub in store to test, usage of real device, kotlin version etc and no more need to tell this info again and again on every page.

Examples

Too many too long examples with unnecessary code. Build simpler "quick start" with minimal info: one code for one time purchases, another for subscription etc.
Why examples have mixed products combined ALL together in same array?! Then you filter that array.

Overengineered and overheaded examples so hard to read.

Afterwards

Simplicity is not in word of docs, but in short example: init, perform, complete.

Right now is so hard to navigate documentation.

P.S. Again: dont want to hurt anyone


Overview

The documentation has structural issues that make it difficult to follow and maintain. There's significant repetition of common requirements across multiple pages, and the examples are overly complex.

Problem 1: Repetitive Content

Many pages repeat the same prerequisite information:

  • Product ID requirements
  • Publishing to store for testing
  • Real device usage requirements
  • Kotlin version compatibility

Suggested Solution: Create a single "Prerequisites" section that covers all common strict requirements once, then reference it from other pages instead of repeating the information.

Problem 2: Overly Complex Examples

The current examples are difficult to follow:

  • Too much unnecessary code
  • Multiple product types mixed together in a single array, then filtered
  • Overengineered approach that obscures the core logic

Suggested Solution: Provide simpler, focused examples:

  • One minimal example for one-time purchases
  • One minimal example for subscriptions
  • Each example should show: init β†’ perform β†’ complete

Problem 3: Navigation and Readability

The documentation is hard to navigate overall. Simplifying examples and reducing repetition should improve this significantly.

Additional Notes

This feedback is constructive and appreciated. These changes would make the documentation more maintainable and user-friendly.


πŸ€– Formatted by gitdog.dev

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions