aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-19 20:09:09 -0700
committerAllan Wang <me@allanwang.ca>2017-06-19 20:09:09 -0700
commitab9971d08183795bb53a52c10e778672735e9c9f (patch)
tree5a177d5cbed1e5f938f3a65d8ece7fe76d6f4343
parent34f08f591900ee00d15b748e5ecf07252fac19a5 (diff)
downloadkau-ab9971d08183795bb53a52c10e778672735e9c9f.tar.gz
kau-ab9971d08183795bb53a52c10e778672735e9c9f.tar.bz2
kau-ab9971d08183795bb53a52c10e778672735e9c9f.zip
Add changelogs
-rw-r--r--README.md2
-rw-r--r--build.gradle18
-rw-r--r--docs/Changelog.md15
3 files changed, 35 insertions, 0 deletions
diff --git a/README.md b/README.md
index edf46b1..06ed42b 100644
--- a/README.md
+++ b/README.md
@@ -6,6 +6,8 @@ Kotlin Android Utils
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.
+[Changelog](https://github.com/AllanWang/KAU/tree/master/docs/Changelog.md)
+
------------
KAU is available on JitPack
diff --git a/build.gradle b/build.gradle
index b0476be..aa426e1 100644
--- a/build.gradle
+++ b/build.gradle
@@ -27,3 +27,21 @@ allprojects {
task clean(type: Delete) {
delete rootProject.buildDir
}
+
+task generateChangelogMd() {
+ def parsedProjectXml = (new XmlParser()).parse("$project.rootDir/sample/src/main/res/xml/changelog.xml")
+ def sw = new StringWriter()
+ sw.append("# Changelog\n")
+ parsedProjectXml.depthFirst().each {
+ switch (it.name()) {
+ case "version":
+ sw.append("\n## ${it.@title}\n")
+ break
+ case "item":
+ if (it.@text?.trim())
+ sw.append("* ${it.@text}\n")
+ }
+ }
+ def changelogMd = new File("$project.rootDir/docs/Changelog.md")
+ changelogMd.write(sw.toString())
+} \ No newline at end of file
diff --git a/docs/Changelog.md b/docs/Changelog.md
new file mode 100644
index 0000000..682d0ea
--- /dev/null
+++ b/docs/Changelog.md
@@ -0,0 +1,15 @@
+# Changelog
+
+## v0.2
+* Created kprefs
+* Created kpref items
+* Attached source files
+* Created color dialog
+* Added more utilities
+* Fixed stack clearing when starting activity
+
+## v0.1
+* Initial Changelog
+* Created many extension functions
+* Ported changelog builer
+* Ported ripple canvas