pub upgrade downgrades my main-packages - dart

Here is my dependency-list:
dependencies:
browser: any
polymer: any
polymer_elements: any
angular: any
lawndart: any
validate: any
http_utils: any
And here is what I get if I say "pub upgrade"
Resolving dependencies... (42.5s)
analyzer 0.12.2 (4 newer versions available)
angular 0.9.10
args 0.9.0 (3 newer versions available)
barback 0.11.1 (2 newer versions available)
bignum 0.0.5
browser 0.9.1 (3 newer versions available)
cipher 0.6.0 (1 newer version available)
code_transformers 0.0.1-dev.2 (4 newer versions available)
collection 0.9.1
crypto 0.9.0
csslib 0.9.2
custom_element 0.10.1
di 0.0.34
event_bus 0.2.3 (1 newer version available)
fixnum 0.9.0
html5lib 0.9.2 (1 newer version available)
html_import 0.9.0
http_utils 1.2.10
intl 0.8.10+4 (9 newer versions available)
json 0.10.0
lawndart 0.6.5
logging 0.9.1+1
logging_handlers 0.8.0
matcher 0.10.0
meta 0.8.8
mock 0.10.0+1
mutation_observer 0.9.0
observe 0.10.0-pre.0 (3 newer unstable versions available)
path 1.1.0
perf_api 0.0.8
polymer 0.8.10+4 (15 newer versions available)
polymer_elements 0.0.2 (16 newer versions available)
polymer_expressions 0.9.1 (2 newer unstable versions available)
route_hierarchical 0.4.17
shadow_dom 0.9.2
smoke 0.1.0-pre.2
source_maps 0.9.0
stack_trace 0.9.3+1
template_binding 0.9.1 (2 newer unstable versions available)
unittest 0.10.1+2
unmodifiable_collection 0.9.2+1
utf 0.9.0
uuid 0.3.0
validate 1.2.4
yaml 0.9.0
polymer - 15 newer version!!!!
if I say "pub upgrade browser"
analyzer 0.12.2 (4 newer versions available)
+ analyzer_experimental 0.8.6
< angular 0.0.7 (was 0.9.10) (15 newer versions available)
args 0.9.0
barback 0.11.1
bignum 0.0.5
> browser 0.10.0+2 (was 0.9.1)
cipher 0.6.0
code_transformers 0.0.1-dev.2
collection 0.9.1
crypto 0.9.0
csslib 0.9.2
custom_element 0.10.1
di 0.0.34
event_bus 0.2.3
fixnum 0.9.0
html5lib 0.9.2
html_import 0.9.0
http_utils 1.2.10
intl 0.8.10+4
+ js 0.2.2
json 0.10.0
lawndart 0.6.5
logging 0.9.1+1
logging_handlers 0.8.0
matcher 0.10.0
meta 0.8.8
mock 0.10.0+1
mutation_observer 0.9.0
observe 0.10.0-pre.0
path 1.1.0
perf_api 0.0.8
polymer 0.8.10+4
polymer_elements 0.0.2
< polymer_expressions 0.8.10+4 (was 0.9.1) (2 newer versions available)
route_hierarchical 0.4.17
shadow_dom 0.9.2
smoke 0.1.0-pre.2
source_maps 0.9.0
stack_trace 0.9.3+1
template_binding 0.9.1
unittest 0.10.1+2
unmodifiable_collection 0.9.2+1
utf 0.9.0
uuid 0.3.0
validate 1.2.4
yaml 0.9.0
Changed 5 dependencies!
It downgrades angular!!!!!
< angular 0.0.7 (was 0.9.10) (15 newer versions available)
If I change my dependencies for browser:
dependencies:
browser: ">=0.10.0+2 <0.11.0"
Results in:
> analyzer 0.13.5 (was 0.12.2)
analyzer_experimental 0.8.6
angular 0.0.7 (15 newer versions available)
> args 0.10.0+2 (was 0.9.0)
> barback 0.12.0 (was 0.11.1) (1 newer version available)
bignum 0.0.5
browser 0.10.0+2
cipher 0.6.0 (1 newer version available)
> code_transformers 0.1.1+1 (was 0.0.1-dev.2)
collection 0.9.1
crypto 0.9.0
< di 0.0.24 (was 0.0.34) (10 newer versions available)
> event_bus 0.2.4 (was 0.2.3)
fixnum 0.9.0
> html5lib 0.10.0 (was 0.9.2)
http_utils 1.2.10
> intl 0.9.8 (was 0.8.10+4)
js 0.2.2
json 0.10.0
lawndart 0.6.5
logging 0.9.1+1
logging_handlers 0.8.0
matcher 0.10.0
meta 0.8.8
mock 0.10.0+1
> observe 0.10.0-pre.3 (was 0.10.0-pre.0)
path 1.1.0
perf_api 0.0.8
> polymer 0.10.0-pre.8 (was 0.8.10+4)
> polymer_elements 0.1.2+1 (was 0.0.2) (6 newer unstable versions available)
> polymer_expressions 0.10.0-pre.1 (was 0.8.10+4)
+ polymer_ui_elements 0.1.2 (6 newer unstable versions available)
route_hierarchical 0.4.17
smoke 0.1.0-pre.2
source_maps 0.9.0
stack_trace 0.9.3+1
> template_binding 0.10.0-pre.1 (was 0.9.1)
unittest 0.10.1+2
utf 0.9.0
uuid 0.3.0
validate 1.2.4
+ web_components 0.3.3
yaml 0.9.0
I'm using Dart 1.3.0!!! so - this is the latest version for today.
I don't know what pub upgrade is doing here but it does not manage dependencies...
Any hints?
[Update]
As a workaround I change my dependencies to
dependencies:
polymer_elements:
git: https://github.com/ErikGrimes/polymer_elements
polymer_ui_elements:
git: https://github.com/ErikGrimes/polymer_ui_elements
angular: any
# git: https://github.com/angular/angular.dart
# Incompatible version constraints on html5lib:
# - angular depends on version >=0.9.2 <0.10.0
# - polymer depends on version >=0.10.0 <0.11.0
lawndart: any
validate: any
http_utils: any
Directly linking to GitHub solves almost everything.
Except Angular!!!!
Resolving dependencies... (50.0s)
< angular 0.0.7 (was 0.9.10) (15 newer versions available)
> barback 0.12.0 (was 0.11.1) (1 newer version available)
cipher 0.6.0 (1 newer version available)
< di 0.0.24 (was 0.0.34) (10 newer versions available)
Very frustrating, it took me almost 3h to get the latest polymer version and angular is still 15 versions behind.

