expo-app-blocker 0.1.37 → 0.1.38
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.
|
@@ -90,12 +90,8 @@ class ExpoAppBlockerModule : Module() {
|
|
|
90
90
|
|
|
91
91
|
AsyncFunction("getInstalledApps") {
|
|
92
92
|
val pm = context.packageManager
|
|
93
|
-
val
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
val apps = pm.queryIntentActivities(intent, 0)
|
|
97
|
-
apps.mapNotNull { resolveInfo ->
|
|
98
|
-
val appInfo = resolveInfo.activityInfo.applicationInfo
|
|
93
|
+
val allApps = pm.getInstalledApplications(0)
|
|
94
|
+
allApps.mapNotNull { appInfo ->
|
|
99
95
|
if (appInfo.flags and ApplicationInfo.FLAG_SYSTEM != 0) return@mapNotNull null
|
|
100
96
|
if (appInfo.packageName == context.packageName) return@mapNotNull null
|
|
101
97
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-app-blocker",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.38",
|
|
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",
|