rns-nativecall 1.0.4 → 1.0.5
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
CHANGED
|
@@ -20,9 +20,21 @@ Add the plugin to your app.json or app.config.js:
|
|
|
20
20
|
```json
|
|
21
21
|
{
|
|
22
22
|
"expo": {
|
|
23
|
-
"plugins": [
|
|
23
|
+
"plugins": [
|
|
24
|
+
[
|
|
25
|
+
"expo-build-properties",
|
|
26
|
+
{
|
|
27
|
+
"android": {
|
|
28
|
+
"enableProguardInReleaseBuilds": true,
|
|
29
|
+
"extraProguardRules": "-keep class com.rnsnativecall.** { *; }\n-keep class com.facebook.react.HeadlessJsTaskService { *; }"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"rns-nativecall"
|
|
33
|
+
]
|
|
34
|
+
]
|
|
24
35
|
}
|
|
25
36
|
}
|
|
37
|
+
|
|
26
38
|
```
|
|
27
39
|
---
|
|
28
40
|
### 🛠 Usage
|
|
@@ -15,7 +15,7 @@ import androidx.core.app.NotificationCompat
|
|
|
15
15
|
import androidx.core.app.Person
|
|
16
16
|
|
|
17
17
|
object NativeCallManager {
|
|
18
|
-
const val channelId = "
|
|
18
|
+
const val channelId = "CALL_CHANNEL_V14_URGENT"
|
|
19
19
|
private var currentCallData: Map<String, String>? = null
|
|
20
20
|
|
|
21
21
|
fun getCurrentCallData(): Map<String, String>? = currentCallData
|