aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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