aboutsummaryrefslogtreecommitdiff
path: root/buildSrc
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2018-12-24 00:27:25 -0500
committerGitHub <noreply@github.com>2018-12-24 00:27:25 -0500
commita380adea1052d39f23c9c4d432a9380ce347d6c4 (patch)
treecdbb6835cdc3c04df24af2323341d765f64ab2e3 /buildSrc
parent98a7f378399546086e23e25514b705e037068058 (diff)
downloadkau-a380adea1052d39f23c9c4d432a9380ce347d6c4.tar.gz
kau-a380adea1052d39f23c9c4d432a9380ce347d6c4.tar.bz2
kau-a380adea1052d39f23c9c4d432a9380ce347d6c4.zip
Migrate to androidx (#178)
* Initial refactor * Remove alpha version usages * Update test code * Add tests for checkbox * Fix invalid card import * Remove more old support content * Update kotlin version * Add back kotterknife with new imports * Update docs * Use bold notice * Add changelog * Remove deprecation for kotterknife * Remove unused dependencies * Update changelog
Diffstat (limited to 'buildSrc')
-rw-r--r--buildSrc/README.md2
-rw-r--r--buildSrc/src/main/groovy/ca/allanwang/kau/Dependencies.groovy5
-rw-r--r--buildSrc/src/main/groovy/ca/allanwang/kau/Versions.groovy46
3 files changed, 36 insertions, 17 deletions
diff --git a/buildSrc/README.md b/buildSrc/README.md
index 60d2dfc..91a60ac 100644
--- a/buildSrc/README.md
+++ b/buildSrc/README.md
@@ -48,7 +48,7 @@ You are free to use the values through `kau.[tagName]`.
As an example, AppCompat is imported in KAU using
```gradle
-api "com.android.support:appcompat-v7:${kau.supportLibs}"
+api "androidx.appcompat:appcompat:${kau.appcompat}"
```
# Plugins
diff --git a/buildSrc/src/main/groovy/ca/allanwang/kau/Dependencies.groovy b/buildSrc/src/main/groovy/ca/allanwang/kau/Dependencies.groovy
index ec3d208..a27e503 100644
--- a/buildSrc/src/main/groovy/ca/allanwang/kau/Dependencies.groovy
+++ b/buildSrc/src/main/groovy/ca/allanwang/kau/Dependencies.groovy
@@ -7,6 +7,7 @@ class Dependencies {
static def kotlin = "org.jetbrains.kotlin:kotlin-stdlib:${Versions.kotlin}"
static def kotlinTest = "org.jetbrains.kotlin:kotlin-test-junit:${Versions.kotlin}"
static def junit = "junit:junit:${Versions.junit}"
- static def espresso = "com.android.support.test.espresso:espresso-core:${Versions.espresso}"
- static def testRunner = "com.android.support.test:runner:${Versions.testRunner}"
+ static def espresso = "androidx.test.espresso:espresso-core:${Versions.espresso}"
+ static def testRunner = "androidx.test.ext:junit:${Versions.testRunner}"
+ static def testRules = "androidx.test:rules:${Versions.testRules}"
} \ No newline at end of file
diff --git a/buildSrc/src/main/groovy/ca/allanwang/kau/Versions.groovy b/buildSrc/src/main/groovy/ca/allanwang/kau/Versions.groovy
index 55fc646..637ae68 100644
--- a/buildSrc/src/main/groovy/ca/allanwang/kau/Versions.groovy
+++ b/buildSrc/src/main/groovy/ca/allanwang/kau/Versions.groovy
@@ -8,14 +8,26 @@ class Versions {
// https://developer.android.com/studio/releases/build-tools
static def buildTools = '28.0.3'
- // https://developer.android.com/topic/libraries/support-library/revisions
- static def supportLibs = '28.0.0'
+ // https://mvnrepository.com/artifact/androidx.appcompat/appcompat?repo=google
+ static def appcompat = '1.0.2'
+
+ // https://mvnrepository.com/artifact/com.google.android.material/material
+ static def googleMaterial = '1.0.0'
+
+ // https://mvnrepository.com/artifact/androidx.recyclerview/recyclerview
+ static def recyclerView = '1.0.0'
+
+ // https://mvnrepository.com/artifact/androidx.cardview/cardview
+ static def cardView = '1.0.0'
+
+ // https://mvnrepository.com/artifact/androidx.constraintlayout/constraintlayout
+ static def constraintLayout = '1.1.3'
// https://kotlinlang.org/docs/reference/using-gradle.html
- static def kotlin = '1.2.71'
+ static def kotlin = '1.3.11'
// https://github.com/mikepenz/AboutLibraries/releases
- static def aboutLibraries = '6.1.1'
+ static def aboutLibraries = '6.2.0'
// https://github.com/Kotlin/anko/releases
static def anko = '0.10.5'
@@ -23,29 +35,35 @@ class Versions {
// https://github.com/wasabeef/Blurry/releases
static def blurry = '2.1.1'
- // https://dl.google.com/dl/android/maven2/com/android/support/constraint/group-index.xml
- static def constraintLayout = '1.1.3'
-
// https://github.com/mikepenz/FastAdapter#using-maven
- static def fastAdapter = '3.2.9'
+ static def fastAdapter = '3.3.1'
static def fastAdapterCommons = fastAdapter
// https://github.com/bumptech/glide/releases
static def glide = '4.8.0'
// https://github.com/mikepenz/Android-Iconics#1-provide-the-gradle-dependency
- static def iconics = '3.0.4'
- static def iconicsGoogle = '3.0.1.2'
- static def iconicsMaterial = '2.2.0.4'
- static def iconicsCommunity = '2.0.46.1'
+ static def iconics = '3.1.0'
+ static def iconicsGoogle = '3.0.1.3'
+ static def iconicsMaterial = '2.2.0.5'
+ static def iconicsCommunity = '2.7.94.1'
// https://github.com/afollestad/material-dialogs/releases
static def materialDialog = '0.9.6.0'
- static def espresso = '3.0.1'
+ // https://mvnrepository.com/artifact/androidx.test.espresso/espresso-core?repo=google
+ static def espresso = '3.1.1'
+
+ // https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api
static def junit = '4.12'
- static def testRunner = '1.0.1'
+
+ static def testRunner = '1.1.0'
+
+ // https://mvnrepository.com/artifact/androidx.test/rules?repo=google
+ static def testRules = '1.1.1'
+
+ // https://mvnrepository.com/artifact/com.android.tools.build/gradle?repo=google
static def gradlePlugin = '3.2.1'
static def mavenPlugin = '2.1'
static def playPublishPlugin = '1.2.2'