alexgoussev / aes_crypt

Dart encryption library for encrypting/decrypting files, plain text and binary data in AES Crypt file format
MIT License
28 stars 24 forks source link

Null Safety projects can not compile: CUSTOMBUILD : error : Cannot run with sound null safety, because the following dependencies... #19

Open longtimedeveloper opened 2 years ago

longtimedeveloper commented 2 years ago

Do you have plans to update this splendid package to Sound Null Safety?

I have a Flutter v2.10.1 Windows desktop application that I'm trying to use aes_crypt in.

When I run the project, I get this compile error:

CUSTOMBUILD : error : Cannot run with sound null safety, because the following dependencies [[D:\Code\flutters\apps\cipher_text\build\windows\flutter\flutter_assemble.vcxproj]()]

[C:\Program]() Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: 
Custom build for '[D:\Code\flutters\apps\cipher_text\build\windows\CMakeFiles\28b7fc3e7c3090088060721c2e08b791\flutter_windows.dll.rule]();
[D:\Code\flutters\apps\cipher_text\build\windows\CMakeFiles\5ca9ed3df294d6b6de1a07c2fbdb5b3a\flutter_assemble.rule]()' exited with code 1. 
[[D:\Code\flutters\apps\cipher_text\build\windows\flutter\flutter_assemble.vcxproj]()]

Exception: Build process failed.

flutter doctor

>flutter doctor -v
[√] Flutter (Channel stable, 2.10.1, on Microsoft Windows [Version 10.0.19043.1526], locale en-US)
    • Flutter version 2.10.1 at D:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db747aa133 (12 days ago), 2022-02-09 13:57:35 -0600
    • Engine revision ab46186b24
    • Dart version 2.16.1
    • DevTools version 2.9.2

Thank you for your time and consideration. Karl

longtimedeveloper commented 2 years ago

I'm using this PR https://github.com/alexgoussev/aes_crypt/pull/17

Please consider accepting this PR after you review it. Will save developers time.

Have a great day, Karl

DamonChen117 commented 2 years ago

Thanks @longtimedeveloper

I'm using your branch.

  aes_crypt:
    git:
      url: https://github.com/3htsham/aes_crypt
      ref: null_safety