Giter Site home page Giter Site logo

yeniel / version_migration Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 5.0 116 KB

Manages functions of code that need to run once on version updates in Flutter apps.

License: BSD 3-Clause "New" or "Revised" License

Dart 85.68% Java 2.58% Ruby 7.47% Objective-C 4.27%

version_migration's People

Contributors

mgonzalezc avatar romainboucher avatar yeniel avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

version_migration's Issues

Question: Why doesn't the updateFunction await?

description

โ†“I'd like to know why updateFuntion in applicationUpdate doesn't do await.
https://github.com/yeniel/version_migration/blob/master/lib/version_migration.dart#L34

In my opinion.
Since the migrationFunction in migrateToVersion is await,
I think applicationUpdate should be await as well.
https://github.com/yeniel/version_migration/blob/master/lib/version_migration.dart#L20

Because I need to use await in updateFunction.๐Ÿ™๐Ÿ™‡โ€โ™‚๏ธ

Update package dependency package_info_plus

This package is still using package_info_plus: 4.2.0 (released in Oct 15, 2023), and its preventing its update.

When trying to update to package_info_plus: 8.0.0, I receive the following error:

Resolving dependencies...
Because version_migration >=2.0.8 depends on package_info_plus ^4.1.0 and <my_app> depends on package_info_plus 8.0.0, version_migration >=2.0.8 is forbidden.
So, because <my_app> depends on version_migration 2.0.8, version solving failed.


You can try one of the following suggestions to make the pubspec resolve:
* Consider downgrading your constraint on version_migration: flutter pub add version_migration:^2.0.3
* Consider downgrading your constraint on package_info_plus: flutter pub add package_info_plus:^4.2.0
exit code 1

Downgrading is not an acceptable solution.

Can you please update the package dependency?

Update packages

As I'm writing, version_migration has the following dependencies that can be updated:

  • package_info_plus
    • ^3.0.2 => 4.1.0
  • shared_preferences
    • ^2.0.15 => 2.2.1
  • platform
    • ^3.1.0 => 3.1.2
  • file
    • ^6.1.4 => 7.0.0

I cannot update package_info_plus because of this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.