Files
ai-disclosure-standard/internal/app/licensing.go
T
jbergner 881d93ddd9
release-tag / release-image (push) Failing after 1m10s
R
2026-07-24 07:26:32 +02:00

38 lines
937 B
Go

package app
import (
_ "embed"
"fmt"
"github.com/b1tsblog/license-platform/pkg/licensekit"
)
const (
<<<<<<< HEAD
ProductID = "ai-disclosure-standard"
ProductVersion = "2.0.0"
FeatureCustomText = "custom_text"
FeatureCustomBadge = "custom_badge"
FeatureWhiteLabel = "white_label"
FeatureBulkAPI = "bulk_api"
FeatureExportBundle = "export_bundle"
=======
ProductID = "ai-disclosure-standard"
ProductVersion = "1.8.2"
FeatureCustomText = "custom_text"
FeatureCustomBadge = "custom_badge"
FeatureWhiteLabel = "white_label"
>>>>>>> ec58fc30f840ce85ea06eb3d07457640a84f941c
)
//go:embed trusted_keys.json
var embeddedTrustStore []byte
func productTrustStore() (licensekit.TrustStore, error) {
store, err := licensekit.ParseTrustStore(embeddedTrustStore)
if err != nil {
return licensekit.TrustStore{}, fmt.Errorf("embedded license trust store: %w", err)
}
return store, nil
}