expo-app-blocker 0.1.26 → 0.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,6 @@ public struct ExpoAppBlockerConfig {
14
14
  return appGroup
15
15
  }
16
16
  // Fallback - should be overridden
17
- return "group.expo.app-blocker"
17
+ return "group.\(Bundle.main.bundleIdentifier ?? "expo.app-blocker")"
18
18
  }
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-app-blocker",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
4
4
  "description": "Expo module for cross-platform app blocking. Android: UsageStatsManager + Overlay. iOS: Screen Time API (FamilyControls + ManagedSettings + DeviceActivity).",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -152,7 +152,8 @@ function withAppBlockerAndroid(config, pluginConfig) {
152
152
  // ──────────────────────────────────────────────────────────────────────────────
153
153
 
154
154
  function withAppBlockerIOS(config, pluginConfig) {
155
- const appGroup = pluginConfig?.ios?.appGroup || "group.expo.app-blocker";
155
+ const bundleId = config.ios?.bundleIdentifier || "expo.app-blocker";
156
+ const appGroup = pluginConfig?.ios?.appGroup || `group.${bundleId}`;
156
157
 
157
158
  config = withEntitlementsPlist(config, (config) => {
158
159
  config.modResults["com.apple.developer.family-controls"] = true;