I'm developing a Flutter SDK that I want to distribute to integrators without exposing my source code. I've seen packages like zolozkit_for_flutter on pub.dev that don't show their source code (GitHub link) but are still available for use.
My requirements:
- Protect proprietary implementation details
- Allow easy integration via pub.dev or private repository
- Prevent reverse engineering as much as possible
My project is currently structured as a Flutter module.
What's the recommended approach to convert this into a binary-only package similar to zolozkit_for_flutter?
Specifically:
- How to compile to binary artifacts (AAR/Framework)?
- What should the package structure look like?
- How to properly reference these binaries in pubspec.yaml?
- Can I still publish to pub.dev without exposing a source repository?
flutter pub publishregardless if the package is in Github (or any version-control software). The connection to Github (or any other version-control saas) is made by the "repository" attribute in pubspec.yaml. Just omit it.