nn-license
v1.0.0
Published
Binary license validator for nn-llm and nn-transcriber (compiled xcframework)
Maintainers
Readme
nn-license
Binary license validator for nn-llm and nn-transcriber packages.
What is this?
This package ships a compiled xcframework (NNLicense.xcframework) that validates license keys at runtime. The source code is compiled to binary so it cannot be easily read or modified by end-users.
How it works
Other packages (nn-llm, nn-transcriber) depend on this pod and call:
import NNLicense
let valid = LicenseValidator.isValid("NK-xxxx...")Building the xcframework
If you modify the source code in Sources/NNLicense/, rebuild the xcframework:
cd packages/nn-license
chmod +x build-xcframework.sh
./build-xcframework.shThis compiles LicenseValidator.swift → ios/Frameworks/NNLicense.xcframework (binary only, no source).
Architecture
packages/nn-license/
├── Sources/NNLicense/ ← Source code (author only)
│ └── LicenseValidator.swift
├── build-xcframework.sh ← Build script
├── ios/
│ ├── NNLicense.podspec ← CocoaPods spec (ships xcframework)
│ └── Frameworks/
│ └── NNLicense.xcframework ← Compiled binary (committed to repo)
├── expo-module.config.json ← Expo auto-linking
└── package.jsonUsage in other modules
Add dependency in podspec:
s.dependency 'NNLicense'Import and use:
import NNLicense let isLicensed = LicenseValidator.isValid(key)
