Skip to content

Conversation

@jack-webb
Copy link

@jack-webb jack-webb commented Sep 8, 2022

Implements the following todo:

// TODO(zhuinden): move this into its own artifact later: `groupiex` (or rather, `groupie-ktx`)

With groupie-kotlin-android-extensions now deprecated, I've taken to removing it as a dependency in my projects. The module also includes the extension functions for plusAssign/minusAssign, which aren't deprecated, and I'd like to continue using.

This PR moves these extensions to a new module, groupie-ktx, so they can be depended upon without including the synthetics stuff. The existing groupie-kotlin-android-extensions now depends on this new groupie-ktx, to avoid duplicating code between the two.

@jack-webb jack-webb marked this pull request as draft September 8, 2022 16:02
Comment on lines 57 to 65
```kotlin
groupAdapter += HeaderItem()
groupAdapter += CommentItem()
groupAdapter.add(HeaderItem())
groupAdapter.add(CommentItem())

val section = Section()
section.setHeader(HeaderItem())
section.addAll(bodyItems)
groupAdapter += section
groupAdapter.add(section)
```
Copy link
Author

@jack-webb jack-webb Sep 9, 2022

Choose a reason for hiding this comment

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

AFAICT this part of the readme was wrong. groupie-kotlin-android-extensions wasn't mentioned before this point, so you wouldn't have the dependency necessary to use the overloaded functions.

@jack-webb jack-webb marked this pull request as ready for review September 9, 2022 14:29
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.

1 participant