Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

Commit 0369cdc

Browse files
authored
Chore/update deps and api (#554)
* chore(gradle): Add dependencyUpdates * chore: Update (compile,target,appCompat) to API 28 * chore(gradle): compile -> implementation * chore(gradle): update assertJ to 3.10 * chore(gradle): update wrapper to 4.9
1 parent ba0311e commit 0369cdc

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

algoliasearch/build-online.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
* THE SOFTWARE.
2222
*/
2323

24+
plugins {
25+
id "com.github.ben-manes.versions" version "0.20.0" // exposes dependencyUpdates task
26+
}
27+
2428
ext {
2529
PUBLISH_ARTIFACT_ID = "algoliasearch-android"
2630
PUBLISH_NAME = "Algolia Search API Client for Android"

algoliasearch/common.gradle

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ ext {
2727
PUBLISH_GROUP_ID = rootProject.properties["PUBLISH_GROUP_ID"] ?: "com.algolia"
2828
// NOTE: This is the official version number used during publication.
2929
PUBLISH_VERSION = '3.22.14'
30-
APPCOMPAT_VERSION = '26.1.0'
30+
APPCOMPAT_VERSION = '28.0.0-beta01'
3131
BUILD_TOOLS_VERSION = '27.0.3'
3232

3333
nexus_username = System.getenv("NEXUS_USERNAME")
3434
nexus_password = System.getenv("NEXUS_PASSWORD")
3535
}
3636

3737
android {
38-
compileSdkVersion 26
38+
compileSdkVersion 28
3939
buildToolsVersion BUILD_TOOLS_VERSION
4040
defaultConfig {
4141
minSdkVersion 14
42-
targetSdkVersion 26
42+
targetSdkVersion 28
4343
versionCode 1
4444
versionName PUBLISH_VERSION
4545
}
@@ -84,19 +84,19 @@ repositories {
8484
}
8585

8686
dependencies {
87-
compile "com.android.support:appcompat-v7:$APPCOMPAT_VERSION"
88-
compile "com.android.support:support-annotations:$APPCOMPAT_VERSION"
89-
compile fileTree(include: ['*.jar'], dir: 'libs')
87+
implementation "com.android.support:appcompat-v7:$APPCOMPAT_VERSION"
88+
implementation "com.android.support:support-annotations:$APPCOMPAT_VERSION"
89+
implementation fileTree(include: ['*.jar'], dir: 'libs')
9090

91-
testCompile "junit:junit:4.12"
92-
testCompile "org.assertj:assertj-core:1.7.0"
93-
testCompile "org.robolectric:robolectric:3.7.1"
91+
testImplementation "junit:junit:4.12"
92+
testImplementation "org.assertj:assertj-core:3.10.0"
93+
testImplementation "org.robolectric:robolectric:3.7.1"
9494

9595
// PowerMock brings in the mockito dependency
96-
testCompile "org.powermock:powermock-module-junit4:1.6.4"
97-
testCompile "org.powermock:powermock-module-junit4-rule:1.6.1"
98-
testCompile "org.powermock:powermock-classloading-xstream:1.6.4"
99-
testCompile "org.powermock:powermock-api-mockito:1.6.4"
96+
testImplementation "org.powermock:powermock-module-junit4:1.6.4"
97+
testImplementation "org.powermock:powermock-module-junit4-rule:1.6.1"
98+
testImplementation "org.powermock:powermock-classloading-xstream:1.6.4"
99+
testImplementation "org.powermock:powermock-api-mockito:1.6.4"
100100

101101
javadoc "com.android.support:support-annotations:$APPCOMPAT_VERSION"
102102
}

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip

0 commit comments

Comments
 (0)