Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
# Xcode
#
build/
# SwiftPM, when Package.swift is opened in Xcode or evaluated with swift package
.build/
.swiftpm/
*.pbxuser
!default.pbxuser
*.mode1v3
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ are not listed here.

## [Unreleased]

### Added

- **iOS:** Swift Package Manager support. An app that React Native 0.88 builds with SwiftPM instead of CocoaPods can now use CallKeep; `npx react-native spm add` stopped with `Package.swift is missing for library "react-native-callkeep"`. Swift code can still `import RNCallKeep`, and CocoaPods apps don't change. See [Swift Package Manager](docs/ios-installation.md#swift-package-manager). From [#919](https://github.com/react-native-webrtc/react-native-callkeep/pull/919) (@chrfalch).

## [4.6.1] - 2026-10-18

On Android, a call's connection now reports the dialing or ringing state that Telecom shows. On iOS, `setAudioRoute()` no longer leaves its promise pending when no route has the given name.
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ npm install react-native-callkeep
cd ios && pod install
```

An app that builds its iOS libraries with Swift Package Manager runs `npx react-native spm` instead of `pod install`: see [Swift Package Manager](docs/ios-installation.md#swift-package-manager).

Then follow the platform setup: [iOS](docs/ios-installation.md) and [Android](docs/android-installation.md).

## Quick start
Expand Down
11 changes: 11 additions & 0 deletions docs/ios-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ cd ios && pod install

Autolinking adds the `RNCallKeep` pod: there is nothing to link by hand in Xcode. The pod ships a privacy manifest, and it builds as a module, so Swift code can `import RNCallKeep`.

### Swift Package Manager

React Native 0.88 can build an app's iOS libraries with Swift Package Manager (SwiftPM) instead of CocoaPods. CallKeep ships a `Package.swift`, so in an app set up for SwiftPM, run React Native's `spm` command instead of `pod install`:

```sh
npm install react-native-callkeep
npx react-native spm
```

An app still on CocoaPods moves to SwiftPM with `npx react-native spm add --deintegrate`. As with the pod, Swift code can `import RNCallKeep` without a bridging header, and the privacy manifest ships in CallKeep's resource bundle. Tested with React Native 0.88.1.

## Background modes and microphone

In Xcode, under *Signing & Capabilities*, add **Background Modes** and check **Voice over IP** and **Audio, AirPlay, and Picture in Picture**. In `Info.plist`, together with the text iOS shows when it asks for the microphone, this is:
Expand Down
2 changes: 2 additions & 0 deletions scripts/check-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const required = [
'index.d.ts',
'package.json',
'RNCallKeep.podspec',
'Package.swift',
'include/RNCallKeep/RNCallKeep.h',
'ios/RNCallKeep/RNCallKeep.h',
'ios/RNCallKeep/RNCallKeep.m',
'ios/PrivacyInfo.xcprivacy',
Expand Down
Loading