skydoves / PreferenceRoom

:truck: Android processing library for managing SharedPreferences persistence efficiently and structurally.
Apache License 2.0
378 stars 26 forks source link

Sample project #17

Closed ChristianKleineidam closed 5 years ago

ChristianKleineidam commented 5 years ago

Currently, there's no sample project which makes it hard to understand how to use the library. It would be great to have a small sample project. Especially one in kotlin.

skydoves commented 5 years ago

@ChristianKleineidam Here are some demo & sample project which used PreferenceRoom. demo-kotlin, GithubFollows, All-in-One.

ChristianKleineidam commented 5 years ago

It's not a real sample project as it only builds when it's in the same dictionary (it's gradle values depend on being colocated).

skydoves commented 5 years ago

@ChristianKleineidam In kotlin project, you should add below dependencies on build.gradle(app) module.

implementation "com.github.skydoves:preferenceroom:1.1.8"
kapt"com.github.skydoves:preferenceroom-processor:1.1.8"

And here is sample project how to add the dependency to your kotlin project. (line 76~78).