logger_flutter icon indicating copy to clipboard operation
logger_flutter copied to clipboard

Update logger dependency

Open boskokg opened this issue 5 years ago • 18 comments
trafficstars

logger_flutter 0.7.1 depends on logger ^0.7.0 and no versions of logger_flutter match >0.7.1 <0.8.0, logger_flutter ^0.7.1 requires logger ^0.7.0.

boskokg avatar Dec 19 '19 15:12 boskokg

https://github.com/leisim/logger_flutter/pull/7

JEuler avatar Dec 24 '19 17:12 JEuler

You can always do something like:

logger_flutter: git: url: https://github.com/JEuler/logger_flutter.git

But preferable if you fork it into your own acc, because I can remove it sometime somehow. :)

JEuler avatar Dec 24 '19 17:12 JEuler

still the same problem.

keitoro avatar Jan 28 '20 10:01 keitoro

@leisim

britannio avatar Jan 31 '20 18:01 britannio

Could @leisim please merge the PR?

voivoed avatar Mar 03 '20 04:03 voivoed

+1 for this, because I'm using flutter web and I need the logconsole to work with the current patched logger 0.9.1 ;) At the moment I'm using the workaournd by Jeuler in pubspec.yaml but I think its better to release a new version with the dependency fixed

Cocotus avatar Apr 22 '20 21:04 Cocotus

Yeah, it would be really nice if you release new version, @leisim :) https://github.com/leisim/logger_flutter/pull/8 I create new PR for this, I'm sure you know how to publish update for package :D But anyway, this will make it easier.

JEuler avatar Apr 23 '20 05:04 JEuler

Well I tried to use newest logger together with current logconsole and I got errors, because a Callback method is not supported in the current logger version. I dont know how to fix this myself but I think this needs some compatibility work to work with the latest logger version? Can anybody verify this?

Cocotus avatar Apr 23 '20 09:04 Cocotus

Yeah, it is not working for the last version. I've checked. Hm.

JEuler avatar Apr 23 '20 09:04 JEuler

So we need to use LogOutput. I will have a look later on weekend days. :)

JEuler avatar Apr 24 '20 07:04 JEuler

Using the workaround provided, but a gentle +1 that an update would be appreciated. :)

raywhiteside avatar May 10 '20 20:05 raywhiteside

still has dependency error on the official package

tienthanh2509 avatar Jul 22 '20 02:07 tienthanh2509

Any update on this?

k415hu avatar Aug 11 '20 23:08 k415hu

this is working for me :

logger: 0.7.0+1 logger_flutter: ^0.7.1

g-balas avatar Aug 13 '20 16:08 g-balas

Hey @leisim any update on this? The issue persists! :)

PoojaB26 avatar Sep 20 '20 19:09 PoojaB26

https://github.com/leisim/logger_flutter/pull/9/files - maybe you can use this PR.

logger_flutter:
git:
	url: https://github.com/ewertonrp/logger_flutter

Like this

All credits to @ewertonrp

JEuler avatar Sep 20 '20 19:09 JEuler

For me this worked:

logger_flutter:
    git: https://github.com/ewertonrp/logger_flutter.git

zierka avatar Oct 10 '20 13:10 zierka

Seems to break again with the nullsafe version of logger:

logger: ^1.0.0-nullsafety.0 #^0.9.4
logger_flutter: #^0.7.1
  git: https://github.com/ewertonrp/logger_flutter.git
Because every version of logger_flutter from git depends on logger >=0.7.0 <1.0.0 and logging_test depends on logger ^1.0.0-nullsafety.0, logger_flutter from git is forbidden.
So, because logging_test depends on logger_flutter from git, version solving failed.
pub get failed (1; So, because logging_test depends on logger_flutter from git, version solving failed.)

IanWorthington avatar Mar 07 '21 21:03 IanWorthington