gravix-rtc-react-native 0.0.0-stage → 0.2.0
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/CHANGELOG.md +134 -0
- package/LICENSE +20 -0
- package/LICENSES/Apache-2.0.txt +175 -0
- package/NOTICE +68 -0
- package/README.md +313 -2
- package/android/build.gradle +137 -0
- package/android/consumer-rules.pro +29 -0
- package/android/src/main/AndroidManifest.xml +9 -0
- package/android/src/main/cpp/CMakeLists.txt +48 -0
- package/android/src/main/cpp/gx_dfn_engine.c +332 -0
- package/android/src/main/cpp/gx_fx_jni.cpp +34 -0
- package/android/src/main/cpp/gx_ns_jni.c +162 -0
- package/android/src/main/cpp/third_party/onnxruntime/LICENSE +21 -0
- package/android/src/main/cpp/third_party/onnxruntime/include/onnxruntime_c_api.h +9227 -0
- package/android/src/main/cpp/third_party/onnxruntime/include/onnxruntime_ep_c_api.h +3315 -0
- package/android/src/main/cpp/third_party/onnxruntime/include/onnxruntime_error_code.h +98 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/GravixAudioHooks.kt +144 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/GravixAudioModule.kt +105 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/GravixNativeAudio.kt +310 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/GravixRtc.kt +134 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/GravixRtcModule.kt +176 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/GravixRtcPackage.kt +39 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/audio/AudioDeviceKind.java +44 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/audio/AudioManagerUtils.kt +120 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/audio/AudioSwitchManager.java +270 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/audio/AudioType.kt +50 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/music/MusicCaptureRouter.kt +375 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/music/MusicDecoder.kt +339 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/music/MusicInterruptionWatcher.kt +82 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/music/MusicMicRelease.kt +117 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/music/MusicMixKernel.kt +191 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/music/MusicMixerEngine.kt +617 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/processing/AudioRoutePolicy.kt +137 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/processing/GravixCaptureProcessing.kt +67 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/processing/GxCaptureDump.kt +143 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/processing/GxCaptureSwitcher.kt +196 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/processing/GxNoiseProcessor.kt +795 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/processing/GxNsLogic.kt +180 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/processing/GxNsNative.kt +83 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/processing/GxNsStudio.kt +372 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/processing/GxRecordStartGuard.kt +76 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/processing/GxRecorderSeam.kt +434 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/processing/GxSingerSource.kt +37 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/processing/GxVoiceFx.kt +160 -0
- package/android/src/main/java/com/gravitycompile/gravixrtc/processing/OtherAppAudioPolicy.kt +143 -0
- package/android/src/main/java/org/webrtc/audio/WebRtcAudioTrackHelper.kt +43 -0
- package/docs/ANDROID_NATIVE_HOOKS.md +102 -0
- package/docs/FEATURE_MATRIX.md +192 -0
- package/docs/IOS_NATIVE_HOOKS.md +190 -0
- package/gravix-rtc-react-native.podspec +49 -0
- package/ios/GravixRtc.h +7 -0
- package/ios/GravixRtc.mm +273 -0
- package/ios/GravixRtcSetup.h +29 -0
- package/ios/GravixRtcSetup.m +52 -0
- package/ios/audio/GravixRtcIosAudio.m +157 -0
- package/ios/audio/GxAudioDevice.h +62 -0
- package/ios/audio/GxAudioDevice.m +857 -0
- package/ios/audio/GxAudioSetup.h +34 -0
- package/ios/audio/GxAudioSetup.m +70 -0
- package/ios/audio/GxCompat.swift +53 -0
- package/ios/audio/GxIosAudio.swift +99 -0
- package/ios/audio/GxMusicController.swift +150 -0
- package/ios/audio/GxMusicPost.swift +362 -0
- package/ios/audio/GxNoiseProcessor.swift +718 -0
- package/ios/audio/GxNsDfn3CoreML.swift +195 -0
- package/ios/audio/GxNsStudioEngine.swift +237 -0
- package/ios/audio/GxNsStudioPack.swift +212 -0
- package/ios/audio/GxVoiceFx.swift +161 -0
- package/ios/audio/gx_adm_state.h +153 -0
- package/ios/gxcore/apple/gx_music_post.c +312 -0
- package/ios/gxcore/apple/gx_pcm.c +30 -0
- package/ios/gxcore/apple/gxns_build.h +19 -0
- package/ios/gxcore/apple/gxns_ios.c +17 -0
- package/ios/gxcore/apple/include/gx_fx.h +3 -0
- package/ios/gxcore/apple/include/gx_music_post.h +88 -0
- package/ios/gxcore/apple/include/gx_ns.h +3 -0
- package/ios/gxcore/apple/include/gx_pcm.h +33 -0
- package/ios/gxcore/apple/include/gxns_ios.h +18 -0
- package/ios/gxcore/apple/include/module.modulemap +10 -0
- package/ios/gxcore/apple/shim/rnnoise.h +2 -0
- package/ios/gxcore/apple/shim/speex_resampler.h +2 -0
- package/ios/gxcore/apple/units/gx_fx_forward.cpp +3 -0
- package/ios/gxcore/apple/units/gx_ns.c +7 -0
- package/ios/gxcore/apple/units/gx_ns_timer.c +7 -0
- package/ios/gxcore/apple/units/rnnoise_celt_lpc.c +7 -0
- package/ios/gxcore/apple/units/rnnoise_denoise.c +7 -0
- package/ios/gxcore/apple/units/rnnoise_kiss_fft.c +7 -0
- package/ios/gxcore/apple/units/rnnoise_pitch.c +7 -0
- package/ios/gxcore/apple/units/rnnoise_rnn.c +7 -0
- package/ios/gxcore/apple/units/rnnoise_rnn_data.c +7 -0
- package/ios/gxcore/apple/units/speexdsp_resample.c +7 -0
- package/ios/resources/ns/DFN3-NOTICE.txt +10 -0
- package/ios/resources/ns/DeepFilterNet-LICENSE-APACHE +201 -0
- package/ios/resources/ns/DeepFilterNet-LICENSE-MIT +19 -0
- package/ios/resources/ns/gxns_dfn3.mlmodelc/analytics/coremldata.bin +0 -0
- package/ios/resources/ns/gxns_dfn3.mlmodelc/coremldata.bin +0 -0
- package/ios/resources/ns/gxns_dfn3.mlmodelc/metadata.json +338 -0
- package/ios/resources/ns/gxns_dfn3.mlmodelc/model.mil +927 -0
- package/ios/resources/ns/gxns_dfn3.mlmodelc/weights/weight.bin +0 -0
- package/lib/module/android/bindings.js +49 -0
- package/lib/module/android/bindings.js.map +1 -0
- package/lib/module/android/index.js +13 -0
- package/lib/module/android/index.js.map +1 -0
- package/lib/module/android/micMute.js +341 -0
- package/lib/module/android/micMute.js.map +1 -0
- package/lib/module/android/nativeAudio.js +47 -0
- package/lib/module/android/nativeAudio.js.map +1 -0
- package/lib/module/android/noiseSuppression.js +170 -0
- package/lib/module/android/noiseSuppression.js.map +1 -0
- package/lib/module/android/roomMusic.js +142 -0
- package/lib/module/android/roomMusic.js.map +1 -0
- package/lib/module/android/singerMode.js +31 -0
- package/lib/module/android/singerMode.js.map +1 -0
- package/lib/module/android/voiceEffects.js +65 -0
- package/lib/module/android/voiceEffects.js.map +1 -0
- package/lib/module/audio/AudioManager.js +79 -0
- package/lib/module/audio/AudioManager.js.map +1 -0
- package/lib/module/audio/AudioSession.js +90 -0
- package/lib/module/audio/AudioSession.js.map +1 -0
- package/lib/module/audio/remoteVolume.js +54 -0
- package/lib/module/audio/remoteVolume.js.map +1 -0
- package/lib/module/components/VideoView.js +109 -0
- package/lib/module/components/VideoView.js.map +1 -0
- package/lib/module/features/audioScenario.js +53 -0
- package/lib/module/features/audioScenario.js.map +1 -0
- package/lib/module/features/beauty.js +828 -0
- package/lib/module/features/beauty.js.map +1 -0
- package/lib/module/features/micRelease.js +89 -0
- package/lib/module/features/micRelease.js.map +1 -0
- package/lib/module/features/noiseSuppression.js +213 -0
- package/lib/module/features/noiseSuppression.js.map +1 -0
- package/lib/module/features/roomMusic.js +90 -0
- package/lib/module/features/roomMusic.js.map +1 -0
- package/lib/module/features/roomMusicAndroid.js +294 -0
- package/lib/module/features/roomMusicAndroid.js.map +1 -0
- package/lib/module/features/roomMusicIos.js +250 -0
- package/lib/module/features/roomMusicIos.js.map +1 -0
- package/lib/module/features/roomMusicTypes.js +53 -0
- package/lib/module/features/roomMusicTypes.js.map +1 -0
- package/lib/module/features/screenShare.js +22 -0
- package/lib/module/features/screenShare.js.map +1 -0
- package/lib/module/features/singerMode.js +73 -0
- package/lib/module/features/singerMode.js.map +1 -0
- package/lib/module/features/voiceEffects.js +148 -0
- package/lib/module/features/voiceEffects.js.map +1 -0
- package/lib/module/hooks/context.js +34 -0
- package/lib/module/hooks/context.js.map +1 -0
- package/lib/module/hooks/hooks.js +145 -0
- package/lib/module/hooks/hooks.js.map +1 -0
- package/lib/module/hooks/types.js +4 -0
- package/lib/module/hooks/types.js.map +1 -0
- package/lib/module/hooks/useRoomEvents.js +30 -0
- package/lib/module/hooks/useRoomEvents.js.map +1 -0
- package/lib/module/index.js +43 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/ios/autoAttach.js +14 -0
- package/lib/module/ios/autoAttach.js.map +1 -0
- package/lib/module/ios/iosAudio.js +149 -0
- package/lib/module/ios/iosAudio.js.map +1 -0
- package/lib/module/join/appStateLifecycle.js +54 -0
- package/lib/module/join/appStateLifecycle.js.map +1 -0
- package/lib/module/micPolicy.js +249 -0
- package/lib/module/micPolicy.js.map +1 -0
- package/lib/module/native/NativeGravixAudio.js +18 -0
- package/lib/module/native/NativeGravixAudio.js.map +1 -0
- package/lib/module/native/NativeGravixRtc.js +13 -0
- package/lib/module/native/NativeGravixRtc.js.map +1 -0
- package/lib/module/native/module.js +23 -0
- package/lib/module/native/module.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/polyfills/DOMException.js +22 -0
- package/lib/module/polyfills/DOMException.js.map +1 -0
- package/lib/module/polyfills/early.js +18 -0
- package/lib/module/polyfills/early.js.map +1 -0
- package/lib/module/polyfills/event.js +71 -0
- package/lib/module/polyfills/event.js.map +1 -0
- package/lib/module/polyfills/sha256.js +92 -0
- package/lib/module/polyfills/sha256.js.map +1 -0
- package/lib/module/polyfills/subtleHmac.js +91 -0
- package/lib/module/polyfills/subtleHmac.js.map +1 -0
- package/lib/module/polyfills/textCoding.js +164 -0
- package/lib/module/polyfills/textCoding.js.map +1 -0
- package/lib/module/registerGlobals.js +135 -0
- package/lib/module/registerGlobals.js.map +1 -0
- package/lib/module/unsupported.js +90 -0
- package/lib/module/unsupported.js.map +1 -0
- package/lib/module/version.js +7 -0
- package/lib/module/version.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/android/bindings.d.ts +14 -0
- package/lib/typescript/src/android/bindings.d.ts.map +1 -0
- package/lib/typescript/src/android/index.d.ts +9 -0
- package/lib/typescript/src/android/index.d.ts.map +1 -0
- package/lib/typescript/src/android/micMute.d.ts +124 -0
- package/lib/typescript/src/android/micMute.d.ts.map +1 -0
- package/lib/typescript/src/android/nativeAudio.d.ts +40 -0
- package/lib/typescript/src/android/nativeAudio.d.ts.map +1 -0
- package/lib/typescript/src/android/noiseSuppression.d.ts +48 -0
- package/lib/typescript/src/android/noiseSuppression.d.ts.map +1 -0
- package/lib/typescript/src/android/roomMusic.d.ts +80 -0
- package/lib/typescript/src/android/roomMusic.d.ts.map +1 -0
- package/lib/typescript/src/android/singerMode.d.ts +27 -0
- package/lib/typescript/src/android/singerMode.d.ts.map +1 -0
- package/lib/typescript/src/android/voiceEffects.d.ts +30 -0
- package/lib/typescript/src/android/voiceEffects.d.ts.map +1 -0
- package/lib/typescript/src/audio/AudioManager.d.ts +32 -0
- package/lib/typescript/src/audio/AudioManager.d.ts.map +1 -0
- package/lib/typescript/src/audio/AudioSession.d.ts +70 -0
- package/lib/typescript/src/audio/AudioSession.d.ts.map +1 -0
- package/lib/typescript/src/audio/remoteVolume.d.ts +8 -0
- package/lib/typescript/src/audio/remoteVolume.d.ts.map +1 -0
- package/lib/typescript/src/components/VideoView.d.ts +44 -0
- package/lib/typescript/src/components/VideoView.d.ts.map +1 -0
- package/lib/typescript/src/features/audioScenario.d.ts +24 -0
- package/lib/typescript/src/features/audioScenario.d.ts.map +1 -0
- package/lib/typescript/src/features/beauty.d.ts +377 -0
- package/lib/typescript/src/features/beauty.d.ts.map +1 -0
- package/lib/typescript/src/features/micRelease.d.ts +28 -0
- package/lib/typescript/src/features/micRelease.d.ts.map +1 -0
- package/lib/typescript/src/features/noiseSuppression.d.ts +64 -0
- package/lib/typescript/src/features/noiseSuppression.d.ts.map +1 -0
- package/lib/typescript/src/features/roomMusic.d.ts +41 -0
- package/lib/typescript/src/features/roomMusic.d.ts.map +1 -0
- package/lib/typescript/src/features/roomMusicAndroid.d.ts +60 -0
- package/lib/typescript/src/features/roomMusicAndroid.d.ts.map +1 -0
- package/lib/typescript/src/features/roomMusicIos.d.ts +56 -0
- package/lib/typescript/src/features/roomMusicIos.d.ts.map +1 -0
- package/lib/typescript/src/features/roomMusicTypes.d.ts +76 -0
- package/lib/typescript/src/features/roomMusicTypes.d.ts.map +1 -0
- package/lib/typescript/src/features/screenShare.d.ts +12 -0
- package/lib/typescript/src/features/screenShare.d.ts.map +1 -0
- package/lib/typescript/src/features/singerMode.d.ts +20 -0
- package/lib/typescript/src/features/singerMode.d.ts.map +1 -0
- package/lib/typescript/src/features/voiceEffects.d.ts +46 -0
- package/lib/typescript/src/features/voiceEffects.d.ts.map +1 -0
- package/lib/typescript/src/hooks/context.d.ts +12 -0
- package/lib/typescript/src/hooks/context.d.ts.map +1 -0
- package/lib/typescript/src/hooks/hooks.d.ts +54 -0
- package/lib/typescript/src/hooks/hooks.d.ts.map +1 -0
- package/lib/typescript/src/hooks/types.d.ts +8 -0
- package/lib/typescript/src/hooks/types.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useRoomEvents.d.ts +13 -0
- package/lib/typescript/src/hooks/useRoomEvents.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +37 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/ios/autoAttach.d.ts +2 -0
- package/lib/typescript/src/ios/autoAttach.d.ts.map +1 -0
- package/lib/typescript/src/ios/iosAudio.d.ts +96 -0
- package/lib/typescript/src/ios/iosAudio.d.ts.map +1 -0
- package/lib/typescript/src/join/appStateLifecycle.d.ts +14 -0
- package/lib/typescript/src/join/appStateLifecycle.d.ts.map +1 -0
- package/lib/typescript/src/micPolicy.d.ts +104 -0
- package/lib/typescript/src/micPolicy.d.ts.map +1 -0
- package/lib/typescript/src/native/NativeGravixAudio.d.ts +21 -0
- package/lib/typescript/src/native/NativeGravixAudio.d.ts.map +1 -0
- package/lib/typescript/src/native/NativeGravixRtc.d.ts +31 -0
- package/lib/typescript/src/native/NativeGravixRtc.d.ts.map +1 -0
- package/lib/typescript/src/native/module.d.ts +7 -0
- package/lib/typescript/src/native/module.d.ts.map +1 -0
- package/lib/typescript/src/polyfills/DOMException.d.ts +3 -0
- package/lib/typescript/src/polyfills/DOMException.d.ts.map +1 -0
- package/lib/typescript/src/polyfills/early.d.ts +2 -0
- package/lib/typescript/src/polyfills/early.d.ts.map +1 -0
- package/lib/typescript/src/polyfills/event.d.ts +2 -0
- package/lib/typescript/src/polyfills/event.d.ts.map +1 -0
- package/lib/typescript/src/polyfills/sha256.d.ts +3 -0
- package/lib/typescript/src/polyfills/sha256.d.ts.map +1 -0
- package/lib/typescript/src/polyfills/subtleHmac.d.ts +37 -0
- package/lib/typescript/src/polyfills/subtleHmac.d.ts.map +1 -0
- package/lib/typescript/src/polyfills/textCoding.d.ts +36 -0
- package/lib/typescript/src/polyfills/textCoding.d.ts.map +1 -0
- package/lib/typescript/src/registerGlobals.d.ts +42 -0
- package/lib/typescript/src/registerGlobals.d.ts.map +1 -0
- package/lib/typescript/src/unsupported.d.ts +42 -0
- package/lib/typescript/src/unsupported.d.ts.map +1 -0
- package/lib/typescript/src/version.d.ts +3 -0
- package/lib/typescript/src/version.d.ts.map +1 -0
- package/metro/index.js +39 -0
- package/metro/noise-stub.js +10 -0
- package/native/gxfx/include/gx_fx.h +82 -0
- package/native/gxfx/src/gx_fx.cpp +527 -0
- package/native/gxfx/third_party/README.md +4 -0
- package/native/gxfx/third_party/signalsmith-linear/LICENSE.txt +21 -0
- package/native/gxfx/third_party/signalsmith-linear/approx.h +191 -0
- package/native/gxfx/third_party/signalsmith-linear/fft.h +1386 -0
- package/native/gxfx/third_party/signalsmith-linear/linear.h +1129 -0
- package/native/gxfx/third_party/signalsmith-linear/platform/approx-cmsisdsp.h +40 -0
- package/native/gxfx/third_party/signalsmith-linear/platform/basic-fill-warnings.h +61 -0
- package/native/gxfx/third_party/signalsmith-linear/platform/fft-accelerate.h +340 -0
- package/native/gxfx/third_party/signalsmith-linear/platform/fft-cmsisdsp.h +307 -0
- package/native/gxfx/third_party/signalsmith-linear/platform/fft-ipp.h +532 -0
- package/native/gxfx/third_party/signalsmith-linear/platform/fft-linear.h +213 -0
- package/native/gxfx/third_party/signalsmith-linear/platform/fft-pffft-double.h +221 -0
- package/native/gxfx/third_party/signalsmith-linear/platform/fft-pffft.h +221 -0
- package/native/gxfx/third_party/signalsmith-linear/platform/linear-accelerate.h +593 -0
- package/native/gxfx/third_party/signalsmith-linear/platform/linear-cmsisdsp.h +713 -0
- package/native/gxfx/third_party/signalsmith-linear/platform/linear-xsimd-dispatch.cpp +6 -0
- package/native/gxfx/third_party/signalsmith-linear/platform/linear-xsimd.h +818 -0
- package/native/gxfx/third_party/signalsmith-linear/stft.h +700 -0
- package/native/gxfx/third_party/signalsmith-stretch-LICENSE.txt +21 -0
- package/native/gxfx/third_party/signalsmith-stretch.h +1060 -0
- package/native/gxns/CMakeLists.txt +67 -0
- package/native/gxns/include/gx_ns.h +285 -0
- package/native/gxns/src/gx_ns.c +1518 -0
- package/native/gxns/src/gx_ns_timer.c +84 -0
- package/native/gxns/src/gx_ns_timer.h +29 -0
- package/native/gxns/third_party/VENDOR.md +43 -0
- package/native/gxns/third_party/rnnoise/AUTHORS +1 -0
- package/native/gxns/third_party/rnnoise/COPYING +31 -0
- package/native/gxns/third_party/rnnoise/include/rnnoise.h +117 -0
- package/native/gxns/third_party/rnnoise/src/_kiss_fft_guts.h +182 -0
- package/native/gxns/third_party/rnnoise/src/arch.h +261 -0
- package/native/gxns/third_party/rnnoise/src/celt_lpc.c +172 -0
- package/native/gxns/third_party/rnnoise/src/celt_lpc.h +45 -0
- package/native/gxns/third_party/rnnoise/src/common.h +48 -0
- package/native/gxns/third_party/rnnoise/src/denoise.c +664 -0
- package/native/gxns/third_party/rnnoise/src/kiss_fft.c +601 -0
- package/native/gxns/third_party/rnnoise/src/kiss_fft.h +203 -0
- package/native/gxns/third_party/rnnoise/src/opus_types.h +159 -0
- package/native/gxns/third_party/rnnoise/src/pitch.c +523 -0
- package/native/gxns/third_party/rnnoise/src/pitch.h +149 -0
- package/native/gxns/third_party/rnnoise/src/rnn.c +178 -0
- package/native/gxns/third_party/rnnoise/src/rnn.h +65 -0
- package/native/gxns/third_party/rnnoise/src/rnn_data.c +11051 -0
- package/native/gxns/third_party/rnnoise/src/rnn_data.h +34 -0
- package/native/gxns/third_party/rnnoise/src/tansig_table.h +45 -0
- package/native/gxns/third_party/speexdsp/AUTHORS +18 -0
- package/native/gxns/third_party/speexdsp/COPYING +35 -0
- package/native/gxns/third_party/speexdsp/arch.h +232 -0
- package/native/gxns/third_party/speexdsp/resample.c +1239 -0
- package/native/gxns/third_party/speexdsp/resample_neon.h +339 -0
- package/native/gxns/third_party/speexdsp/resample_sse.h +128 -0
- package/native/gxns/third_party/speexdsp/speex_resampler.h +343 -0
- package/package.json +186 -4
- package/src/android/bindings.ts +61 -0
- package/src/android/index.ts +10 -0
- package/src/android/micMute.ts +422 -0
- package/src/android/nativeAudio.ts +94 -0
- package/src/android/noiseSuppression.ts +209 -0
- package/src/android/roomMusic.ts +193 -0
- package/src/android/singerMode.ts +53 -0
- package/src/android/voiceEffects.ts +126 -0
- package/src/audio/AudioManager.ts +111 -0
- package/src/audio/AudioSession.ts +190 -0
- package/src/audio/remoteVolume.ts +58 -0
- package/src/components/VideoView.tsx +152 -0
- package/src/features/audioScenario.ts +58 -0
- package/src/features/beauty.ts +1057 -0
- package/src/features/micRelease.ts +108 -0
- package/src/features/noiseSuppression.ts +251 -0
- package/src/features/roomMusic.ts +106 -0
- package/src/features/roomMusicAndroid.ts +310 -0
- package/src/features/roomMusicIos.ts +300 -0
- package/src/features/roomMusicTypes.ts +97 -0
- package/src/features/screenShare.ts +19 -0
- package/src/features/singerMode.ts +70 -0
- package/src/features/voiceEffects.ts +245 -0
- package/src/hooks/context.tsx +38 -0
- package/src/hooks/hooks.ts +247 -0
- package/src/hooks/types.ts +10 -0
- package/src/hooks/useRoomEvents.ts +35 -0
- package/src/index.tsx +134 -0
- package/src/ios/autoAttach.ts +11 -0
- package/src/ios/iosAudio.ts +202 -0
- package/src/join/appStateLifecycle.ts +55 -0
- package/src/micPolicy.ts +312 -0
- package/src/native/NativeGravixAudio.ts +30 -0
- package/src/native/NativeGravixRtc.ts +38 -0
- package/src/native/module.ts +22 -0
- package/src/polyfills/DOMException.ts +20 -0
- package/src/polyfills/early.ts +16 -0
- package/src/polyfills/event.ts +88 -0
- package/src/polyfills/sha256.ts +112 -0
- package/src/polyfills/subtleHmac.ts +124 -0
- package/src/polyfills/textCoding.ts +197 -0
- package/src/registerGlobals.ts +201 -0
- package/src/unsupported.ts +139 -0
- package/src/version.ts +4 -0
package/src/index.tsx
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// Copyright (c) 2026 Gravity Compile. MIT License; see LICENSE.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* gravix-rtc-react-native: Gravix Cloud real-time voice/video for React Native
|
|
5
|
+
* (Android + iOS).
|
|
6
|
+
*
|
|
7
|
+
* Single import surface, like the Flutter `gravix_rtc` package: the full
|
|
8
|
+
* gravix-rtc core (Room, tracks, events, GravixJoin, GravixTokenProvider,
|
|
9
|
+
* createToken, region probe, ...) is re-exported from here, next to the React
|
|
10
|
+
* Native parts (registerGlobals, AudioSession, VideoView, hooks) and the
|
|
11
|
+
* typed native-feature APIs.
|
|
12
|
+
*
|
|
13
|
+
* Call `registerGlobals()` once at startup, before creating a Room.
|
|
14
|
+
*/
|
|
15
|
+
// Must stay first: globals the core needs while it is evaluated (Fable B1/M1).
|
|
16
|
+
import './polyfills/early';
|
|
17
|
+
|
|
18
|
+
export * from 'gravix-rtc';
|
|
19
|
+
|
|
20
|
+
// iOS audio engine hook (side effect only; see src/ios/autoAttach.ts).
|
|
21
|
+
import './ios/autoAttach';
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
registerGlobals,
|
|
25
|
+
type RegisterGlobalsOptions,
|
|
26
|
+
type GravixReactNativeGlobal,
|
|
27
|
+
} from './registerGlobals';
|
|
28
|
+
export {
|
|
29
|
+
default as AudioSession,
|
|
30
|
+
AndroidAudioTypePresets,
|
|
31
|
+
type AndroidAudioTypeOptions,
|
|
32
|
+
type AndroidAudioOutput,
|
|
33
|
+
type AudioConfiguration,
|
|
34
|
+
type AudioOutputId,
|
|
35
|
+
type AppleAudioCategory,
|
|
36
|
+
type AppleAudioCategoryOption,
|
|
37
|
+
type AppleAudioConfiguration,
|
|
38
|
+
type AppleAudioMode,
|
|
39
|
+
} from './audio/AudioSession';
|
|
40
|
+
export {
|
|
41
|
+
setupIOSAudioManagement,
|
|
42
|
+
getDefaultAppleAudioConfigurationForAudioState,
|
|
43
|
+
type AudioEngineConfigurationState,
|
|
44
|
+
type IOSAudioSessionPolicy,
|
|
45
|
+
} from './audio/AudioManager';
|
|
46
|
+
export { VideoView, type VideoViewProps } from './components/VideoView';
|
|
47
|
+
export { GravixRoomProvider, useRoomContext } from './hooks/context';
|
|
48
|
+
export {
|
|
49
|
+
useActiveSpeakers,
|
|
50
|
+
useConnectionState,
|
|
51
|
+
useLocalParticipant,
|
|
52
|
+
useMicMuted,
|
|
53
|
+
useParticipant,
|
|
54
|
+
useParticipants,
|
|
55
|
+
useRemoteParticipants,
|
|
56
|
+
useRoom,
|
|
57
|
+
useTracks,
|
|
58
|
+
type ParticipantState,
|
|
59
|
+
type UseRoomResult,
|
|
60
|
+
type UseTracksOptions,
|
|
61
|
+
} from './hooks/hooks';
|
|
62
|
+
export type { TrackReference } from './hooks/types';
|
|
63
|
+
export {
|
|
64
|
+
gravixAppStateLifecycle,
|
|
65
|
+
createGravixJoin,
|
|
66
|
+
} from './join/appStateLifecycle';
|
|
67
|
+
|
|
68
|
+
export {
|
|
69
|
+
NATIVE_FEATURES,
|
|
70
|
+
GravixUnsupportedError,
|
|
71
|
+
getCapabilities,
|
|
72
|
+
isFeatureSupported,
|
|
73
|
+
type GravixCapabilities,
|
|
74
|
+
type GravixNativeFeature,
|
|
75
|
+
} from './unsupported';
|
|
76
|
+
export {
|
|
77
|
+
GRAVIX_VOICE_EFFECTS,
|
|
78
|
+
GravixVoiceEffects,
|
|
79
|
+
isGravixVoiceEffect,
|
|
80
|
+
type GravixVoiceEffect,
|
|
81
|
+
type GravixVoiceEffectBenchmark,
|
|
82
|
+
type GravixVoiceEffectReason,
|
|
83
|
+
type GravixVoiceEffectState,
|
|
84
|
+
} from './features/voiceEffects';
|
|
85
|
+
export {
|
|
86
|
+
DEFAULT_MUSIC_OPTIONS,
|
|
87
|
+
GRAVIX_MUSIC_SYNC_TOPIC,
|
|
88
|
+
GravixMusicSource,
|
|
89
|
+
GravixRoomMusic,
|
|
90
|
+
type GravixMusicOptions,
|
|
91
|
+
type GravixMusicPosition,
|
|
92
|
+
type GravixMusicStartOptions,
|
|
93
|
+
type GravixMusicState,
|
|
94
|
+
type GravixMusicStatus,
|
|
95
|
+
} from './features/roomMusic';
|
|
96
|
+
export {
|
|
97
|
+
GravixNoiseSuppression,
|
|
98
|
+
type GravixNoiseSuppressionState,
|
|
99
|
+
} from './features/noiseSuppression';
|
|
100
|
+
export {
|
|
101
|
+
GravixSingerCapture,
|
|
102
|
+
type GravixSingerCaptureSource,
|
|
103
|
+
} from './features/singerMode';
|
|
104
|
+
export {
|
|
105
|
+
GravixMicRelease,
|
|
106
|
+
type GravixRecorderState,
|
|
107
|
+
} from './features/micRelease';
|
|
108
|
+
export {
|
|
109
|
+
gravixUseAudioScenario,
|
|
110
|
+
type GravixAudioScenario,
|
|
111
|
+
} from './features/audioScenario';
|
|
112
|
+
export { GravixScreenShare } from './features/screenShare';
|
|
113
|
+
export {
|
|
114
|
+
GravixBeautyEffect,
|
|
115
|
+
GravixRoomCamera,
|
|
116
|
+
GRAVIX_CAMERA_PUBLISH_OPTIONS,
|
|
117
|
+
gravixEffects,
|
|
118
|
+
type GravixBeautyEffectOptions,
|
|
119
|
+
type GravixCameraEffect,
|
|
120
|
+
type GravixCameraOpenOptions,
|
|
121
|
+
type GravixCameraPosition,
|
|
122
|
+
type GravixEffectsCameraLike,
|
|
123
|
+
type GravixEffectsModuleLike,
|
|
124
|
+
type GravixEffectsOutputLike,
|
|
125
|
+
type GravixPackAvailabilityLike,
|
|
126
|
+
type GravixRoomCameraOptions,
|
|
127
|
+
type GravixRoomCameraState,
|
|
128
|
+
type GravixVideoEffect,
|
|
129
|
+
type GravixVideoEffectTarget,
|
|
130
|
+
} from './features/beauty';
|
|
131
|
+
export { GRAVIX_RTC_RN_VERSION } from './version';
|
|
132
|
+
/** Android native audio, low level (Flutter channel methods); the feature classes above use it. */
|
|
133
|
+
import * as GravixAndroidAudio from './android';
|
|
134
|
+
export { GravixAndroidAudio };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Copyright (c) 2026 Gravity Compile. MIT License; see LICENSE.
|
|
2
|
+
|
|
3
|
+
import { iosAttach, iosAudioModule } from './iosAudio';
|
|
4
|
+
|
|
5
|
+
// iOS: put the audio engine graph hook in place as soon as the SDK is
|
|
6
|
+
// imported, before any mic or connect, so the room-music monitor sees the
|
|
7
|
+
// first engine configure. No-op elsewhere; errors are left to the first
|
|
8
|
+
// feature call, which attaches again.
|
|
9
|
+
if (iosAudioModule()) {
|
|
10
|
+
iosAttach().catch(() => {});
|
|
11
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
// Copyright (c) 2026 Gravity Compile. MIT License; see LICENSE.
|
|
2
|
+
|
|
3
|
+
import { NativeEventEmitter, NativeModules, Platform } from 'react-native';
|
|
4
|
+
import { isFeatureSupported, type GravixNativeFeature } from '../unsupported';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Bridge to the iOS-only native module `GravixRtcIosAudio` (ios/audio): voice
|
|
8
|
+
* effects, noise suppression, room music and the recorder state. It is a
|
|
9
|
+
* plain interop module (not in the shared codegen spec, so Android is
|
|
10
|
+
* unaffected); the feature classes in src/features call it from their iOS
|
|
11
|
+
* branches only. One generic `call(method, args)` mirrors the Flutter method
|
|
12
|
+
* channels (`fxConfigure`, `nsConfigure`, `music.start`, ...).
|
|
13
|
+
*/
|
|
14
|
+
interface IosAudioNative {
|
|
15
|
+
attach(): Promise<{ processingInstalled: boolean; graphHooked: boolean }>;
|
|
16
|
+
getRecorderState(): Promise<GravixRecorderState>;
|
|
17
|
+
/** Mute releases the mic (Gravix audio device); older native sides lack it. */
|
|
18
|
+
setCaptureClosed?(closed: boolean): Promise<boolean>;
|
|
19
|
+
/** The muted mic's publication ended: the close ends once WebRTC stops recording. */
|
|
20
|
+
releaseCaptureClose?(): Promise<boolean>;
|
|
21
|
+
/** Info.plist `GravixMuteStopsMicTrack` (rollback), exported as a constant. */
|
|
22
|
+
muteStopsMicTrack?: boolean;
|
|
23
|
+
getConstants?(): { muteStopsMicTrack?: boolean };
|
|
24
|
+
call(method: string, args: Record<string, unknown>): Promise<unknown>;
|
|
25
|
+
addListener(eventName: string): void;
|
|
26
|
+
removeListeners(count: number): void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** The microphone recorder as the Gravix iOS audio device sees it. */
|
|
30
|
+
export interface GravixRecorderState {
|
|
31
|
+
recording: boolean;
|
|
32
|
+
/** The mic input is closed for a mute (mute releases mic). */
|
|
33
|
+
captureClosed?: boolean;
|
|
34
|
+
/** The muted publication ended: the close lasts until WebRTC stops recording. */
|
|
35
|
+
captureReleasePending?: boolean;
|
|
36
|
+
recordingInitialized: boolean;
|
|
37
|
+
playing: boolean;
|
|
38
|
+
engineRunning: boolean;
|
|
39
|
+
microphoneMuted: boolean;
|
|
40
|
+
/** -1 unknown, 0 voiceProcessing, 1 restartEngine, 2 inputMixer. */
|
|
41
|
+
muteMode: number;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export const IOS_AUDIO_EVENT = 'GravixIosAudioEvent';
|
|
45
|
+
|
|
46
|
+
export function isIos(): boolean {
|
|
47
|
+
return Platform.OS === 'ios';
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function iosAudioModule(): IosAudioNative | null {
|
|
51
|
+
if (!isIos()) return null;
|
|
52
|
+
return (
|
|
53
|
+
(NativeModules.GravixRtcIosAudio as IosAudioNative | undefined) ?? null
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function requireModule(): IosAudioNative {
|
|
58
|
+
const m = iosAudioModule();
|
|
59
|
+
if (!m) {
|
|
60
|
+
throw new Error(
|
|
61
|
+
'gravix-rtc-react-native: the iOS audio module (GravixRtcIosAudio) is not linked; run pod install'
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
return m;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** Calls a native audio method; rejects with the native error code. */
|
|
68
|
+
export async function iosCall<T = unknown>(
|
|
69
|
+
method: string,
|
|
70
|
+
args: Record<string, unknown> = {}
|
|
71
|
+
): Promise<T> {
|
|
72
|
+
return (await requireModule().call(method, args)) as T;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
let attachPromise: Promise<{
|
|
76
|
+
processingInstalled: boolean;
|
|
77
|
+
graphHooked: boolean;
|
|
78
|
+
}> | null = null;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Installs the audio engine graph hook (music monitor, VPIO AGC) once. Called
|
|
82
|
+
* by every iOS feature before its first native call; cheap after the first.
|
|
83
|
+
*/
|
|
84
|
+
export function iosAttach(): Promise<{
|
|
85
|
+
processingInstalled: boolean;
|
|
86
|
+
graphHooked: boolean;
|
|
87
|
+
}> {
|
|
88
|
+
if (!attachPromise) {
|
|
89
|
+
attachPromise = requireModule()
|
|
90
|
+
.attach()
|
|
91
|
+
.catch((e: unknown) => {
|
|
92
|
+
attachPromise = null;
|
|
93
|
+
throw e;
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
return attachPromise;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function iosRecorderState(): Promise<GravixRecorderState> {
|
|
100
|
+
return requireModule().getRecorderState();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Mute releases the mic on iOS: closes (true) or reopens the microphone input
|
|
105
|
+
* of the Gravix audio device (stock WebRTC keeps recording under a track
|
|
106
|
+
* mute). Resolves null without the native method, false when the Gravix audio
|
|
107
|
+
* device is not in use.
|
|
108
|
+
*/
|
|
109
|
+
export async function iosSetCaptureClosed(
|
|
110
|
+
closed: boolean
|
|
111
|
+
): Promise<boolean | null> {
|
|
112
|
+
const m = iosAudioModule();
|
|
113
|
+
if (!m?.setCaptureClosed) return null;
|
|
114
|
+
return m.setCaptureClosed(closed);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* The muted mic's publication ended (final unpublish, room left): the Gravix
|
|
119
|
+
* audio device keeps the mic closed while WebRTC still records and opens it
|
|
120
|
+
* once recording stops. A plain close survives a WebRTC recording stop / start,
|
|
121
|
+
* so a reconnect republish of a muted mic never opens the input. Resolves null
|
|
122
|
+
* without the native method.
|
|
123
|
+
*/
|
|
124
|
+
export async function iosReleaseCaptureClose(): Promise<boolean | null> {
|
|
125
|
+
const m = iosAudioModule();
|
|
126
|
+
if (!m?.releaseCaptureClose) return null;
|
|
127
|
+
return m.releaseCaptureClose();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Rollback for the single iOS mute path: Info.plist boolean
|
|
132
|
+
* `GravixMuteStopsMicTrack` = YES makes the room policy also stop the mic
|
|
133
|
+
* track on mute (`stopOnMute`; the core reacquires it with getUserMedia on
|
|
134
|
+
* unmute), as 0.2.0 betas did. Default false: the Gravix audio device's mic
|
|
135
|
+
* close is the only mute path.
|
|
136
|
+
*/
|
|
137
|
+
export function iosMuteStopsMicTrack(): boolean {
|
|
138
|
+
const m = iosAudioModule();
|
|
139
|
+
if (!m) return false;
|
|
140
|
+
try {
|
|
141
|
+
return (
|
|
142
|
+
(m.muteStopsMicTrack ?? m.getConstants?.()?.muteStopsMicTrack) === true
|
|
143
|
+
);
|
|
144
|
+
} catch {
|
|
145
|
+
return false;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
type Listener = (body: Record<string, unknown>) => void;
|
|
150
|
+
const listeners = new Map<string, Set<Listener>>();
|
|
151
|
+
let emitter: NativeEventEmitter | null = null;
|
|
152
|
+
let subscribed = false;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Subscribes to a native audio event: `onVoiceEffects`, `onNsEvent`,
|
|
156
|
+
* `music.onCompleted`. Returns the unsubscribe function.
|
|
157
|
+
*/
|
|
158
|
+
export function onIosAudioEvent(name: string, fn: Listener): () => void {
|
|
159
|
+
const m = iosAudioModule();
|
|
160
|
+
if (!m) return () => {};
|
|
161
|
+
let set = listeners.get(name);
|
|
162
|
+
if (!set) listeners.set(name, (set = new Set()));
|
|
163
|
+
set.add(fn);
|
|
164
|
+
if (!subscribed) {
|
|
165
|
+
subscribed = true;
|
|
166
|
+
emitter = emitter ?? new NativeEventEmitter(m as never);
|
|
167
|
+
emitter.addListener(
|
|
168
|
+
IOS_AUDIO_EVENT,
|
|
169
|
+
(e: { name?: string; body?: Record<string, unknown> }) => {
|
|
170
|
+
const s = e?.name ? listeners.get(e.name) : undefined;
|
|
171
|
+
s?.forEach((l) => {
|
|
172
|
+
try {
|
|
173
|
+
l(e.body ?? {});
|
|
174
|
+
} catch {
|
|
175
|
+
// a listener's error must not stop the others
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
return () => {
|
|
182
|
+
set?.delete(fn);
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/** Test hook. @internal */
|
|
187
|
+
export function __resetIosAudioForTests(): void {
|
|
188
|
+
attachPromise = null;
|
|
189
|
+
listeners.clear();
|
|
190
|
+
emitter = null;
|
|
191
|
+
subscribed = false;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Whether an iOS branch may run: on iOS and the native side reports the
|
|
196
|
+
* feature (it is false when GravixRtcSetup.setup() did not install the audio
|
|
197
|
+
* chain, or with an older native module); otherwise the stub throws
|
|
198
|
+
* GravixUnsupportedError as on every platform without the feature.
|
|
199
|
+
*/
|
|
200
|
+
export function iosFeature(feature: GravixNativeFeature): boolean {
|
|
201
|
+
return isIos() && isFeatureSupported(feature);
|
|
202
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// Copyright (c) 2026 Gravity Compile. MIT License; see LICENSE.
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
GravixJoin,
|
|
5
|
+
type GravixJoinOptions,
|
|
6
|
+
type GravixPageLifecycle,
|
|
7
|
+
} from 'gravix-rtc';
|
|
8
|
+
import { AppState } from 'react-native';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The app lifecycle in the shape gravix-rtc's join guard expects
|
|
12
|
+
* (`GravixPageLifecycle`): "hidden" = the app went to the background
|
|
13
|
+
* (`AppState` 'background'; iOS 'inactive', e.g. Control Center, is not
|
|
14
|
+
* hidden), "visible frame" = the next frame drawn while the app is active.
|
|
15
|
+
*
|
|
16
|
+
* In a browser GravixJoin uses `document.visibilityState`; in React Native
|
|
17
|
+
* there is no document, so without this the join has no lifecycle guard.
|
|
18
|
+
*/
|
|
19
|
+
export function gravixAppStateLifecycle(): GravixPageLifecycle {
|
|
20
|
+
return {
|
|
21
|
+
hidden: () => AppState.currentState === 'background',
|
|
22
|
+
onHide(listener) {
|
|
23
|
+
const sub = AppState.addEventListener('change', (state) => {
|
|
24
|
+
if (state === 'background') listener('hidden');
|
|
25
|
+
});
|
|
26
|
+
return () => sub.remove();
|
|
27
|
+
},
|
|
28
|
+
onVisibleFrame(listener) {
|
|
29
|
+
if (AppState.currentState === 'active') {
|
|
30
|
+
const id = requestAnimationFrame(() => listener());
|
|
31
|
+
return () => cancelAnimationFrame(id);
|
|
32
|
+
}
|
|
33
|
+
let rafId: number | undefined;
|
|
34
|
+
const sub = AppState.addEventListener('change', (state) => {
|
|
35
|
+
if (state === 'active') {
|
|
36
|
+
sub.remove();
|
|
37
|
+
rafId = requestAnimationFrame(() => listener());
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
return () => {
|
|
41
|
+
sub.remove();
|
|
42
|
+
if (rafId !== undefined) cancelAnimationFrame(rafId);
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** `new GravixJoin(options)` with the React Native app lifecycle as the join guard. */
|
|
49
|
+
export function createGravixJoin(options: GravixJoinOptions): GravixJoin {
|
|
50
|
+
// an explicit `lifecycle: undefined` must not drop the AppState guard
|
|
51
|
+
return new GravixJoin({
|
|
52
|
+
...options,
|
|
53
|
+
lifecycle: options.lifecycle ?? gravixAppStateLifecycle(),
|
|
54
|
+
});
|
|
55
|
+
}
|