calculateSha1Hash method
Calculates SHA-1 hash of a file.
Used to create unique identifiers for native library collections to manage caching and versioning.
filePath
Path to the file to hash.
Returns the SHA-1 hash as a hexadecimal string.
Implementation
Future<String> calculateSha1Hash(String filePath) async {
final file = File(filePath);
final bytes = await file.readAsBytes();
final digest = sha1.convert(bytes);
return digest.toString();
}