From c707d42b311f96cbabc1971f98598c8b8922ba16 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 5 Aug 2017 14:49:47 -0700 Subject: 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 --- build.gradle | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'build.gradle') 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 -- cgit v1.2.3