# Hermetic Integration Guide

This package (`infusion_ffi`) has been configured to use **local, hermetic binaries** instead of downloading them.

## 1. Build the Artifacts
From the root of the `infusion` repository, run:

```bash
chmod +x scripts/build_sdks.sh
./scripts/build_sdks.sh
```

## 2. Install Artifacts into Package
Copy the generated binaries into this package structure:

### Android
```bash
# Create libs dir if needed
mkdir -p third_party/infusion_ffi/android/libs

# Copy AAR
cp android/infusion-ffi/build/outputs/aar/*-release.aar third_party/infusion_ffi/android/libs/
```

### iOS
```bash
# Copy XCFramework
cp -R build/InfusionFFI.xcframework third_party/infusion_ffi/ios/
```

## 3. Integrate into PROBELEZA
1. Copy the entire `third_party/infusion_ffi` folder to `PROBELEZA/third_party/infusion`.
2. In `PROBELEZA/pubspec.yaml`:

```yaml
dependencies:
  infusion_ffi:
    path: third_party/infusion
```

3. Run `flutter pub get`.

Done! Your app now uses the hermetic, locally-compiled Infusion library.
