davidmartos96 / sqflite_sqlcipher

SQLite flutter plugin
BSD 2-Clause "Simplified" License
102 stars 46 forks source link

how to use #2

Closed AndreaMiotto closed 5 years ago

AndreaMiotto commented 5 years ago

Hi, it's not clear to me how to install the package and how to use it. Any tips?

Thanks

davidmartos96 commented 5 years ago

Yes, you are right. I should add some instructions on the README.

This is what you need to add to the pubspec.yml:

sqflite:
    git:
      url: https://www.github.com/davidmartos96/sqflite_sqlcipher.git
      path: sqflite
      ref: 889a156

The ref tag is just to point to one specific commit. Safer than using master directly, although I don't intend to make any commits because the fork has been working great for my use case.

yoavrofe commented 5 years ago

Thanks, david. Amazing job. Why do we need the 'ref' part?

davidmartos96 commented 5 years ago

@yoavrofe The ref part is not mandatory, but I like to use it to refer to specific commit when merging with the latest sqflite changes. I had some issues in the past when using ref: master or not ref at all because the latest changes in the repo where not picked by flutter packages get