pubspec.yaml Conflicting deps with web3dart - dart

Trying to incorporate the web3dart package into my project. When I run pub get I receive the error:
web3dart ^0.3.0 requires build_runner ^0.8.0.
When I change build_runner to ^0.8.0 my project will not build and I get the error:
The build_runner version – 0.8.3 – is not within the allowed
constraint – >=0.8.10 <0.10.0.
Appears I'm in a bind, in need of advice on how to proceed.
pubspec.yaml for reference:
environment:
sdk: '>=2.0.0-dev.67.0 <3.0.0'
dependencies:
angular: ^5.0.0-beta
angular_components: ^0.9.0-beta
angular_forms: ^2.0.0-beta
angular_router: ^2.0.0-alpha+15
firebase: ^5.0.0
json_serializable: ^0.5.2
web3dart: ^0.3.0
dev_dependencies:
angular_test: ^2.0.0-beta
build_runner: ^0.9.0
build_test: ^0.10.2
build_web_compilers: ^0.4.0
sass_builder: ^2.0.0
test: ^1.0.0

Related

Error output from Xcode build after upgrading Flutter dependencies

I recently upgraded dependencies version for my Flutter app. Since then I am continuously getting error to run iOS build on emulator and iOS device both. I am getting following error:
Failed to build iOS app
Error output from Xcode build:
↳
objc[88852]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1f68cab90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1047e02c8). One of the two will be used. Which one is undefined.
objc[88852]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1f68cabe0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1047e0318). One of the two will be used. Which one is undefined.
AssertMacros: amdErr = AMDeviceConnect(tmpDevice) == 0 , file: /System/Volumes/Data/SWE/macOS/BuildRoots/5b2e67f8af/Library/Caches/com.apple.xbs/Sources/MobileDevice/MobileDevice-1368.60.4/Source/AMDevicePowerAssertion.c, line: 224, value: -402653052
** BUILD FAILED **
I tried different solutions available around me but still it is creating issue. Here is my dependencies from .yaml file:
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.4
http: ^0.13.4
http_interceptor: ^1.0.2
flutter_screenutil: ^5.1.1
equatable: ^2.0.3
flutter_bloc: ^4.0.1
firebase_core: ^1.1.0
firebase_analytics: ^8.0.2
firebase_auth: ^3.3.7
firebase_crashlytics: ^2.0.2
firebase_messaging: ^10.0.0
firebase_remote_config: ^2.0.0
flutter_svg: ^1.0.3
google_maps_flutter: ^2.1.1
geolocator: ^8.1.1
url_launcher: ^6.0.18
scrollable_positioned_list: ^0.1.6
intl: ^0.17.0
fluttertoast: ^8.0.8
map_launcher: ^2.2.0
shared_preferences: ^2.0.13
email_validator: '^1.0.6'
flutter_verification_code: ^1.1.2+1
image_picker: ^0.8.4+7
flutter_webview_plugin: ^0.4.0
query_params: ^0.6.1
mailto: ^2.0.0
flutter_local_notifications: ^9.2.0
device_info_plus: ^3.2.1
timezone: ^0.8.0
rxdart: ^0.27.3
characters: ^1.2.0
auto_size_text: ^3.0.0
webview_flutter: ^3.0.0
sign_in_apple: ^2.0.0
device_calendar: ^4.1.0
cron: ^0.4.0
package_info_plus: ^1.3.0
# flutter_absolute_path: ^1.0.6
local_auth: ^1.1.10

Flutter ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs

I have tried to upload the my flutter app to the appstore but each time I get an error saying:
ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . See https://developer.apple.com/documentation/uikit/uiwebview for more information.
I can't see the dependency that are using the UIWebView in py pubspec.yaml.
My dependencies
dependencies:
flutter:
sdk: flutter
firebase_messaging: ^6.0.16
cupertino_icons: ^0.1.3
dev_dependencies:
flutter_test:
sdk: flutter
native_device_orientation: ^0.3.0
pin_code_text_field: ^1.5.1
# sms:
sqflite: ^1.3.0
path: ^1.6.4
sqflite_common: ^1.0.1
flutter_plugin_android_lifecycle:
image_picker: ^0.6.6+1
badges: ^1.1.1
firebase_core: ^0.4.0+9
firebase_core_platform_interface: ^1.0.4
photo_view: ^0.9.2
carousel_slider: ^2.1.0
url_launcher: ^5.4.10
pull_to_refresh: ^1.5.8
flutter_spinkit: ^4.1.2+1
http:
meta:
progress_dialog: ^1.2.2
shared_preferences:
path_provider:
protobuf: ^1.0.1
material_design_icons_flutter: ^4.0.5345
flutter_cache_manager: ^1.4.1
cached_network_image: ^2.2.0+1
string_validator: ^0.1.4
flutter_inappwebview: 3.4.0+2
youtube_player_flutter: ^7.0.0+6
country_pickers: ^1.3.0
auto_direction: ^0.0.4+1
bubble_bottom_bar: ^1.2.0
intl: ^0.16.1
overlay_support: ^1.0.4
video_player: 0.10.11+2
pdf: ^1.9.0
flutter_full_pdf_viewer: ^1.0.6
share_extend: "^1.1.9"
dio: ^3.0.9
flutter_qr_bar_scanner: ^1.0.1
flutter_luban: ^0.1.11
shimmer: ^1.1.1
flutter_ringtone_player: ^2.0.0
You can find the module that is causing the trouble by running grep -r "UIWebView" .
The most likely culprit is flutter_qr_bar_scanner as described in this issue in their repository.

Submission Flutter App Binary Rejected iOS14

