From 888d268bf8a35afc339cc48c19b1bd957e0f2240 Mon Sep 17 00:00:00 2001 From: Reed Date: Thu, 21 May 2020 11:58:23 +0800 Subject: [PATCH] Version 0.1.0 --- README.md | 22 +++++++++++++++++++++- dependencies.gradle | 4 ++-- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1a746df..5273f66 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,27 @@ Jetpack Compose supports dynamic theming and is a better alternative(in the futu ## Usage -1. [Try a snapshot from JitPack.](https://jitpack.io/#xyz.aprildown/Theme) +1. Install dependency: + + 1. Add the JitPack repository to your build file + + ```Groovy + allprojects { + repositories { + ... + maven { url 'https://jitpack.io' } + } + } + ``` + + 1. Add the dependency + + ```Groovy + dependencies { + implementation 'xyz.aprildown:Theme:0.1.0' + } + ``` + 1. Define six theme colors: ```XML diff --git a/dependencies.gradle b/dependencies.gradle index cbb97ac..71d2a99 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -8,8 +8,8 @@ ext { min_sdk : 21, target_sdk : 29, - version_code : 1, - version_name : '0.0.1', + version_code : 10, + version_name : '0.1.0', ] libs = [ kotlin_stdlib_jdk7 : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}",