diff --git a/android/app/build.gradle b/android/app/build.gradle index 573561a..b49aec8 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 28 + compileSdkVersion 31 sourceSets { main.java.srcDirs += 'src/main/kotlin' @@ -40,8 +40,8 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.object_detection" - minSdkVersion 21 - targetSdkVersion 28 + minSdkVersion 28 + targetSdkVersion 29 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index ffa869c..4c0bdd2 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -6,7 +6,7 @@ additional functionality it is fine to subclass or reimplement FlutterApplication and put your custom class here. --> =2.12.0-0.0 <3.0.0" - flutter: ">=1.12.13+hotfix.5" + dart: ">=2.15.0 <3.0.0" + flutter: ">=2.5.0" diff --git a/pubspec.yaml b/pubspec.yaml index 107ce42..6180bbe 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -21,19 +21,15 @@ environment: sdk: ">=2.7.0 <3.0.0" dependencies: + camera: ^0.9.4+14 + cupertino_icons: ^0.1.3 flutter: sdk: flutter - - - # The following adds the Cupertino Icons font to your application. - # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^0.1.3 - camera: ^0.5.8+2 - tflite_flutter: ^0.5.0 - tflite_flutter_helper: ^0.1.2 - image: ^2.1.12 - path_provider: ^1.6.11 - image_picker: ^0.6.7+2 + image: ^3.1.3 + image_picker: ^0.8.4+9 + path_provider: ^2.0.9 + tflite_flutter: ^0.9.0 + tflite_flutter_helper: ^0.3.1 dev_dependencies: flutter_test: @@ -41,7 +37,6 @@ dev_dependencies: # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec - # The following section is specific to Flutter. flutter: @@ -55,13 +50,10 @@ flutter: - assets/ # - images/a_dot_burr.jpeg # - images/a_dot_ham.jpeg - # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware. - # For details regarding adding assets from package dependencies, see # https://flutter.dev/assets-and-images/#from-packages - # To add custom fonts to your application, add a fonts section here, # in this "flutter" section. Each entry in this list should have a # "family" key with the font family name, and a "fonts" key with a