I'm trying to submit a new version of my Flutter App into the Apple Store but the binary from my app is being rejected and I'm not receiving any email's from Apple informing why. I used to receive them but I have no idea of what is going on.
The problem started since since the iOS14 was released.
Any possible ideas?
My pubspec:
name: approachapp
description: A new Flutter application.
version: 1.0.2+14
environment:
sdk: ">=2.2.2 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.2
firebase_core: ^0.4.4+3
firebase_analytics: ^5.0.11
firebase_auth: ^0.16.0
firebase_database: ^3.1.3
firebase_storage: ^3.1.5
cloud_firestore: ^0.13.5
device_info: ^0.4.1+4
apple_sign_in: ^0.1.0
google_sign_in: ^4.4.4
geolocator: ^5.3.2+2
intl: ^0.16.1
qr_flutter: ^3.1.0
flutter_geofire:
git:
url: git://github.com/marcuslindemannrohden/flutter_geofire
ref: update_query
image_cropper: ^1.3.1
font_awesome_flutter: ^8.8.1
image_picker: ^0.6.6+1
carousel_slider: ^2.2.1
google_nav_bar: ^2.2.0
cloud_functions: ^0.5.0
flutter_launcher_icons: ^0.7.5
cached_network_image: ^2.2.0+1
extended_image: ^0.9.0
url_launcher: ^5.4.11
flushbar: ^1.10.4
hive: ^1.4.4
path_provider: ^1.6.9
flutter_mobx: ^1.1.0+1
mobx: ^1.2.1+1
flutter_modular: ^1.3.0
shared_preferences: ^0.5.7+3
firebase_messaging: ^6.0.16
permission_handler: ^5.0.1+1
story_view: ^0.12.3
scrollable_positioned_list: ^0.1.7
dev_dependencies:
mockito: ^4.1.1
modular_codegen: ^1.0.1+3
mobx_codegen: ^1.1.0+1
build_runner: ^1.10.0
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/images/approachlaunchicon.png"
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
assets:
- assets/images/
vars:
runner: flutter pub run build_runner
clean: flutter clean
get: flutter pub get
scripts:
mobb: $clean & $get & $runner build --delete-conflicting-outputs
mobw: $clean & $get & $runner watch --delete-conflicting-outputs
updateIcons: flutter pub run flutter_launcher_icons:main
buildAndroidProd: flutter build appbundle --release --flavor prod --target lib/main_prod.dart
buildiOSProd: flutter build ios --release --flavor prod --target lib/main_prod.dart

Unable to run flutter. Throws "couldn't find package fluttery:" error

This is the error
description: A new Flutter project.
version: 0.9.91+50
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
SDK: flutter
cupertino_icons: ^0.1.2
audioplayers: ^0.11.0
agora_rtc_engine: ^0.9.4
cached_network_image: ^0.7.0
country_pickers: ^1.0.1
dio: ^2.0.22
flutter_launcher_icons: ^0.7.0
flutter_rating: ^0.0.2
fluttery: ^0.0.8
font_awesome_flutter: ^8.4.0
get_it: ^1.0.3
google_sign_in: ^4.0.1+3
image_picker: ^0.5.0+3
intl: ^0.15.7
intro_views_flutter: ^2.4.0
permission_handler: ^3.0.0
photo_view: ^0.2.1
razorpay_plugin: ^0.2.9
rxdart: ^0.21.0
shared_preferences: ^0.5.1+1
side_header_list_view: ^0.0.4
strings: ^0.1.0
url_launcher: ^5.0.2
path_provider: ^0.5.0+1
screen: ^0.0.5
flutter_typeahead: ^1.4.0
flutter_chips_input: ^1.2.0
intro_slider: ^1.2.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter_icons:
android: "ic_launcher"
ios: true
image_path: "assets/images/ic_launcher.jpg"
# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/images/
- assets/
This is my pubspec.YAML file.
I have installed flutter and tried to run an existing flutter project on iPhone.
When I try running flutter, I get this error.
I tried searching for solutions but couldn't find one. Can anyone let me know what needs to be done?
I cannot find fluttery package in pub
Maybe is deleted. Check fluttery_dart2 as an alternative.
This is happening because flutter configured podfile that way. Default generated podfile by flutter won't allow ios build to download the nested dependencies.
To resolve you can alter podfile file by this and your issue would be resolved.
Search for this piece of code
target 'Runner' do
# Flutter Pod
And replace it with below
target 'Runner' do
use_frameworks!
# Flutter Pod
Update
Fluttery package is removed/temporary down due to flutter upgrade. So you should update your pubspec.yaml file with
fluttery_dart2: ^0.0.9
library to use the same functionality. Well this library will not be for long time once the original one will back.
Please read the note here

'Uncaught Error: type arguments should not be null: T' when updating pubspec in angular dart

I'm tring to update my libs, i got to start, but i'm getting this error and now I have no idea where or how to fix.
https://pastebin.com/cTGmBjKY
environment:
sdk: '>=2.0.0 <3.0.0'
dependencies:
ng_bootstrap: ^1.1.1
angular: ^5.3.0
angular_components: ^0.13.0+1
angular_forms: ^2.1.1
angular_router: ^2.0.0-alpha+21
rxdart: ^0.20.0
firebase: ^5.0.3
googleapis: ^0.52.0
googleapis_auth: ^0.2.5+2
service_worker: ^0.2.3
sass: ^1.5.0
markdown: ^2.0.2
intl: ^0.15.8
dev_dependencies:
sass_builder: ^2.0.0
angular_test: ^2.2.0
build_runner: ^1.2.3
build_test: ^0.10.3
build_web_compilers: ^2.1.0
test: ^1.0.0
webdev-2.0.7
Does anyone have any ideas?
build_web_compilers 2.x and Dart SDK 2.3 are broken around JS interop. The next SDK release should fix it - in the mean time you'll want to downgrade back to build_web_compilers ^1.0.0

Resources