Skip to content

Commit 81e6241

Browse files
author
Sebastian Roth
authored
Update Android dependencies (#275)
* Remove jcenter reference, bump example dependencies, bump AGP & workmanager
1 parent 65dbe1e commit 81e6241

File tree

7 files changed

+21
-19
lines changed

7 files changed

+21
-19
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 0.4.1
2+
3+
* Bumps Android dependencies (Kotlin, AGP, workmanager 2.5.0)
4+
* Android: Remove jcenter reference
5+
* Android: Build using compile/target SDK 30.
6+
17
# 0.4.0
28

39
* The package now supports null-safety

android/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@ group 'be.tramckrijte.workmanager'
22
version '1.0-SNAPSHOT'
33

44
buildscript {
5-
ext.kotlin_version = '1.4.21'
5+
ext.kotlin_version = '1.5.10'
66
repositories {
77
google()
8-
jcenter()
8+
mavenCentral()
99
}
1010

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:3.5.4'
12+
classpath 'com.android.tools.build:gradle:4.2.1'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414
}
1515
}
1616

1717
rootProject.allprojects {
1818
repositories {
19+
mavenCentral()
1920
google()
20-
jcenter()
2121
}
2222
}
2323

2424
apply plugin: 'com.android.library'
2525
apply plugin: 'kotlin-android'
2626

2727
android {
28-
compileSdkVersion 28
28+
compileSdkVersion 30
2929

3030
sourceSets {
3131
main.java.srcDirs += 'src/main/kotlin'

example/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion 28
29+
compileSdkVersion 30
3030

3131
sourceSets {
3232
main.java.srcDirs += 'src/main/kotlin'
@@ -39,7 +39,7 @@ android {
3939
defaultConfig {
4040
applicationId "be.tramckrijte.workmanager_example"
4141
minSdkVersion 16
42-
targetSdkVersion 28
42+
targetSdkVersion 30
4343
versionCode flutterVersionCode.toInteger()
4444
versionName flutterVersionName
4545
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

example/android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
buildscript {
2-
ext.kotlin_version = '1.4.21'
2+
ext.kotlin_version = '1.5.10'
33
repositories {
44
google()
5-
jcenter()
5+
mavenCentral()
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.5.4'
9+
classpath 'com.android.tools.build:gradle:4.2.1'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}
1313

1414
allprojects {
1515
repositories {
1616
google()
17-
jcenter()
17+
mavenCentral()
1818
}
1919
}
2020

example/android/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-5.4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip

example/pubspec.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@ environment:
66
sdk: ">=2.12.0-0 <3.0.0"
77

88
dependencies:
9-
path_provider: ^2.0.1
10-
shared_preferences: ^2.0.5
9+
path_provider: ^2.0.2
10+
shared_preferences: ^2.0.6
1111
flutter:
1212
sdk: flutter
1313

14-
# The following adds the Cupertino Icons font to your application.
15-
# Use with the CupertinoIcons class for iOS style icons.
16-
cupertino_icons: ^1.0.2
17-
1814
dev_dependencies:
1915
flutter_test:
2016
sdk: flutter

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: workmanager
22
description: Flutter Workmanager. This plugin allows you to schedule background work on Android and iOS.
3-
version: 0.4.0
3+
version: 0.4.1
44
homepage: https://github.com/fluttercommunity/flutter_workmanager
55
repository: https://github.com/fluttercommunity/flutter_workmanager
66
issue_tracker: https://github.com/fluttercommunity/flutter_workmanager/issues

0 commit comments

Comments
 (0)