aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-12 12:57:04 -0700
committerAllan Wang <me@allanwang.ca>2017-06-12 12:57:04 -0700
commit544d077a36c28e269efbe7950f3215801c6c42e8 (patch)
treefccd5c8cc4a9817bc49323b242b7eeaf4c1cc9bf /README.md
parent0063fde0bfab653e9b078e22fce93de2378ef4f0 (diff)
downloadkau-544d077a36c28e269efbe7950f3215801c6c42e8.tar.gz
kau-544d077a36c28e269efbe7950f3215801c6c42e8.tar.bz2
kau-544d077a36c28e269efbe7950f3215801c6c42e8.zip
Update readme
Diffstat (limited to 'README.md')
-rw-r--r--README.md30
1 files changed, 15 insertions, 15 deletions
diff --git a/README.md b/README.md
index b91470d..30cfe67 100644
--- a/README.md
+++ b/README.md
@@ -2,13 +2,13 @@
Kotlin Android Utils
-<!--Current Release 0.1-->
+<!--Current Release v1.0-->
This library contains small helper functions used throughout almost all of my other projects. The goal is to make common interactions executable in a single line.
------------
-Capsule is available on JitPack
+KAU is available on JitPack
[![](https://jitpack.io/v/ca.allanwang/kau.svg)](https://jitpack.io/#ca.allanwang/kau)
@@ -16,10 +16,10 @@ To apply, add the following to your root build.gradle:
```gradle
allprojects {
- repositories {
- ...
- maven { url "https://jitpack.io" }
- }
+ repositories {
+ ...
+ maven { url "https://jitpack.io" }
+ }
}
```
@@ -27,7 +27,7 @@ And add the following dependencies (You can use a specific version, commit, or -
```gradle
dependencies {
- compile 'ca.allanwang:kau:v0.1'
+ compile 'ca.allanwang:kau:v1.0'
}
```
@@ -48,17 +48,17 @@ A typical SharedPreference contains items that look like so:
```Java
class MyPrefs {
- public static final String TEXT_COLOR = "TEXT_COLOR";
+ public static final String TEXT_COLOR = "TEXT_COLOR";
- private static SharedPreference prefs = ...
+ private static SharedPreference prefs = ...
- public static void setTextColor(int color) {
- prefs.edit().putInt(TEXT_COLOR, color).apply();
- }
+ public static void setTextColor(int color) {
+ prefs.edit().putInt(TEXT_COLOR, color).apply();
+ }
- public static int getTextColor() {
- prefs.getInt(TEXT_COLOR, Color.WHITE);
- }
+ public static int getTextColor() {
+ prefs.getInt(TEXT_COLOR, Color.WHITE);
+ }
}
```