File tree Expand file tree Collapse file tree 5 files changed +13
-8
lines changed Expand file tree Collapse file tree 5 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
2525apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
2626
2727android {
28- compileSdkVersion 28
28+ compileSdkVersion 29
2929
3030 lintOptions {
3131 disable ' InvalidPackage'
@@ -34,11 +34,11 @@ android {
3434 defaultConfig {
3535 // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3636 applicationId " com.hoc.sqlite_bloc_rxdart"
37- minSdkVersion 16
38- targetSdkVersion 28
37+ minSdkVersion 21
38+ targetSdkVersion 29
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
5757dependencies {
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}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ buildscript {
55 }
66
77 dependencies {
8- classpath ' com.android.tools.build:gradle:3.2.1 '
8+ classpath ' com.android.tools.build:gradle:3.5.3 '
99 }
1010}
1111
Original file line number Diff line number Diff line change 11org.gradle.jvmargs =-Xmx1536M
2+ android.enableR8 =true
3+ android.useAndroidX =true
4+ android.enableJetifier =true
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =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
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ import 'data/local/app_database.dart';
77import 'domain/contact_repository.dart' ;
88
99void main () {
10+ WidgetsFlutterBinding .ensureInitialized ();
11+
1012 final appDatabase = AppDatabase ();
1113 final ContactRepository contactRepository = ContactRepositoryImpl (
1214 appDatabase.contactDao,
You can’t perform that action at this time.
0 commit comments