-
Notifications
You must be signed in to change notification settings - Fork 40
feat: callkit/telecom integration #2028
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
greenfrvr
wants to merge
87
commits into
main
Choose a base branch
from
feat/callkit-telecom-integration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+11,845
−5,848
Open
Changes from 65 commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
cf3cc37
feat: callkit/telecom integration
greenfrvr 06a19b2
feat: improved Android intent handling, fixed permissions check for v…
greenfrvr 5542009
feat: adjusted notification channels creation and notification postin…
greenfrvr d6e4585
feat: added android ringtone support
greenfrvr 799e1ec
feat: added android <26 handling
greenfrvr 3c34548
feat: added registered call check on turbomodule side
greenfrvr 6a12d55
chore: removed unused param
greenfrvr a920507
feat: added android notification timer
greenfrvr d8e53bc
feat: added outcoming call support
greenfrvr da0901e
chore: code cleanup
greenfrvr 7ad9360
feat: added ringtone support to ios
greenfrvr d374c9b
feat: added calls history for ios
greenfrvr 95b45d1
feat: added image support for ios
greenfrvr 151f36a
feat: made outcoming calls support optional
greenfrvr ad13d90
chore: code cleanup
greenfrvr 7906d79
feat: added optional default audio session creation
greenfrvr 53f2036
feat: made Android permissions adjustable
greenfrvr fa6729b
feat: adjusted android endCall behavior
greenfrvr 0a2ca4e
chore: adjusted android setup params
greenfrvr 2952fc1
feat: updated expo plugins
greenfrvr 2f2709b
feat: adjusted answer call events behavior
greenfrvr b0ffbab
feat: answer/end callbacks tweaks
greenfrvr 6b05cc1
feat: added registered call check
greenfrvr 2d5fbc2
chore: prevent service crash in case of multiple simultaneous calls
greenfrvr 86310e0
Merge commit '1a695dcb43c4c0d94230f8ebce9b8eb3424c1b7d' into feat/cal…
greenfrvr c3cb755
removed yarnrc
santhoshvai 21c34ff
fix: removed local yarnrc
greenfrvr 457bd3b
Merge branch 'feat/callkit-telecom-integration' of https://github.com…
greenfrvr f21c242
add to rn deps
santhoshvai 29f33eb
fix: fixed service unbinding
greenfrvr 1ab4ca4
fix: added lock for call register
greenfrvr 683f1a5
chore: adjusted start call timing
greenfrvr 30cd141
feat: added delayed events handling
greenfrvr 91ec82a
fix: reverted states condition
greenfrvr eb2446f
Merge branch 'main' into feat/callkit-telecom-integration
greenfrvr 31637bc
chore: adjusted state changes conditions
greenfrvr 448f927
fix: fixed foreground flag wrong setup
greenfrvr 0d1514f
chore: adjusted states conditions for different cases
greenfrvr 6eae7b4
feat: adjusted calls interruption implementation
greenfrvr 92afefa
fix: adjusted accept call condition
greenfrvr fc50dac
Merge branch 'main' into feat/callkit-telecom-integration
greenfrvr 86875ce
chore: made js setup timeout adjustable
greenfrvr 13e4637
chore: removed outdated types, small type tweaks
greenfrvr a410029
chore: removed redundant dependencies
greenfrvr 247c739
chore: removed example app
greenfrvr 700653a
chore: refactor android package name
greenfrvr a07d253
chore: dogfood delegate cleanup
greenfrvr 678c580
chore: renamed package, added nx setup
greenfrvr f76174e
chore: clean up
greenfrvr 2fd21cd
chore: adjusted rn version
greenfrvr 480d07a
chore: added module docs
greenfrvr 5408c15
chore: types tweaks
greenfrvr d152abf
feat: added rejectCallWhenBusy property
greenfrvr ba6c119
chore: updated yarn.lock
greenfrvr 381592d
feat: adjusted rejectCallWhenBusy storage
greenfrvr 7059398
Merge branch 'main' into feat/callkit-telecom-integration
greenfrvr 4c85828
chore: migrated ios module to swift
greenfrvr 63f9245
chore: small tweaks for expo sample app
greenfrvr e5fa786
chore: adjusted default ios params
greenfrvr 37943c1
chore: small tweaks
greenfrvr 37f7a55
chore: refactored setup call
greenfrvr 35835f4
feat: improved ongoing call support
greenfrvr e5c5cb8
chore: pass completion callback for smoother future integration
greenfrvr 67188f4
chore: refactored repo classes
greenfrvr 8153dea
chore: renamed command names
greenfrvr 4fe1a16
chore: removed auto permissions and ongoing calls configurable params
greenfrvr 18a8364
fix: fixed pr comments
greenfrvr 3f76594
Merge remote-tracking branch 'origin/feat/callkit-telecom-integration…
greenfrvr 19ec183
chore: updated startForeground invocation timing
greenfrvr 7b9d8bd
chore: refactored background task promise instantiation
greenfrvr 12dcb64
chore: pr comments fixes
greenfrvr e8a0a6a
chore: adjusted headless task behavior
greenfrvr ff4ffc2
feat: removed voip push notifications dependency
greenfrvr 1a8ea95
feat: updated expo plugins
greenfrvr 551ff91
chore: adjusted start foreground invocation
greenfrvr af9580f
Merge branch 'main' into feat/callkit-telecom-integration
greenfrvr 6fe17e4
feat: implement our own keep call alive foreground service instead of…
santhoshvai fc7c689
chore: revert Krisp SDK formatting changes to match upstream
greenfrvr 97d7724
chore: adjusted logs
greenfrvr 9814da9
chore: default audio session params + reject when busy adjustment
greenfrvr 9063c25
fix: stick with 23.7.x firebase pacakge
greenfrvr e942387
chore: plugins tweaks
greenfrvr 091291d
chore: updated tests
greenfrvr 2a9d198
fix: lint fixes
greenfrvr 4406e1c
chore: removed redundant files
greenfrvr e3d4443
fix: coderabbit fixes
greenfrvr cdfd332
Merge branch 'main' into feat/callkit-telecom-integration
greenfrvr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7,124 changes: 4,410 additions & 2,714 deletions
7,124
packages/audio-filters-web/src/krispai/dist/krispsdk.es5.js
Large diffs are not rendered by default.
Oops, something went wrong.
4,140 changes: 2,340 additions & 1,800 deletions
4,140
packages/audio-filters-web/src/krispai/dist/krispsdk.js
Large diffs are not rendered by default.
Oops, something went wrong.
3,735 changes: 2,094 additions & 1,641 deletions
3,735
packages/audio-filters-web/src/krispai/dist/krispsdk.mjs
Large diffs are not rendered by default.
Oops, something went wrong.
4,427 changes: 2,500 additions & 1,927 deletions
4,427
packages/audio-filters-web/src/krispai/dist/usermedia.js
Large diffs are not rendered by default.
Oops, something went wrong.
4,089 changes: 2,287 additions & 1,802 deletions
4,089
packages/audio-filters-web/src/krispai/dist/usermedia.mjs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # EditorConfig helps developers define and maintain consistent | ||
| # coding styles between different editors and IDEs | ||
| # editorconfig.org | ||
|
|
||
| root = true | ||
|
|
||
| [*] | ||
|
|
||
| indent_style = space | ||
| indent_size = 2 | ||
|
|
||
| end_of_line = lf | ||
| charset = utf-8 | ||
| trim_trailing_whitespace = true | ||
| insert_final_newline = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| *.pbxproj -text | ||
| # specific for windows script files | ||
| *.bat text eol=crlf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /android/bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| v22.20.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,132 @@ | ||
| # Contributor Covenant Code of Conduct | ||
|
|
||
| ## Our Pledge | ||
|
|
||
| We as members, contributors, and leaders pledge to make participation in our | ||
| community a harassment-free experience for everyone, regardless of age, body | ||
| size, visible or invisible disability, ethnicity, sex characteristics, gender | ||
| identity and expression, level of experience, education, socio-economic status, | ||
| nationality, personal appearance, race, caste, color, religion, or sexual | ||
| identity and orientation. | ||
|
|
||
| We pledge to act and interact in ways that contribute to an open, welcoming, | ||
| diverse, inclusive, and healthy community. | ||
|
|
||
| ## Our Standards | ||
|
|
||
| Examples of behavior that contributes to a positive environment for our | ||
| community include: | ||
|
|
||
| - Demonstrating empathy and kindness toward other people | ||
| - Being respectful of differing opinions, viewpoints, and experiences | ||
| - Giving and gracefully accepting constructive feedback | ||
| - Accepting responsibility and apologizing to those affected by our mistakes, | ||
| and learning from the experience | ||
| - Focusing on what is best not just for us as individuals, but for the overall | ||
| community | ||
|
|
||
| Examples of unacceptable behavior include: | ||
|
|
||
| - The use of sexualized language or imagery, and sexual attention or advances of | ||
| any kind | ||
| - Trolling, insulting or derogatory comments, and personal or political attacks | ||
| - Public or private harassment | ||
| - Publishing others' private information, such as a physical or email address, | ||
| without their explicit permission | ||
| - Other conduct which could reasonably be considered inappropriate in a | ||
| professional setting | ||
|
|
||
| ## Enforcement Responsibilities | ||
|
|
||
| Community leaders are responsible for clarifying and enforcing our standards of | ||
| acceptable behavior and will take appropriate and fair corrective action in | ||
| response to any behavior that they deem inappropriate, threatening, offensive, | ||
| or harmful. | ||
|
|
||
| Community leaders have the right and responsibility to remove, edit, or reject | ||
| comments, commits, code, wiki edits, issues, and other contributions that are | ||
| not aligned to this Code of Conduct, and will communicate reasons for moderation | ||
| decisions when appropriate. | ||
|
|
||
| ## Scope | ||
|
|
||
| This Code of Conduct applies within all community spaces, and also applies when | ||
| an individual is officially representing the community in public spaces. | ||
| Examples of representing our community include using an official e-mail address, | ||
| posting via an official social media account, or acting as an appointed | ||
| representative at an online or offline event. | ||
|
|
||
| ## Enforcement | ||
|
|
||
| Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
| reported to the community leaders responsible for enforcement at | ||
| [INSERT CONTACT METHOD]. | ||
| All complaints will be reviewed and investigated promptly and fairly. | ||
|
|
||
| All community leaders are obligated to respect the privacy and security of the | ||
| reporter of any incident. | ||
|
|
||
| ## Enforcement Guidelines | ||
|
|
||
| Community leaders will follow these Community Impact Guidelines in determining | ||
| the consequences for any action they deem in violation of this Code of Conduct: | ||
|
|
||
| ### 1. Correction | ||
|
|
||
| **Community Impact**: Use of inappropriate language or other behavior deemed | ||
| unprofessional or unwelcome in the community. | ||
|
|
||
| **Consequence**: A private, written warning from community leaders, providing | ||
| clarity around the nature of the violation and an explanation of why the | ||
| behavior was inappropriate. A public apology may be requested. | ||
|
|
||
| ### 2. Warning | ||
|
|
||
| **Community Impact**: A violation through a single incident or series of | ||
| actions. | ||
|
|
||
| **Consequence**: A warning with consequences for continued behavior. No | ||
| interaction with the people involved, including unsolicited interaction with | ||
| those enforcing the Code of Conduct, for a specified period of time. This | ||
| includes avoiding interactions in community spaces as well as external channels | ||
| like social media. Violating these terms may lead to a temporary or permanent | ||
| ban. | ||
|
|
||
| ### 3. Temporary Ban | ||
|
|
||
| **Community Impact**: A serious violation of community standards, including | ||
| sustained inappropriate behavior. | ||
|
|
||
| **Consequence**: A temporary ban from any sort of interaction or public | ||
| communication with the community for a specified period of time. No public or | ||
| private interaction with the people involved, including unsolicited interaction | ||
| with those enforcing the Code of Conduct, is allowed during this period. | ||
| Violating these terms may lead to a permanent ban. | ||
|
|
||
| ### 4. Permanent Ban | ||
|
|
||
| **Community Impact**: Demonstrating a pattern of violation of community | ||
| standards, including sustained inappropriate behavior, harassment of an | ||
| individual, or aggression toward or disparagement of classes of individuals. | ||
|
|
||
| **Consequence**: A permanent ban from any sort of public interaction within the | ||
| community. | ||
|
|
||
| ## Attribution | ||
|
|
||
| This Code of Conduct is adapted from the [Contributor Covenant][homepage], | ||
| version 2.1, available at | ||
| [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. | ||
|
|
||
| Community Impact Guidelines were inspired by | ||
| [Mozilla's code of conduct enforcement ladder][Mozilla CoC]. | ||
|
|
||
| For answers to common questions about this code of conduct, see the FAQ at | ||
| [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at | ||
| [https://www.contributor-covenant.org/translations][translations]. | ||
|
|
||
| [homepage]: https://www.contributor-covenant.org | ||
| [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html | ||
| [Mozilla CoC]: https://github.com/mozilla/diversity | ||
| [FAQ]: https://www.contributor-covenant.org/faq | ||
| [translations]: https://www.contributor-covenant.org/translations | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # Contributing | ||
|
|
||
| Contributions are always welcome, no matter how large or small! | ||
|
|
||
| We want this community to be friendly and respectful to each other. Please follow it in all your interactions with the project. Before contributing, please read the [code of conduct](./CODE_OF_CONDUCT.md). | ||
|
|
||
| ## Development workflow | ||
|
|
||
| This project is a monorepo managed using [Yarn workspaces](https://yarnpkg.com/features/workspaces). It contains the following packages: | ||
|
|
||
| - The library package in the root directory. | ||
|
|
||
| To get started with the project, make sure you have the correct version of [Node.js](https://nodejs.org/) installed. See the [`.nvmrc`](./.nvmrc) file for the version used in this project. | ||
|
|
||
| Run `yarn` in the root directory to install the required dependencies for each package: | ||
|
|
||
| ```sh | ||
| yarn | ||
| ``` | ||
|
|
||
| > Since the project relies on Yarn workspaces, you cannot use [`npm`](https://github.com/npm/cli) for development without manually migrating. | ||
|
|
||
| ### Commit message convention | ||
|
|
||
| We follow the [conventional commits specification](https://www.conventionalcommits.org/en) for our commit messages: | ||
|
|
||
| - `fix`: bug fixes, e.g. fix crash due to deprecated method. | ||
| - `feat`: new features, e.g. add new method to the module. | ||
| - `refactor`: code refactor, e.g. migrate from class components to hooks. | ||
| - `docs`: changes into documentation, e.g. add usage example for the module. | ||
| - `test`: adding or updating tests, e.g. add integration tests using detox. | ||
| - `chore`: tooling changes, e.g. change CI config. | ||
|
|
||
| Our pre-commit hooks verify that your commit message matches this format when committing. | ||
|
|
||
| ### Publishing to npm | ||
|
|
||
| We use [release-it](https://github.com/release-it/release-it) to make it easier to publish new versions. It handles common tasks like bumping version based on semver, creating tags and releases etc. | ||
|
|
||
| To publish new versions, run the following: | ||
|
|
||
| ```sh | ||
| yarn release | ||
| ``` | ||
|
|
||
| ### Scripts | ||
|
|
||
| The `package.json` file contains various scripts for common tasks: | ||
|
|
||
| - `yarn`: setup project by installing dependencies. | ||
| - `yarn typecheck`: type-check files with TypeScript. | ||
|
|
||
| ### Sending a pull request | ||
|
|
||
| > **Working on your first pull request?** You can learn how from this _free_ series: [How to Contribute to an Open Source Project on GitHub](https://app.egghead.io/playlists/how-to-contribute-to-an-open-source-project-on-github). | ||
|
|
||
| When you're sending a pull request: | ||
|
|
||
| - Prefer small pull requests focused on one change. | ||
| - Verify that linters and tests are passing. | ||
| - Review the documentation to make sure it looks good. | ||
| - Follow the pull request template when opening a pull request. | ||
| - For pull requests that change the API or implementation, discuss with maintainers first by opening an issue. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| require "json" | ||
|
|
||
| package = JSON.parse(File.read(File.join(__dir__, "package.json"))) | ||
|
|
||
| Pod::Spec.new do |s| | ||
| s.name = "Callingx" | ||
| s.version = package["version"] | ||
| s.summary = package["description"] | ||
| s.homepage = package["homepage"] | ||
| s.license = package["license"] | ||
| s.authors = package["author"] | ||
|
|
||
| s.platforms = { :ios => min_ios_version_supported } | ||
| s.source = { :git => "https://github.com/greenfrvr/react-native-callingx.git", :tag => "#{s.version}" } | ||
|
|
||
| s.source_files = "ios/**/*.{h,m,mm,swift}" | ||
| s.public_header_files = "ios/CallingxPublic.h" | ||
| s.swift_version = "5.0" | ||
|
|
||
| install_modules_dependencies(s) | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| MIT License | ||
|
|
||
| Copyright (c) 2025 Artsiom Grintsevich | ||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.