imaji_binary_sdk 0.1.1 copy "imaji_binary_sdk: ^0.1.1" to clipboard
imaji_binary_sdk: ^0.1.1 copied to clipboard

Generate a Flutter plugin or a native SwiftPM + Gradle wrapper for a closed-source binary SDK (xcframework, aar), with the vendor binary optional at build time.

example/example.dart

import 'package:imaji_binary_sdk/imaji_binary_sdk.dart';

/// Lists the files `imaji-binary-sdk` would generate for a fictional vendor
/// SDK, without writing anything. Same as the CLI's `--dry-run`.
void main() {
  final spec = BridgeSpec(
    pluginName: 'acme_ads',
    organization: 'com.example',
    iosFrameworkName: 'AcmeSDK',
    androidAarName: 'AcmeSDK',
  );

  // The constructor validates the spec and throws on an illegal name.
  final generator = BridgeGenerator(spec);

  for (final file in generator.plan()) {
    print(file.relativePath);
  }

  // `generator.write('packages')` would create packages/acme_ads/ on disk.
}
0
likes
160
points
59
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Generate a Flutter plugin or a native SwiftPM + Gradle wrapper for a closed-source binary SDK (xcframework, aar), with the vendor binary optional at build time.

Repository (GitHub)
View/report issues
Contributing

Topics

#swift-package-manager #xcframework #gradle #code-generation #flutter-plugin

License

MIT (license)

Dependencies

args, path

More

Packages that depend on imaji_binary_sdk