aboutsummaryrefslogtreecommitdiff
path: root/buildSrc
diff options
context:
space:
mode:
Diffstat (limited to 'buildSrc')
-rw-r--r--buildSrc/.gitignore2
-rw-r--r--buildSrc/build.gradle.kts24
-rw-r--r--buildSrc/src/main/kotlin/Versions.kt37
3 files changed, 63 insertions, 0 deletions
diff --git a/buildSrc/.gitignore b/buildSrc/.gitignore
new file mode 100644
index 00000000..192221b4
--- /dev/null
+++ b/buildSrc/.gitignore
@@ -0,0 +1,2 @@
+.gradle/
+build/ \ No newline at end of file
diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts
new file mode 100644
index 00000000..0c518118
--- /dev/null
+++ b/buildSrc/build.gradle.kts
@@ -0,0 +1,24 @@
+plugins {
+ `kotlin-dsl`
+}
+
+group = "com.pitchedapps"
+
+repositories {
+ jcenter()
+ maven("https://jitpack.io")
+}
+
+// Currently can't read properties from root project
+// Reading it manually since it's simple
+val rootProps =
+ File(project.rootDir.let { if (it.name == "buildSrc") it.parent else it.absolutePath }, "gradle.properties")
+val kau = rootProps.useLines {
+ it.first { s -> s.startsWith("KAU=") }
+}.substring(4).trim()
+
+println("Using kau $kau")
+
+dependencies {
+ implementation("ca.allanwang.kau:gradle-plugin:$kau")
+} \ No newline at end of file
diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt
new file mode 100644
index 00000000..40b565b5
--- /dev/null
+++ b/buildSrc/src/main/kotlin/Versions.kt
@@ -0,0 +1,37 @@
+object Versions {
+
+ const val andxBiometric = "1.0.0-alpha04"
+
+ // https://mvnrepository.com/artifact/org.apache.commons/commons-text
+ // Updates blocked due to javax.script dependency
+ const val apacheCommonsText = "1.4"
+ // https://github.com/Raizlabs/DBFlow/releases
+ const val dbflow = "4.2.4"
+ // https://github.com/brianwernick/ExoMedia/releases
+ const val exoMedia = "4.3.0"
+ // https://github.com/InsertKoinIO/koin/blob/master/CHANGELOG.md
+ const val koin = "2.0.0-rc-2"
+ // https://github.com/mockk/mockk/releases
+ const val mockk = "1.9.3"
+ // https://mvnrepository.com/artifact/androidx.core/core-ktx?repo=google
+ const val ktx = "1.0.2"
+
+ // https://github.com/FasterXML/jackson-core/releases
+ const val jackson = "2.9.8"
+ // https://github.com/jhy/jsoup/releases
+ const val jsoup = "1.11.3"
+ // https://github.com/square/leakcanary/releases
+ const val leakCanary = "1.6.2"
+ // https://github.com/zsmb13/MaterialDrawerKt/releases
+ const val materialDrawerKt = "2.0.1"
+ // https://github.com/square/okhttp/releases
+ const val okhttp = "3.14.1"
+ // https://developer.android.com/jetpack/androidx/releases/room
+ const val room = "2.1.0"
+ // http://robolectric.org/getting-started/
+ const val roboelectric = "4.2"
+ // https://github.com/davemorrissey/subsampling-scale-image-view#quick-start
+ const val scaleImageView = "3.10.0"
+ // https://github.com/umano/AndroidSlidingUpPanel#importing-the-library
+ const val slidingPanel = "3.4.0"
+} \ No newline at end of file