@klyftig/android-perms 0.1.0 → 0.2.0
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.
- package/README.md +5 -0
- package/android/build.gradle +5 -13
- package/index.ts +1 -1
- package/package.json +23 -4
package/README.md
CHANGED
|
@@ -21,3 +21,8 @@ and the Settings "alarm health" rows.
|
|
|
21
21
|
|
|
22
22
|
Off-device (iOS / web / jest) every probe returns a safe default. Autolinks
|
|
23
23
|
from `node_modules`; needs a dev client.
|
|
24
|
+
|
|
25
|
+
Requires Expo SDK 55+ (peers: `expo >=55`, `react >=19`, `react-native >=0.83`;
|
|
26
|
+
tested on SDK 58 / RN 0.88). Do not add `expo-modules-core` to the app: it ships
|
|
27
|
+
with `expo`. The Android build uses `expo-module-gradle-plugin`, so compileSdk
|
|
28
|
+
follows the app's root project. See `CHANGELOG.md`.
|
package/android/build.gradle
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
plugins {
|
|
2
|
+
id 'com.android.library'
|
|
3
|
+
id 'expo-module-gradle-plugin'
|
|
4
|
+
}
|
|
3
5
|
|
|
4
6
|
group = 'expo.modules.sleepwiseandroidperms'
|
|
5
|
-
version = '0.
|
|
6
|
-
|
|
7
|
-
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
8
|
-
apply from: expoModulesCorePlugin
|
|
9
|
-
applyKotlinExpoModulesCorePlugin()
|
|
10
|
-
useCoreDependencies()
|
|
11
|
-
useDefaultAndroidSdkVersions()
|
|
12
|
-
useExpoPublishing()
|
|
7
|
+
version = '0.2.0'
|
|
13
8
|
|
|
14
9
|
android {
|
|
15
10
|
namespace "expo.modules.sleepwiseandroidperms"
|
|
16
|
-
defaultConfig {
|
|
17
|
-
minSdkVersion 24
|
|
18
|
-
}
|
|
19
11
|
}
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* jest), so the permissions helper never has to branch on platform itself.
|
|
5
5
|
*/
|
|
6
6
|
import { Platform } from 'react-native';
|
|
7
|
-
import { requireNativeModule } from 'expo
|
|
7
|
+
import { requireNativeModule } from 'expo';
|
|
8
8
|
|
|
9
9
|
interface NativePerms {
|
|
10
10
|
canUseFullScreenIntent(): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@klyftig/android-perms",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Android alarm-permission status + settings deep links notifee doesn't cover (full-screen intent, DND access, overlay, manufacturer)",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"types": "index.ts",
|
|
@@ -9,8 +9,13 @@
|
|
|
9
9
|
"expo-module.config.json",
|
|
10
10
|
"android/build.gradle",
|
|
11
11
|
"android/src",
|
|
12
|
-
"ios"
|
|
12
|
+
"ios",
|
|
13
|
+
"!**/*.test.ts"
|
|
13
14
|
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "jest",
|
|
17
|
+
"typecheck": "tsc --noEmit"
|
|
18
|
+
},
|
|
14
19
|
"keywords": [
|
|
15
20
|
"expo",
|
|
16
21
|
"expo-module",
|
|
@@ -20,8 +25,22 @@
|
|
|
20
25
|
],
|
|
21
26
|
"license": "UNLICENSED",
|
|
22
27
|
"peerDependencies": {
|
|
23
|
-
"expo": "
|
|
24
|
-
"
|
|
28
|
+
"expo": ">=55.0.0",
|
|
29
|
+
"react": ">=19.0.0",
|
|
30
|
+
"react-native": ">=0.83.0"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@types/jest": "^29.5.14",
|
|
34
|
+
"@types/node": "^22.0.0",
|
|
35
|
+
"@types/react": "~19.3.0",
|
|
36
|
+
"@types/semver": "^7.8.0",
|
|
37
|
+
"expo": "~58.0.23",
|
|
38
|
+
"jest": "^29.7.0",
|
|
39
|
+
"jest-expo": "~58.0.14",
|
|
40
|
+
"react": "19.3.0",
|
|
41
|
+
"react-native": "0.88.1",
|
|
42
|
+
"semver": "^7.8.6",
|
|
43
|
+
"typescript": "^6.0.2"
|
|
25
44
|
},
|
|
26
45
|
"publishConfig": {
|
|
27
46
|
"access": "public"
|