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

Commit

Permalink
Chore/update deps and api (#554)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
PLNech authored Jul 27, 2018
1 parent ba0311e commit 0369cdc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
4 changes: 4 additions & 0 deletions algoliasearch/build-online.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
* THE SOFTWARE.
*/

plugins {
id "com.github.ben-manes.versions" version "0.20.0" // exposes dependencyUpdates task
}

ext {
PUBLISH_ARTIFACT_ID = "algoliasearch-android"
PUBLISH_NAME = "Algolia Search API Client for Android"
Expand Down
26 changes: 13 additions & 13 deletions algoliasearch/common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ ext {
PUBLISH_GROUP_ID = rootProject.properties["PUBLISH_GROUP_ID"] ?: "com.algolia"
// NOTE: This is the official version number used during publication.
PUBLISH_VERSION = '3.22.14'
APPCOMPAT_VERSION = '26.1.0'
APPCOMPAT_VERSION = '28.0.0-beta01'
BUILD_TOOLS_VERSION = '27.0.3'

nexus_username = System.getenv("NEXUS_USERNAME")
nexus_password = System.getenv("NEXUS_PASSWORD")
}

android {
compileSdkVersion 26
compileSdkVersion 28
buildToolsVersion BUILD_TOOLS_VERSION
defaultConfig {
minSdkVersion 14
targetSdkVersion 26
targetSdkVersion 28
versionCode 1
versionName PUBLISH_VERSION
}
Expand Down Expand Up @@ -84,19 +84,19 @@ repositories {
}

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

testCompile "junit:junit:4.12"
testCompile "org.assertj:assertj-core:1.7.0"
testCompile "org.robolectric:robolectric:3.7.1"
testImplementation "junit:junit:4.12"
testImplementation "org.assertj:assertj-core:3.10.0"
testImplementation "org.robolectric:robolectric:3.7.1"

// PowerMock brings in the mockito dependency
testCompile "org.powermock:powermock-module-junit4:1.6.4"
testCompile "org.powermock:powermock-module-junit4-rule:1.6.1"
testCompile "org.powermock:powermock-classloading-xstream:1.6.4"
testCompile "org.powermock:powermock-api-mockito:1.6.4"
testImplementation "org.powermock:powermock-module-junit4:1.6.4"
testImplementation "org.powermock:powermock-module-junit4-rule:1.6.1"
testImplementation "org.powermock:powermock-classloading-xstream:1.6.4"
testImplementation "org.powermock:powermock-api-mockito:1.6.4"

javadoc "com.android.support:support-annotations:$APPCOMPAT_VERSION"
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip

0 comments on commit 0369cdc

Please sign in to comment.