Migrating "cryptography_flutter" package from KGP to built-in Kotlin#225
Open
drmirk wants to merge 3 commits into
Open
Migrating "cryptography_flutter" package from KGP to built-in Kotlin#225drmirk wants to merge 3 commits into
drmirk wants to merge 3 commits into
Conversation
drmirk
commented
May 31, 2026
- Flutter 3.44 is warning to migrate "cryptography_flutter" plugin to migrate to built-in kotlin form KGP. Followed the official documentation and added a check to apply the KGP only when the app's Android Gradle Plugin version is earlier than 9.
- During testing, SecretKey was making StateError. Because even after SecretKeyData instance was destroyed, there were subsequent call to its bytes getter. So, checking if it has been destroyed before accessing its bytes.
- During testing randomly got NEGATIVE_NUMBER Crash. BigInteger constructor interprets the first bit of the array as a sign bit. The 1 explicitly tells Java to treat the byte array as a positive.
…terpreted as negative numbers, 1 explicitly informs to treat the byte array as positive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.