๐ฑ I'm an Android software engineer @square
๐ค My side projects are focused on automation and containerization (Home Assistant, Docker, etc)
๐ฑ Iโm currently learning Swift and Python
A simple library to allow the use of Kotlin Delegates with shared preferences
License: Apache License 2.0
๐ฑ I'm an Android software engineer @square
๐ค My side projects are focused on automation and containerization (Home Assistant, Docker, etc)
๐ฑ Iโm currently learning Swift and Python
Right now a property must have configuration. Helpful extensions with reasonable defaults should be considered.
Right now, I'm thinking the best option is to make a pattern such as
var someTrackableStat by preferences.stringDelegate()
In this extension function, a key and default value can be set.
Every push to mainline and PR should trigger a build with GitHub actions to verify compile.
Connected tests should run as well as coverage reporting.
There are major drawbacks to using a preference key derived from a variable name.
For example, you can not rename your variable without the data being stored getting "lost". You could easily set the default key to the old variable name.
One option I've thought about is making the key required as part of the extension method setting it up.
Currently only String and Int are covered. The following remain.
CodeFactor found an issue: This comment contains 'TODO:' that has been defined as forbidden in detekt.
It's currently on:
SharedPreferenceDelegate\src\main\java\com\simonsickle\sharedpreferencedelegate\SharedPreferenceDelegate.kt:88
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.