flutter_zstd_safe 1.0.2 copy "flutter_zstd_safe: ^1.0.2" to clipboard
flutter_zstd_safe: ^1.0.2 copied to clipboard

Zstandard compression plugin built with NDK r26 and 16 KB page support

flutter_zstd_safe #

pub package

A minimal, production-ready Flutter plugin for Zstandard (zstd) compression on Android, built with NDK r26 and 16 KB page size support.

Features #

  • 🚀 Fast: Uses Facebook's official zstd C library.
  • 🛡️ Safe: Namespace-isolated JNI symbols to avoid collisions.
  • Google Play Ready: Compliant with Android 15's 16 KB page size requirement.
  • 📱 Android Support:
    • arm64-v8a, armeabi-v7a, x86_64
    • NDK r26.3.11579264

Usage #

import 'package:flutter_zstd_safe/flutter_zstd_safe.dart';

// Compress data
final Uint8List input = ...;
final Uint8List? compressed = await FlutterZstdSafe.compress(input);

if (compressed != null) {
  print('Original: ${input.length}, Compressed: ${compressed.length}');
}

Installation #

Add to your pubspec.yaml:

dependencies:
  flutter_zstd_safe: ^1.0.1

Android Configuration #

This plugin automatically configures the necessary NDK version and ABI filters. No additional setup in your android/build.gradle is usually required.

However, ensure your app supports the ABIs provided:

  • arm64-v8a
  • armeabi-v7a
  • x86_64

License #

MIT License. See LICENSE for details.

0
likes
0
points
49
downloads

Publisher

unverified uploader

Weekly Downloads

Zstandard compression plugin built with NDK r26 and 16 KB page support

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_zstd_safe

Packages that implement flutter_zstd_safe