aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-08-05 14:49:47 -0700
committerGitHub <noreply@github.com>2017-08-05 14:49:47 -0700
commitc707d42b311f96cbabc1971f98598c8b8922ba16 (patch)
tree3c592c2a8bdd2fb759e3632adf038b5d7cecfabb /build.gradle
parentbafc1996d803862d30a2c7d0c402d30c79c4f647 (diff)
downloadkau-c707d42b311f96cbabc1971f98598c8b8922ba16.tar.gz
kau-c707d42b311f96cbabc1971f98598c8b8922ba16.tar.bz2
kau-c707d42b311f96cbabc1971f98598c8b8922ba16.zip
Swipe (#24)
* Test emulator * Update readme * Update fastadapter and about listing * Make faq parser asynchronous * Modularize about panels * Add basis for faq * Test and finalize the faq panel * Update readme * Update changelog * Remove emulator for now * Update sample * Change back to manual versioning to avoid suggestion errors * Add awesome-kt banner * Fix faq background color * Fix merge conflicts 2 * Add waffle badge * Update readme * Fix lint * Create FileUtils and NotificationUtils * Remove frost hardcode * Fix simple date * Update swipe to use weak references * Initializing test dependencies * Update to gradle 4.1 * Fix lint warnings * Drop back down and fix errors * Finalize swipe with example * Finalize weak reference and ordering * Update test code * Make loggers inline
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle23
1 files changed, 23 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 72d35aa..74fb18d 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,6 +1,8 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
+// google()
+// maven { url "https://maven.google.com" }
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
@@ -14,6 +16,18 @@ buildscript {
}
}
+def portions = project.VERSION_NAME.tokenize('.')
+int code = 0
+for (i in 1..4) {
+ if (portions.size() >= i && portions[i - 1].isInteger())
+ code += portions[i - 1].toInteger()
+ code *= 100
+}
+code /= 100
+println "KAU Project Version Name: " + project.VERSION_NAME
+println "KAU Project Version Code: " + code
+project.ext.VERSION_CODE = code
+
task clean(type: Delete) {
delete rootProject.buildDir
}
@@ -34,4 +48,13 @@ task generateChangelogMd {
}
def changelogMd = new File("$project.rootDir/docs/Changelog.md")
changelogMd.write(sw.toString())
+}
+
+subprojects {
+ repositories {
+// google()
+ maven { url "https://maven.google.com" }
+ jcenter()
+ maven { url "https://jitpack.io" }
+ }
} \ No newline at end of file