lohanidamodar / pdf_viewer

A flutter plugin for handling PDF files. Works on both Android & iOS
https://pub.dev/packages/advance_pdf_viewer
BSD 3-Clause "New" or "Revised" License
61 stars 145 forks source link

Version 2.0.2 not available on pub.dev #117

Open frankperez87 opened 2 years ago

frankperez87 commented 2 years ago

The latest release of version 2.0.2 is tagged in GitHub but not available on pub.dev

I've tried this version on Android and it seems to solve the crashing issue that everyone is having. Is there any reason I cannot use this version, or can we get that on to pub.dev to use?

To use it in the meantime within my project I updated my pubspec.yaml to show like this

  advance_pdf_viewer:
    git:
      url: git@github.com:lohanidamodar/pdf_viewer.git
      ref: 4e5d96be29de515f1081c0b6897741b8dca84722
mumairofficial commented 2 years ago

@frankperez87 I am getting this error after trying purposed solution. I think this is something related to my configurations but can you help me?

pub get failed (server unavailable) -- attempting retry 7 in 64 seconds...
Git error. Command: `git clone --mirror git@github.com:lohanidamodar/pdf_viewer.git /Users/username/Developer/flutter/.pub-cache/git/cache/pdf_viewer-82ab6a243193a92c143e8d94d0f623fb0f089a6e`
stdout: 
stderr: Cloning into bare repository '/Users/username/Developer/flutter/.pub-cache/git/cache/pdf_viewer-82ab6a243193a92c143e8d94d0f623fb0f089a6e'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
exit code: 128
mumairofficial commented 2 years ago

I figured it out, ssh was messed up so I use the https, following worked for me:

  advance_pdf_viewer:
    git:
      url: https://github.com/lohanidamodar/pdf_viewer.git
      ref: 4e5d96be29de515f1081c0b6897741b8dca84722
akabisdev commented 2 years ago

Hi,

Although the providing git ref works fine, but do we have any update on why version 2.0.2 not available on pub.dev?

albertoazinar commented 2 years ago

Hi,

Although the providing git ref works fine, but do we have any update on why version 2.0.2 not available on pub.dev?

The https version worked for me too. 👌