mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 05:45:18 +00:00
- Added voice note support to BitchatMessage with audio data and duration
- Updated binary protocol to encode/decode voice notes (flag 0x40)
- Created AudioRecordingService for recording up to 10s voice clips
- Created AudioPlaybackService for playing voice notes
- Added microphone permission to Info.plist and project.yml
- Implemented push-to-talk UI with mic button in ContentView
- Voice notes use AAC compression at 16kHz/32kbps for small file sizes
- Added play/pause buttons for voice notes in message list
- Voice notes display as '🎤 Voice note (X.Xs)' in chat
- Platform-specific audio session handling for iOS/macOS
50 lines
1.7 KiB
YAML
50 lines
1.7 KiB
YAML
name: bitchat
|
|
options:
|
|
bundleIdPrefix: com.bitchat
|
|
deploymentTarget:
|
|
iOS: 16.0
|
|
macOS: 13.0
|
|
createIntermediateGroups: true
|
|
|
|
settings:
|
|
MARKETING_VERSION: 1.0.0
|
|
CURRENT_PROJECT_VERSION: 1
|
|
DEVELOPMENT_TEAM: ""
|
|
|
|
targets:
|
|
bitchat:
|
|
type: application
|
|
platform: [iOS, macOS]
|
|
sources:
|
|
- bitchat
|
|
info:
|
|
path: bitchat/Info.plist
|
|
properties:
|
|
CFBundleDisplayName: bitchat
|
|
CFBundleShortVersionString: $(MARKETING_VERSION)
|
|
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
|
|
LSMinimumSystemVersion: $(MACOSX_DEPLOYMENT_TARGET)
|
|
NSBluetoothAlwaysUsageDescription: bitchat uses Bluetooth to create a secure mesh network for chatting with nearby users.
|
|
NSBluetoothPeripheralUsageDescription: bitchat uses Bluetooth to discover and connect with other bitchat users nearby.
|
|
NSMicrophoneUsageDescription: bitchat needs access to your microphone to record voice notes.
|
|
UIBackgroundModes:
|
|
- bluetooth-central
|
|
- bluetooth-peripheral
|
|
UILaunchScreen:
|
|
UIColorName: Black
|
|
UISupportedInterfaceOrientations:
|
|
- UIInterfaceOrientationPortrait
|
|
- UIInterfaceOrientationPortraitUpsideDown
|
|
- UIInterfaceOrientationLandscapeLeft
|
|
- UIInterfaceOrientationLandscapeRight
|
|
settings:
|
|
PRODUCT_BUNDLE_IDENTIFIER: com.bitchat.app
|
|
INFOPLIST_FILE: bitchat/Info.plist
|
|
ENABLE_PREVIEWS: YES
|
|
SWIFT_VERSION: 5.0
|
|
IPHONEOS_DEPLOYMENT_TARGET: 16.0
|
|
MACOSX_DEPLOYMENT_TARGET: 13.0
|
|
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD: YES
|
|
CODE_SIGN_STYLE: Automatic
|
|
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
|
|
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS: YES |