chahinebrini 50d3c6a8e1 fix(protection): Layer 2 — Family Controls default-on + Resource-Bundle-Pfad
- familyControlsEnabled jetzt default-on (Apple-Distribution-Entitlement
  freigegeben); nur REBREAK_ENABLE_FAMILY_CONTROLS=0 schaltet ab.
- gambling-domains.json ins Pod-Verzeichnis verschoben + Podspec resource_bundles
  auf within-pod-Pfad korrigiert — CocoaPods buendelt keine Dateien ausserhalb
  des Pod-Roots (Bundle blieb sonst leer → Layer 2 griff nicht).
- Layer 2 (webContent-Filter) damit verifiziert funktionierend.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 20:13:57 +02:00

38 lines
1.6 KiB
Ruby

Pod::Spec.new do |s|
s.name = 'RebreakProtection'
s.version = '0.1.0'
s.summary = 'ReBreak unified protection — NEFilter + Family Controls.'
s.description = 'Single native module that wraps NEFilterDataProvider + AuthorizationCenter + ManagedSettings for the ReBreak gambling-recovery app.'
s.author = 'ReBreak'
s.homepage = 'https://rebreak.org'
s.license = { :type => 'Proprietary' }
s.platforms = { :ios => '15.1', :tvos => '15.1' }
s.swift_version = '5.9'
s.source = { :git => '' }
s.static_framework = true
s.dependency 'ExpoModulesCore'
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
'SWIFT_COMPILATION_MODE' => 'wholemodule',
}
# NUR Top-Level-Sources ins Hauptmodul. RebreakURLFilter/ enthält Sources
# für die NetworkExtension — die werden vom Config-Plugin in ein separates
# Xcode-Target gepackt, NICHT in die Hauptmodul-Lib.
s.source_files = '*.{h,m,mm,swift,hpp,cpp}'
s.exclude_files = 'RebreakURLFilter/**/*'
# Layer-2 (webContent-Filter): gebündelte Gambling-Domain-Liste pro Land.
# Wird als eigenständiges Resource-Bundle (RebreakProtectionResources.bundle)
# ins App-Bundle gepackt — RebreakProtectionModule.swift liest es zur Laufzeit
# via RebreakProtectionResources.bundle/gambling-domains.json.
# WICHTIG: Die JSON MUSS im Pod-Verzeichnis liegen (neben dieser Podspec).
# CocoaPods bündelt resource_bundles-Dateien NICHT, wenn der Pfad aus dem
# Pod-Root herauszeigt (`../../../assets/...` → Bundle blieb leer).
s.resource_bundles = {
'RebreakProtectionResources' => ['gambling-domains.json']
}
end