ProtonDriveSync icon indicating copy to clipboard operation
ProtonDriveSync copied to clipboard

Cannot build the plugin

Open PhilippC opened this issue 6 months ago • 1 comments

Following #18, I am trying to build the plugin (first on Windows before I move to Android). I cannot build because in the line

PgpEncryptedDataGenerator.PubMethod pubMeth = (PgpEncryptedDataGenerator.PubMethod)pk.methods[0];

PubMethod is a private class and thus cannot be accessed. I am using BouncyCastle.Cryptography.2.6.1 (also tried 2.4.0 and others) and PgpCore 5.10.

The .csproj file is not specific regarding the BouncyCastle version:

<Reference Include="BouncyCastle.Cryptography, Version=2.0.0.0, Culture=neutral, PublicKeyToken=072edcf4a5328938, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\packages\BouncyCastle.Cryptography\net461\BouncyCastle.Cryptography.dll</HintPath>
    </Reference>

Can you make this explicit or post here which version you are using?

Thank you!

PhilippC avatar Jun 24 '25 09:06 PhilippC

Hi 👋

If I remember correctly I actually recompiled the dependency after switching some classes to public. Not ideal but I didn't know of any better solution at the time...

dhaven avatar Jul 21 '25 16:07 dhaven