Here is a discussion about a similar experience
https://groups.google.com/forum/#!searchin/angular-dart/0.0.7/angular-dart/PnvkUudHulg/ZtM3Y8xH_ugJ
I guess you should add version constraints on every dependency where weird (too old) versions are fetched until pub upgrade complaints that it is not able to resolve the dependencies.
This could help to find the culprit.
The pub deps command was added in Dart 1.4 to show which package dependes on which other packages.

Related

Unable to install the latest podversion of FMDB and SQLCipher

I'm currently trying to install the latest version of FNB & SQL cipher on an M1 Mac; my terminal is using Rosetta to install pods. When I try to update the FMDB using pod install it still shows the old version number - FMDB 2.7.5 -> (unused) (latest version 4.0.2). I tried clearing the pods and reinstalling but it still didn’t work ? Any suggestions?
A-9M6NHY594: pod update SQLCipher
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project
Pod installation complete! There are 24 dependencies from the Podfile and 30 total pods installed.
A-9M6NHY594:$ pod update FMDB
Updating local specs repositories
^[[A^[[A^[[AAnalyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project
Pod installation complete! There are 24 dependencies from the Podfile and 30 total pods installed.
The following pod updates are available:
- AdobeMobileSDK 4.21.1 -> 4.21.2 (latest version 4.21.2)
- AFNetworking 3.2.1 -> 3.2.1 (latest version 4.0.1)
- Alamofire 5.4.2 -> 5.6.2 (latest version 5.6.2)
- AppCenter 4.1.1 -> 4.4.3 (latest version 4.4.3)
- Charts 3.6.0 -> 4.0.3 (latest version 4.0.3)
- DocuSignESign 3.0.1 -> 3.0.1 (latest version 4.0.0-beta)
**- FMDB 2.7.5 -> (unused) (latest version 4.0.2)**
- IQKeyboardManagerSwift 6.5.6 -> 6.5.10 (latest version 6.5.10)
- JWT 3.0.0-beta.10 -> 3.0.0-beta.10 (latest version 3.0.0-beta.14)
- MBProgressHUD 0.9.2 -> 0.9.2 (latest version 1.2.0)
- MobileSync 9.0.0 -> 9.2.1 (latest version 10.1.0)
- NewRelicAgent 7.3.0 -> 7.3.7 (latest version 7.3.7)
- PromiseKit 6.13.1 -> 6.18.0 (latest version 6.18.0)
- SalesforceAnalytics 9.0.0 -> 9.2.1 (latest version 10.1.0)
- SalesforceSDKCommon 9.0.0 -> 9.2.1 (latest version 10.1.0)
- SalesforceSDKCore 9.0.0 -> 9.2.1 (latest version 10.1.0)
- SmartStore 9.0.0 -> 9.2.1 (latest version 10.1.0)
- SnapKit 5.0.1 -> 5.6.0 (latest version 5.6.0)
**- SQLCipher 4.4.3 -> 4.4.3 (latest version 4.5.2)**
- SwiftyBeaver 1.9.3 -> 1.9.5 (latest version 1.9.6)
- XMLDictionary 1.4 -> 1.4 (latest version 1.4.1)

gem install does not install rails

I have this version of ruby:
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x64-mingw32]
How do I solve this error.
ERROR: Error installing rails:
The last version of nokogiri (>= 1.6) to support your Ruby & RubyGems was 1.10.9. Try installing it with gem install nokogiri -v 1.10.9 and then running the current command again
nokogiri requires Ruby version >= 2.3, < 2.7.dev. The current ruby version is 2.7.0.0.
Currently (04-02-2020) Ruby 2.7.0 on Windows is only supported in the latest release candidate of nokogiri, see their git repo.
You can (install pre-releases)[https://guides.rubygems.org/patterns/#prerelease-gems] with the --pre flag of gem:
gem install nokogiri --pre

Mina: Can't deploy anymore: RVM with current Ruby is installed on server, but too old ruby version is used while deploying

After over a year of not touching a Rails app, I updated all gems and tried to deploy again.
I get this error:
Installing sassc 2.0.1 with native extensions
Gem::InstallError: sassc requires Ruby version >= 2.3.3.
Using rb-inotify 0.10.0
Using mime-types 3.2.2
Using coffee-script 2.4.1
Using compass-core 1.0.3
Using compass-import-once 1.0.5
Using sdoc 1.0.0
Using slim 4.0.1
Using validates_timeliness 4.1.1
Using validates_email_format_of 1.6.3
Using activesupport 5.2.3
Using loofah 2.2.3
Using axlsx 2.1.0.pre from https://github.com/randym/axlsx.git (at c8ac844#c8ac844)
Installing mobility 0.8.7
Gem::InstallError: mobility requires Ruby version >= 2.3.7.
Using css_parser 1.7.0
An error occurred while installing sassc (2.0.1), and Bundler cannot continue.
Make sure that `gem install sassc -v '2.0.1'` succeeds before bundling.
! ERROR: Deploy failed.
-----> Cleaning up build
Unlinking current
OK
Connection to XXX closed.
! Run Error
So the Ruby version used by Mina is too old (< 2.3.7).
Interestingly, when I log into the server, I see that RVM has installed Ruby 2.4.1:
$ rvm list
rvm rubies
ruby-2.2.5 [ x86_64 ]
ruby-2.3.1 [ x86_64 ]
=* ruby-2.4.1 [ x86_64 ]
After taking a closer look at Mina's output, I see:
Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
I wonder which Ruby version Mina is using? And how can I tell it to use the same version that the Rails-app uses on the server?
I'm in contact with the server support, and they are asking:
How does mina concretely work? Is this done locally or remotely on our system?
I don't know what to answer, I'm a "simple" Rails programmer with not much experience in deploying apps. It used to work perfectly a year ago, now it doesn't do anymore.
Thanks for any help.

Ionic v1 Cordova "prefs:root=" non-public URL scheme ios app rejection

My app for iOS got rejected with the following error:
Guideline 2.5.1 - Performance - Software Requirements
Your app uses the "prefs:root=" non-public URL scheme, which is a private entity. The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.
I have seen several issues opened on this subject for the native iOS app but not Cordova or Ionic. Is there a way to resolve this in Cordova? Ironically, the build that got reject has only a minor change that shows a number with 3 decimals instead of 2. Everything else is the same. Yet, it got rejected.
Below is the list of all the plugins I have:
card.io.cordova.mobilesdk 2.1.0 "CardIO"
cordova-android-support-gradle-release 0.0.2 "cordova-android-support-gradle-release"
cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-app-event 1.2.1 "Application Events"
cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-datepicker 0.9.3 "DatePicker"
cordova-plugin-device 1.1.6 "Device"
cordova-plugin-dialogs 1.3.3 "Notification"
cordova-plugin-facebook4 1.9.1 "Facebook Connect"
cordova-plugin-file 4.3.3 "File"
cordova-plugin-file-transfer 1.6.3 "File Transfer"
cordova-plugin-google-analytics 1.8.3 "Google Universal Analytics Plugin"
cordova-plugin-googleplus 5.3.1 "Google SignIn"
cordova-plugin-inappbrowser 1.7.1 "InAppBrowser"
cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.4-dev "StatusBar"
cordova-plugin-touchid 0.4.0 "Touch ID"
cordova-plugin-vibration 2.1.5 "Vibration"
cordova-plugin-whitelist 1.3.2 "Whitelist"
cordova-plugin-x-socialsharing 5.4.1 "SocialSharing"
cordova.plugins.diagnostic 3.7.1 "Diagnostic"
de.appplant.cordova.plugin.local-notification 0.8.5 "LocalNotification"
es6-promise-plugin 4.2.2 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-barcodescanner 7.0.0 "BarcodeScanner"
As #Paulw11 suggested -
Run grep -r -i 'prefs' ./* under the plugins directory
Find references to the prefs
Update the plugins.
No code changes required.
Rebuild it and submit the archive.
Note: You may have to update all the plugins. I would highly recommend making a backup of all the plugins before updating them.

Error on installing SASS on WIndows 10 and ruby version 2.5.0-1

I have tried to install Sass in Windows 10 with Ruby version 2.5.0-1 but i'm getting following error:
ERROR: Error installing sass:
The last version of ffi (< 2, >= 0.5.0) to support your Ruby & RubyGems was 1.9.18. Try installing it with gem install ffi -v 1.9.18 and then running the current command again
ffi requires Ruby version < 2.5, >= 2.0. The current ruby version is 2.5.0.
Windows 10
Ruby Installer - 2.5.0-1 (64 bit)
Gem version - 2.7.3
Thanks in advance.
ffi doesn't support 2.5 yet. Downgrade to 2.4.
Source: Error installing sass (Ruby 2.5.0.1, MSYS2 20161025.0.0)

Resources