Stanley

Additional

Language
Java
Version
1.0.1 (Aug 14, 2015)
Created
May 7, 2015
Updated
Feb 11, 2016 (Retired)
Owner
Brian Melton-Grace (iambmelt)
Contributor
Brian Melton-Grace (iambmelt)
1
Activity
Badge
Generate
Download
Source code

Stanley

**DEPRECATED - I'm not maintaining this anymore

Convenient stashing of simple data formats on Android with SharedPreferences

Example

Define an interface

@Proxy(name = "Prefs", mode = Context.MODE_PRIVATE)
public interface Person {
    @Accessor
    void setLastName(String name);
}

Make an instance

Person elvis = new ProxyGenerator().create(context, Person.class);

And go!

elvis.setLastName("presley");

Download

compile 'com.brianjmelton:stanley:1.0.1'

License

Copyright 2015 Brian Melton

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.