forked from S2BR/nativephp-mobile-icon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnativephp.json
More file actions
62 lines (57 loc) · 2.24 KB
/
Copy pathnativephp.json
File metadata and controls
62 lines (57 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"namespace": "MobileIcon",
"bridge_functions": [
{
"name": "MobileIcon.Set",
"android": "com.s2br.plugins.mobileicon.MobileIconFunctions.Set",
"ios": "MobileIconFunctions.Set",
"description": "Switch the app icon to a named, build-time-bundled variant"
},
{
"name": "MobileIcon.Reset",
"android": "com.s2br.plugins.mobileicon.MobileIconFunctions.Reset",
"ios": "MobileIconFunctions.Reset",
"description": "Reset the app icon back to the default (primary) icon"
},
{
"name": "MobileIcon.Current",
"android": "com.s2br.plugins.mobileicon.MobileIconFunctions.Current",
"ios": "MobileIconFunctions.Current",
"description": "Return the name of the currently active icon variant (null = default)"
},
{
"name": "MobileIcon.Supported",
"android": "com.s2br.plugins.mobileicon.MobileIconFunctions.Supported",
"ios": "MobileIconFunctions.Supported",
"description": "Whether runtime alternate icons are supported on this device"
},
{
"name": "MobileIcon.SetBadge",
"android": "com.s2br.plugins.mobileicon.MobileIconFunctions.SetBadge",
"ios": "MobileIconFunctions.SetBadge",
"description": "Set the app icon badge counter. iOS sets the exact number; Android posts a quiet local notification so its launcher shows a dot/count (0 clears)."
},
{
"name": "MobileIcon.ClearBadge",
"android": "com.s2br.plugins.mobileicon.MobileIconFunctions.ClearBadge",
"ios": "MobileIconFunctions.ClearBadge",
"description": "Clear the app icon badge (iOS sets it to 0; Android cancels the badge notification)"
}
],
"android": {
"min_version": 26,
"permissions": [
"android.permission.POST_NOTIFICATIONS"
]
},
"ios": {
"min_version": "18.0"
},
"events": [
"S2BR\\MobileIcon\\Events\\AppIconChanged"
],
"hooks": {
"pre_compile": "nativephp:mobile-icon:pre-compile",
"copy_assets": "nativephp:mobile-icon:copy-assets"
}
}