Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit e095d58

Browse files
authored
Merge pull request #1119 from wordpress-mobile/gradle-update
Update Gradle to 4.10.3 and Android Gradle Plugin to 3.3.1
2 parents 0f7b733 + f9e48b1 commit e095d58

File tree

10 files changed

+17
-11
lines changed

10 files changed

+17
-11
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ android:
77
- extra-android-support
88
- platform-tools
99
- tools
10-
- build-tools-27.0.3
10+
- build-tools-28.0.3
1111
- android-27
1212

1313
env:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
}
99

1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:3.1.4'
11+
classpath 'com.android.tools.build:gradle:3.3.1'
1212
classpath 'com.automattic.android:fetchstyle:1.1'
1313
}
1414
}

example/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ apply plugin: 'kotlin-kapt'
1414

1515
android {
1616
compileSdkVersion 27
17-
buildToolsVersion '27.0.3'
17+
buildToolsVersion '28.0.3'
1818

1919
defaultConfig {
2020
applicationId "org.wordpress.android.fluxc.example"
@@ -38,6 +38,7 @@ android {
3838

3939
lintOptions {
4040
warning 'InvalidPackage'
41+
disable 'ExpiredTargetSdkVersion'
4142
}
4243

4344
testOptions {

fluxc/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ android {
2222
useLibrary 'org.apache.http.legacy'
2323

2424
compileSdkVersion 27
25-
buildToolsVersion '27.0.3'
25+
buildToolsVersion '28.0.3'
2626

2727
defaultConfig {
2828
versionCode 4
2929
versionName "0.1"
3030
minSdkVersion 15
31-
targetSdkVersion 25
31+
targetSdkVersion 26
3232
}
3333
buildTypes {
3434
release {

fluxc/src/main/java/org/wordpress/android/fluxc/store/ActivityLogStore.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.wordpress.android.fluxc.store
22

3+
import android.annotation.SuppressLint
34
import com.yarolegovich.wellsql.SelectQuery
45
import kotlinx.coroutines.GlobalScope
56
import kotlinx.coroutines.launch
@@ -55,6 +56,7 @@ class ActivityLogStore
5556
}
5657
}
5758

59+
@SuppressLint("WrongConstant")
5860
fun getActivityLogForSite(site: SiteModel, ascending: Boolean = true): List<ActivityLogModel> {
5961
val order = if (ascending) SelectQuery.ORDER_ASCENDING else SelectQuery.ORDER_DESCENDING
6062
return activityLogSqlUtils.getActivitiesForSite(site, order)
@@ -76,6 +78,7 @@ class ActivityLogStore
7678
AppLog.d(AppLog.T.API, this.javaClass.name + ": onRegister")
7779
}
7880

81+
@SuppressLint("WrongConstant")
7982
suspend fun fetchActivities(fetchActivityLogPayload: FetchActivityLogPayload): OnActivityLogFetched {
8083
var offset = 0
8184
if (fetchActivityLogPayload.loadMore) {

fluxc/src/main/java/org/wordpress/android/fluxc/store/CommentStore.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.wordpress.android.fluxc.store;
22

3+
import android.annotation.SuppressLint;
34
import android.support.annotation.NonNull;
45
import android.support.annotation.Nullable;
56

@@ -187,6 +188,7 @@ public CommentStore(Dispatcher dispatcher, CommentRestClient commentRestClient,
187188
* If false, order the results by descending published date.
188189
* @param statuses Array of status or CommentStatus.ALL to get all of them.
189190
*/
191+
@SuppressLint("WrongConstant")
190192
public List<CommentModel> getCommentsForSite(SiteModel site, boolean orderByDateAscending,
191193
CommentStatus... statuses) {
192194
@Order int order = orderByDateAscending ? SelectQuery.ORDER_ASCENDING : SelectQuery.ORDER_DESCENDING;

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.10.3-all.zip

instaflux/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ apply plugin: 'kotlin-kapt'
1717

1818
android {
1919
compileSdkVersion 27
20-
buildToolsVersion '27.0.3'
20+
buildToolsVersion '28.0.3'
2121

2222
defaultConfig {
2323
applicationId "org.wordpress.android.fluxc.instaflux"
2424
minSdkVersion 16
25-
targetSdkVersion 22
25+
targetSdkVersion 26
2626
versionCode 1
2727
versionName "1.0"
2828
}

jitpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
before_install:
22
- yes | $ANDROID_HOME/tools/bin/sdkmanager "platforms;android-27"
3-
- yes | $ANDROID_HOME/tools/bin/sdkmanager "build-tools;27.0.3"
3+
- yes | $ANDROID_HOME/tools/bin/sdkmanager "build-tools;28.0.3"

plugins/woocommerce/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ repositories {
1919

2020
android {
2121
compileSdkVersion 27
22-
buildToolsVersion '27.0.3'
22+
buildToolsVersion '28.0.3'
2323

2424
defaultConfig {
2525
versionCode 1
2626
versionName "0.1"
2727
minSdkVersion 15
28-
targetSdkVersion 25
28+
targetSdkVersion 26
2929
}
3030
buildTypes {
3131
release {

0 commit comments

Comments
 (0)