flutter_minizip_ffi_bindings

FFI bindings for zlib-ng/minizip-ng made using dart-lang/ffigen and trivial trick.

Notes

This package does not include binary library of minizip.

Build your libminizip and add to your app project or example project.

Run example on Android

  • Build your android libminizip
  • Copy built libminizip.so into example/android/app/src/main/jniLibs/
example/android/app/src/main/jniLibs/
├── arm64-v8a
│   └── libminizip.so
├── armeabi-v7a
│   └── libminizip.so
├── x86
│   └── libminizip.so
└── x86_64
    └── libminizip.so
  • cd example && flutter run

Run example on iOS

  • Build your iOS libminizip
  • Copy built libminizip.3.0.dylib and include/ into example/ios/Runner/minizip/
example/ios/Runner/minizip/
├── include
│   ├── mz.h
│   ...
│   └── mz_zip_rw.h
└── libminizip.3.0.dylib
  • cd example && flutter run

Using this package with your app project

  • Add this package as dev_dependency in your pubspec.yaml
  • Build your libminizip and add libminizip to your app's native project
  • import 'package:flutter_minizip_ffi_bindings/flutter_minizip_ffi_bindings.dart';