Flipboard / psync
posted
Category: Gradle Plugin
Minimum SDK Level: Unknown :(

Badge

View in Github Github project information
Starred: 106
Forks: 4
Watchers: 18
Open Issues: 10

Snapshot pictures

No snapshot for this library yet.

Description

PSync is a gradle plugin for android projects to generate Java representations of xml preferences.

Some applications have a lot of preferences, each their own keys, default values, and more. These tend to be stored in xml files (under res/xml), and don't have any programmatic linking of their values. The result? You have to manually keep these values in sync with your Java code. Yikes!

We got tired of dealing with this at Flipboard. Our preference class ended up with 200+ lines of boilerplate at the top that we manually had to keep in sync, and it was becoming a nuisance. PSync was developed to resolve this, and we hope it helps you too