2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-27 21:16:48 +00:00

I don't even know. Some magic that I found on the internet...

This commit is contained in:
Oliver Walters 2020-05-24 20:29:50 +10:00
parent d53773d95c
commit 77d92f5307
6 changed files with 55 additions and 5 deletions

View File

@ -38,7 +38,7 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "inventree.inventree_app"
minSdkVersion 20
minSdkVersion 21
targetSdkVersion 29
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName

View File

@ -4,4 +4,6 @@
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.MICROPHONE"/>
</manifest>

View File

@ -19,9 +19,15 @@ allprojects {
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'androidx.core' &&
!details.requested.name.contains('androidx')) {
details.useVersion "1.0.2"
}
}
}
}
task clean(type: Delete) {

View File

@ -41,5 +41,13 @@
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>NSCameraUsageDescription</key>
<string>Camera required to upload stock images / test report images / etc</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Select photos from library to upload to InvenTree</string>
<key>NSCameraUsageDescription</key>
<string>Take photos using the camera to upload to InvenTree</string>
<key>NSMicrophoneUsageDescription</key>
<string>Record videos using the camera to upload to InvenTree</string>
</dict>
</plist>

View File

@ -29,6 +29,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
camera:
dependency: "direct main"
description:
name: camera
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.8+2"
charcode:
dependency: transitive
description:
@ -90,6 +97,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.7.5"
flutter_plugin_android_lifecycle:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.8"
flutter_speed_dial:
dependency: "direct main"
description:
@ -149,6 +163,20 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
image_picker:
dependency: "direct main"
description:
name: image_picker
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.6+4"
image_picker_platform_interface:
dependency: transitive
description:
name: image_picker_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
matcher:
dependency: transitive
description:
@ -171,7 +199,7 @@ packages:
source: hosted
version: "0.4.0+18"
path:
dependency: transitive
dependency: "direct main"
description:
name: path
url: "https://pub.dartlang.org"
@ -192,7 +220,7 @@ packages:
source: hosted
version: "0.1.4"
path_provider:
dependency: transitive
dependency: "direct main"
description:
name: path_provider
url: "https://pub.dartlang.org"

View File

@ -34,6 +34,12 @@ dependencies:
flutter_speed_dial: ^1.2.5 # FAB menu elements
sentry: ^3.0.1 # Error reporting
flutter_typeahead: ^1.8.1 # Auto-complete input field
image_picker: ^0.6.6 # Select or take photos
#flutter_form_builder:
camera:
path_provider:
path:
dev_dependencies:
flutter_test: