Skip to content

Commit 6a4b48f

Browse files
committed
Upgrade dependencies
- upgrade pub dependencies - Migrate to AndroidX - EnsureInitialized
1 parent d4a3705 commit 6a4b48f

File tree

7 files changed

+22
-16
lines changed

7 files changed

+22
-16
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,5 @@ build/
6969
!**/ios/**/default.pbxuser
7070
!**/ios/**/default.perspectivev3
7171
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
72+
.flutter-plugins-dependencies
73+
ios/Flutter/flutter_export_environment.sh

android/app/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ android {
3838
targetSdkVersion 28
3939
versionCode flutterVersionCode.toInteger()
4040
versionName flutterVersionName
41-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
41+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
4242
}
4343

4444
buildTypes {
@@ -56,6 +56,6 @@ flutter {
5656

5757
dependencies {
5858
testImplementation 'junit:junit:4.12'
59-
androidTestImplementation 'com.android.support.test:runner:1.0.2'
60-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
59+
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
60+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
6161
}

android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.3.1'
8+
classpath 'com.android.tools.build:gradle:3.5.2'
99
}
1010
}
1111

android/gradle.properties

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
android.enableJetifier=true
2+
android.useAndroidX=true
13
org.gradle.jvmargs=-Xmx1536M
4+
android.enableR8=true
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Jun 23 08:50:38 CEST 2017
1+
#Tue Dec 03 01:13:42 IST 2019
22
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.10.2-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip

lib/main.dart

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import 'ui/splash/splash.dart';
1515
var appComponent;
1616

1717
void main() {
18+
WidgetsFlutterBinding.ensureInitialized();
1819
SystemChrome.setPreferredOrientations([
1920
DeviceOrientation.portraitUp,
2021
DeviceOrientation.portraitDown,

pubspec.yaml

+10-10
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: A flutter boilerplate project created using MobX and Provider.
1010
version: 1.0.0+1
1111

1212
environment:
13-
sdk: ">=2.2.2 <3.0.0"
13+
sdk: ">=2.6.0 <3.0.0"
1414

1515
dependencies:
1616
flutter:
@@ -25,7 +25,7 @@ dependencies:
2525
cupertino_icons: ^0.1.2
2626

2727
# The following adds the shared pref as a dependency in your application
28-
shared_preferences: ^0.5.3+4
28+
shared_preferences: ^0.5.4+6
2929

3030
# A composable, Future-based library for making HTTP requests.
3131
http: ^0.12.0+2
@@ -34,19 +34,19 @@ dependencies:
3434
# run below mentioned commands to generate launcher icons
3535
# flutter packages get
3636
# flutter packages pub run flutter_launcher_icons:main
37-
flutter_launcher_icons: ^0.7.3
37+
flutter_launcher_icons: ^0.7.4
3838

3939
# Flogs, a powerful logging framework
4040
f_logs: ^1.2.1
4141

4242
# MobX is a library for reactively managing the state of your applications. Use the power of
4343
# observables, actions, and reactions to supercharge your Dart and Flutter apps.
44-
mobx: ^0.3.8+1
45-
flutter_mobx: ^0.3.3+1
46-
mobx_codegen: ^0.3.9+1
44+
mobx: ^0.3.9+3
45+
flutter_mobx: ^0.3.3+3
46+
mobx_codegen: ^0.3.10+1
4747

4848
# An helper to easily exposes a value using InheritedWidget without having to write one.
49-
provider: ^3.1.0
49+
provider: ^3.2.0
5050

5151
# String validation and sanitization for Dart. Dart 2-compatible version of validator
5252
validators: ^2.0.0+1
@@ -55,7 +55,7 @@ dependencies:
5555
dio: 2.1.13
5656

5757
# A flexible widget for user notification.
58-
flushbar: ^1.9.0
58+
flushbar: ^1.9.1
5959

6060
# Dependency injection
6161
inject:
@@ -73,8 +73,8 @@ dev_dependencies:
7373
flutter_test:
7474
sdk: flutter
7575

76-
json_serializable: ^3.2.2
77-
build_runner: ^1.7.1
76+
json_serializable: ^3.2.3
77+
build_runner: ^1.7.2
7878
inject_generator:
7979
git:
8080
url: https://github.com/google/inject.dart.git

0 commit comments

Comments
 (0)