diff --git a/examples/TypeScriptMessaging/android/gradle.properties b/examples/TypeScriptMessaging/android/gradle.properties index 0b3ad5648..ebce1d914 100644 --- a/examples/TypeScriptMessaging/android/gradle.properties +++ b/examples/TypeScriptMessaging/android/gradle.properties @@ -42,5 +42,3 @@ hermesEnabled=true # this is needed for react-native-gesture-handler to be both a devDep of core and be a dep on the typescript sample app disableMultipleInstancesCheck=true -# for react-native-flipper integration -FLIPPER_VERSION=0.247.0 \ No newline at end of file diff --git a/examples/TypeScriptMessaging/ios/Podfile.lock b/examples/TypeScriptMessaging/ios/Podfile.lock index 30bab1662..3e81fad7a 100644 --- a/examples/TypeScriptMessaging/ios/Podfile.lock +++ b/examples/TypeScriptMessaging/ios/Podfile.lock @@ -7,29 +7,10 @@ PODS: - hermes-engine (0.75.4): - hermes-engine/Pre-built (= 0.75.4) - hermes-engine/Pre-built (0.75.4) - - op-sqlite (6.0.4): - - DoubleConversion - - glog - - hermes-engine - - RCT-Folly (= 2024.01.01.00) - - RCTRequired - - RCTTypeSafety + - op-sqlite (6.2.11): - React - React-callinvoker - React-Core - - React-debug - - React-Fabric - - React-featureflags - - React-graphics - - React-ImageManager - - React-NativeModulesApple - - React-RCTFabric - - React-rendererdebug - - React-utils - - ReactCodegen - - ReactCommon/turbomodule/bridging - - ReactCommon/turbomodule/core - - Yoga - RCT-Folly (2024.01.01.00): - boost - DoubleConversion @@ -66,7 +47,6 @@ PODS: - React-RCTText (= 0.75.4) - React-RCTVibration (= 0.75.4) - React-callinvoker (0.75.4) - - React-Codegen (0.1.0) - React-Core (0.75.4): - glog - hermes-engine @@ -1261,27 +1241,8 @@ PODS: - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - Yoga - - react-native-blob-util (0.19.9): - - DoubleConversion - - glog - - hermes-engine - - RCT-Folly (= 2024.01.01.00) - - RCTRequired - - RCTTypeSafety + - react-native-blob-util (0.19.11): - React-Core - - React-debug - - React-Fabric - - React-featureflags - - React-graphics - - React-ImageManager - - React-NativeModulesApple - - React-RCTFabric - - React-rendererdebug - - React-utils - - ReactCodegen - - ReactCommon/turbomodule/bridging - - ReactCommon/turbomodule/core - - Yoga - react-native-document-picker (9.3.1): - DoubleConversion - glog @@ -1327,94 +1288,8 @@ PODS: - react-native-netinfo (11.3.2): - React-Core - react-native-safe-area-context (4.11.1): - - DoubleConversion - - glog - - hermes-engine - - RCT-Folly (= 2024.01.01.00) - - RCTRequired - - RCTTypeSafety - - React-Core - - React-debug - - React-Fabric - - React-featureflags - - React-graphics - - React-ImageManager - - react-native-safe-area-context/common (= 4.11.1) - - react-native-safe-area-context/fabric (= 4.11.1) - - React-NativeModulesApple - - React-RCTFabric - - React-rendererdebug - - React-utils - - ReactCodegen - - ReactCommon/turbomodule/bridging - - ReactCommon/turbomodule/core - - Yoga - - react-native-safe-area-context/common (4.11.1): - - DoubleConversion - - glog - - hermes-engine - - RCT-Folly (= 2024.01.01.00) - - RCTRequired - - RCTTypeSafety - - React-Core - - React-debug - - React-Fabric - - React-featureflags - - React-graphics - - React-ImageManager - - React-NativeModulesApple - - React-RCTFabric - - React-rendererdebug - - React-utils - - ReactCodegen - - ReactCommon/turbomodule/bridging - - ReactCommon/turbomodule/core - - Yoga - - react-native-safe-area-context/fabric (4.11.1): - - DoubleConversion - - glog - - hermes-engine - - RCT-Folly (= 2024.01.01.00) - - RCTRequired - - RCTTypeSafety - - React-Core - - React-debug - - React-Fabric - - React-featureflags - - React-graphics - - React-ImageManager - - react-native-safe-area-context/common - - React-NativeModulesApple - - React-RCTFabric - - React-rendererdebug - - React-utils - - ReactCodegen - - ReactCommon/turbomodule/bridging - - ReactCommon/turbomodule/core - - Yoga - - react-native-video (6.4.2): - - DoubleConversion - - glog - - hermes-engine - - RCT-Folly (= 2024.01.01.00) - - RCTRequired - - RCTTypeSafety - React-Core - - React-debug - - React-Fabric - - React-featureflags - - React-graphics - - React-ImageManager - - react-native-video/Video (= 6.4.2) - - React-NativeModulesApple - - React-RCTFabric - - React-rendererdebug - - React-utils - - ReactCodegen - - ReactCommon/turbomodule/bridging - - ReactCommon/turbomodule/core - - Yoga - - react-native-video/Fabric (6.4.2): + - react-native-video (6.7.0): - DoubleConversion - glog - hermes-engine @@ -1427,6 +1302,7 @@ PODS: - React-featureflags - React-graphics - React-ImageManager + - react-native-video/Video (= 6.7.0) - React-NativeModulesApple - React-RCTFabric - React-rendererdebug @@ -1435,7 +1311,7 @@ PODS: - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - Yoga - - react-native-video/Video (6.4.2): + - react-native-video/Video (6.7.0): - DoubleConversion - glog - hermes-engine @@ -1448,7 +1324,6 @@ PODS: - React-featureflags - React-graphics - React-ImageManager - - react-native-video/Fabric - React-NativeModulesApple - React-RCTFabric - React-rendererdebug @@ -1719,7 +1594,9 @@ PODS: - React-utils (= 0.75.4) - RNAudioRecorderPlayer (3.6.12): - React-Core - - RNCClipboard (1.14.2): + - RNCClipboard (1.14.3): + - React-Core + - RNGestureHandler (2.20.2): - DoubleConversion - glog - hermes-engine @@ -1740,7 +1617,7 @@ PODS: - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - Yoga - - RNGestureHandler (2.20.2): + - RNReactNativeHapticFeedback (2.3.3): - DoubleConversion - glog - hermes-engine @@ -1761,13 +1638,6 @@ PODS: - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - Yoga - - RNReactNativeHapticFeedback (2.2.0): - - RCT-Folly - - RCTRequired - - RCTTypeSafety - - React-Codegen - - React-Core - - ReactCommon/turbomodule/core - RNReanimated (3.16.1): - DoubleConversion - glog @@ -1876,9 +1746,8 @@ PODS: - ReactCodegen - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - - RNScreens/common (= 3.35.0) - Yoga - - RNScreens/common (3.35.0): + - RNShare (11.0.4): - DoubleConversion - glog - hermes-engine @@ -1893,87 +1762,17 @@ PODS: - React-ImageManager - React-NativeModulesApple - React-RCTFabric - - React-RCTImage - React-rendererdebug - React-utils - ReactCodegen - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - Yoga - - RNShare (10.2.1): - - RCT-Folly - - RCTRequired - - RCTTypeSafety - - React-Codegen - - React-Core - - React-RCTFabric - - ReactCommon/turbomodule/core - RNSVG (15.8.0): - - DoubleConversion - - glog - - hermes-engine - - RCT-Folly (= 2024.01.01.00) - - RCTRequired - - RCTTypeSafety - React-Core - - React-debug - - React-Fabric - - React-featureflags - - React-graphics - - React-ImageManager - - React-NativeModulesApple - - React-RCTFabric - - React-rendererdebug - - React-utils - - ReactCodegen - - ReactCommon/turbomodule/bridging - - ReactCommon/turbomodule/core - - RNSVG/common (= 15.8.0) - - Yoga - - RNSVG/common (15.8.0): - - DoubleConversion - - glog - - hermes-engine - - RCT-Folly (= 2024.01.01.00) - - RCTRequired - - RCTTypeSafety - - React-Core - - React-debug - - React-Fabric - - React-featureflags - - React-graphics - - React-ImageManager - - React-NativeModulesApple - - React-RCTFabric - - React-rendererdebug - - React-utils - - ReactCodegen - - ReactCommon/turbomodule/bridging - - ReactCommon/turbomodule/core - - Yoga - SocketRocket (0.7.0) - stream-chat-react-native (5.39.5): - - DoubleConversion - - glog - - hermes-engine - - RCT-Folly (= 2024.01.01.00) - - RCTRequired - - RCTTypeSafety - - React-Codegen - React-Core - - React-debug - - React-Fabric - - React-featureflags - - React-graphics - - React-ImageManager - - React-NativeModulesApple - - React-RCTFabric - - React-rendererdebug - - React-utils - - ReactCodegen - - ReactCommon/turbomodule/bridging - - ReactCommon/turbomodule/core - - Yoga - Yoga (0.0.0) DEPENDENCIES: @@ -2060,7 +1859,6 @@ DEPENDENCIES: SPEC REPOS: trunk: - - React-Codegen - SocketRocket EXTERNAL SOURCES: @@ -2229,28 +2027,27 @@ SPEC CHECKSUMS: fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120 glog: 69ef571f3de08433d766d614c73a9838a06bf7eb hermes-engine: ea92f60f37dba025e293cbe4b4a548fd26b610a0 - op-sqlite: 5c180914c2136c594c830aae52d007e229a04c08 + op-sqlite: b4f61f3085ea3b70f264f3a64b724c81ab117e58 RCT-Folly: 4464f4d875961fce86008d45f4ecf6cef6de0740 RCTDeprecation: 726d24248aeab6d7180dac71a936bbca6a994ed1 RCTRequired: a94e7febda6db0345d207e854323c37e3a31d93b RCTTypeSafety: 28e24a6e44f5cbf912c66dde6ab7e07d1059a205 React: c2830fa483b0334bda284e46a8579ebbe0c5447e React-callinvoker: 4aecde929540c26b841a4493f70ebf6016691eb8 - React-Codegen: 4b8b4817cea7a54b83851d4c1f91f79aa73de30a React-Core: 9c059899f00d46b5cec3ed79251f77d9c469553d React-CoreModules: 9fac2d31803c0ed03e4ddaa17f1481714f8633a5 React-cxxreact: a979810a3ca4045ceb09407a17563046a7f71494 React-debug: 3d21f69d8def0656f8b8ec25c0f05954f4d862c5 - React-defaultsnativemodule: 5bb91842d2bd91c5e9d23f67f5913a1226e8d1f2 - React-domnativemodule: a8ff57705d8372d7182e9277110ad290d50ffeed + React-defaultsnativemodule: 2fa2bdb7bd03ff9764facc04aa8520ebf14febae + React-domnativemodule: 986e6fe7569e1383dce452a7b013b6c843a752df React-Fabric: 3bc7be9e3a6b7581fc828dc2aa041e107fc8ffb8 React-FabricComponents: 668e0cb02344c2942e4c8921a643648faa6dc364 React-FabricImage: 3f44dd25a2b020ed5215d4438a1bb1f3461cd4f1 React-featureflags: ee1abd6f71555604a36cda6476e3c502ca9a48e5 - React-featureflagsnativemodule: d91903b8ad0e82b1eee3e7845d08024fbd6c758f + React-featureflagsnativemodule: 7ccc0cd666c2a6257401dceb7920818ac2b42803 React-graphics: d7dd9c8d75cad5af19e19911fa370f78f2febd96 React-hermes: 2069b08e965e48b7f8aa2c0ca0a2f383349ed55d - React-idlecallbacksnativemodule: 568f7db5c625852e3eac25a5686760da152f0225 + React-idlecallbacksnativemodule: e211b2099b6dced97959cb58257bab2b2de4d7ef React-ImageManager: ab7a7d17dd0ff1ef1d4e1e88197d1119da9957ce React-jserrorhandler: d9e867bb83b868472f3f7601883f0403b3e3942d React-jsi: d68f1d516e5120a510afe356647a6a1e1f98f2db @@ -2259,22 +2056,22 @@ SPEC CHECKSUMS: React-jsitracing: 0e8c0aadb1fcec6b1e4f2a66ee3b0da80f0f8615 React-logger: d79b704bf215af194f5213a6b7deec50ba8e6a9b React-Mapbuffer: b982d5bba94a8bc073bda48f0d27c9b28417fae3 - React-microtasksnativemodule: 2cec1d6e126598df0f165268afa231174dd1a611 - react-native-blob-util: ab438616796f77ce5347c37531e27fda74124121 - react-native-document-picker: e9d83c149bdd72dc01cf8dcb8df0389c6bd5fddb - react-native-image-picker: ba5067f7d833b9081102c0a33dd0188eb21d92dc + React-microtasksnativemodule: 2b73e68f0462f3175f98782db08896f8501afd20 + react-native-blob-util: 39a20f2ef11556d958dc4beb0aa07d1ef2690745 + react-native-document-picker: 7343222102ece8aec51390717f47ad7119c7921f + react-native-image-picker: 2fbbafdae7a7c6db9d25df2f2b1db4442d2ca2ad react-native-netinfo: 076df4f9b07f6670acf4ce9a75aac8d34c2e2ccc - react-native-safe-area-context: 2279fe040bc93af8624f7d034806180fdbe5fa02 - react-native-video: 01031cb720d21e6877d77bfc0faca4393cf7e4fc + react-native-safe-area-context: 5141f11858b033636f1788b14f32eaba92cee810 + react-native-video: 9aec95eecb1c523b67e71a44032935f77f926276 React-nativeconfig: 8c83d992b9cc7d75b5abe262069eaeea4349f794 React-NativeModulesApple: 9f7920224a3b0c7d04d77990067ded14cee3c614 React-perflogger: 59e1a3182dca2cee7b9f1f7aab204018d46d1914 React-performancetimeline: a9d05533ff834c6aa1f532e05e571f3fd2e3c1ed React-RCTActionSheet: d80e68d3baa163e4012a47c1f42ddd8bcd9672cc React-RCTAnimation: bde981f6bd7f8493696564da9b3bd05721d3b3cc - React-RCTAppDelegate: b21d50ec42f18fedae765629d56850538a8c98d7 + React-RCTAppDelegate: 0176615c51476c88212bf3edbafb840d39ea7631 React-RCTBlob: 520a0382bf8e89b9153d60e3c6293e51615834e9 - React-RCTFabric: a083f6c78c6084a0ac332934fc5cfc4271bab61f + React-RCTFabric: c9da097b19b30017a99498b8c66a69c72f3ce689 React-RCTImage: 90448d2882464af6015ed57c98f463f8748be465 React-RCTLinking: 1bd95d0a704c271d21d758e0f0388cced768d77d React-RCTNetwork: 218af6e63eb9b47935cc5a775b7a1396cf10ff91 @@ -2293,17 +2090,17 @@ SPEC CHECKSUMS: ReactCodegen: 4bcb34e6b5ebf6eef5cee34f55aa39991ea1c1f1 ReactCommon: 6a952e50c2a4b694731d7682aaa6c79bc156e4ad RNAudioRecorderPlayer: 224c7de87722938aedce04000d09baa633148f5b - RNCClipboard: e55ecafbf4e0e42409391a98aceea76278699036 - RNGestureHandler: fc5ce5bf284640d3af6431c3a5c3bc121e98d045 - RNReactNativeHapticFeedback: 616c35bdec7d20d4c524a7949ca9829c09e35f37 - RNReanimated: 2d728bad3a69119be89c3431ee0ccda026ecffdc - RNScreens: e389d6a6a66a4f0d3662924ecae803073ccce8ec - RNShare: 0463c31e8c1883bb80afed64066cff3dc7ed4e1a - RNSVG: 536cd3c866c878faf72beaba166c8b02fe2b762b + RNCClipboard: 2821ac938ef46f736a8de0c8814845dde2dcbdfb + RNGestureHandler: 511250b190a284388f9dd0d2e56c1df76f14cfb8 + RNReactNativeHapticFeedback: 0d591ea1e150f36cb96d868d4e8d77272243d78a + RNReanimated: f42a5044d121d68e91680caacb0293f4274228eb + RNScreens: c7ceced6a8384cb9be5e7a5e88e9e714401fd958 + RNShare: eaeb5e7dc1618d19db6234da1af91fc60dd6bc0f + RNSVG: 8b1a777d54096b8c2a0fd38fc9d5a454332bbb4d SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d - stream-chat-react-native: 2f2f2d0f8751c0469d2e541cd80ce5d6d13b6921 + stream-chat-react-native: 489a6a053480ab8556883de05a28df2c7387ede6 Yoga: 055f92ad73f8c8600a93f0e25ac0b2344c3b07e6 PODFILE CHECKSUM: 6b7a4b74915b42bfe4ffddaf67cbf5e7a2bfeab3 -COCOAPODS: 1.14.3 +COCOAPODS: 1.16.2 diff --git a/examples/TypeScriptMessaging/package.json b/examples/TypeScriptMessaging/package.json index 24d18db56..4fae0c60b 100644 --- a/examples/TypeScriptMessaging/package.json +++ b/examples/TypeScriptMessaging/package.json @@ -12,25 +12,25 @@ "clean-all": "yarn clean && rm -rf node_modules && rm -rf ios/Pods && rm -rf vendor && bundle install && yarn install && cd ios && bundle exec pod install && cd -" }, "dependencies": { - "@op-engineering/op-sqlite": "^6.0.4", - "@react-native-clipboard/clipboard": "^1.10.0", + "@op-engineering/op-sqlite": "^6.2.11", + "@react-native-clipboard/clipboard": "^1.14.3", "@react-native-community/netinfo": "^11.3.2", "@react-navigation/native": "^6.1.17", "@react-navigation/stack": "^6.4.0", "react": "18.3.1", "react-native": "^0.75.4", - "react-native-audio-recorder-player": "3.6.12", - "react-native-blob-util": "^0.19.9", + "react-native-audio-recorder-player": "^3.6.12", + "react-native-blob-util": "^0.19.11", "react-native-document-picker": "^9.3.1", "react-native-gesture-handler": "^2.18.1", - "react-native-haptic-feedback": "^2.2.0", + "react-native-haptic-feedback": "^2.3.3", "react-native-image-picker": "^7.1.2", "react-native-reanimated": "^3.16.0", "react-native-safe-area-context": "^4.11.1", "react-native-screens": "^3.34.0", - "react-native-share": "^10.2.1", + "react-native-share": "^11.0.4", "react-native-svg": "^15.6.0", - "react-native-video": "^6.4.2", + "react-native-video": "^6.7.0", "stream-chat-react-native": "link:../../package/native-package", "stream-chat-react-native-core": "link:../../package" }, diff --git a/examples/TypeScriptMessaging/yarn.lock b/examples/TypeScriptMessaging/yarn.lock index 18d16bc5f..fba9329c7 100644 --- a/examples/TypeScriptMessaging/yarn.lock +++ b/examples/TypeScriptMessaging/yarn.lock @@ -2230,20 +2230,20 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" -"@op-engineering/op-sqlite@^6.0.4": - version "6.0.4" - resolved "https://registry.yarnpkg.com/@op-engineering/op-sqlite/-/op-sqlite-6.0.4.tgz#482c11e5333776707b72ac0f25ba9b9f09f2091e" - integrity sha512-reC9TszzU+ygH+RckXA017SeBEwzhuy/7UxLtGVtXpSlWEJp24MmMUYMcWO++OnNFHZZrpI376M09RjyQkl7xQ== +"@op-engineering/op-sqlite@^6.2.11": + version "6.2.11" + resolved "https://registry.yarnpkg.com/@op-engineering/op-sqlite/-/op-sqlite-6.2.11.tgz#0e5b127561c80cdb8748809d17f25ff1fd629219" + integrity sha512-gYIMJh55ZDHQ6w6qgTSFOQGQaHvA/EKk8uiCqq+jJTduE5DzrJYOfxeHrye+/BffdWE2T5Wm6voDeLSMbFvr2g== "@pkgjs/parseargs@^0.11.0": version "0.11.0" resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg== -"@react-native-clipboard/clipboard@^1.10.0": - version "1.14.2" - resolved "https://registry.yarnpkg.com/@react-native-clipboard/clipboard/-/clipboard-1.14.2.tgz#d290e9f79799e260ba4ebd9e9948079258826b25" - integrity sha512-Mb58f3neB6sM9oOtKYVGLvN8KVByea67OA9ekJ0c9FwdH24INu8RJoA7/fq+PRk+7oxbeamAcEoQPRv0uwbbMw== +"@react-native-clipboard/clipboard@^1.14.3": + version "1.14.3" + resolved "https://registry.yarnpkg.com/@react-native-clipboard/clipboard/-/clipboard-1.14.3.tgz#3596ade1d85b0accdd2585674fcea3ea185f0e20" + integrity sha512-EVWxJfCSyBN2SH5b3JrA/w1qlYu3vihQOfdD7fs/BYp63xL6qy93CvbFDHzF8ooFpGM6f67hkAN+gxl1RfOKuw== "@react-native-community/cli-clean@12.3.6": version "12.3.6" @@ -3366,9 +3366,9 @@ ansi-regex@^5.0.0, ansi-regex@^5.0.1: integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== ansi-regex@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.0.1.tgz#3183e38fae9a65d7cb5e53945cd5897d0260a06a" - integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA== + version "6.1.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.1.0.tgz#95ec409c69619d6cb1b8b34f14b660ef28ebd654" + integrity sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA== ansi-styles@^3.2.0, ansi-styles@^3.2.1: version "3.2.1" @@ -4918,9 +4918,9 @@ for-each@^0.3.3: is-callable "^1.1.3" foreground-child@^3.1.0: - version "3.2.1" - resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-3.2.1.tgz#767004ccf3a5b30df39bed90718bab43fe0a59f7" - integrity sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA== + version "3.3.0" + resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-3.3.0.tgz#0ac8644c06e431439f8561db8ecf29a7b5519c77" + integrity sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg== dependencies: cross-spawn "^7.0.0" signal-exit "^4.0.1" @@ -5031,9 +5031,9 @@ glob-parent@^6.0.2: is-glob "^4.0.3" glob@^10.3.10: - version "10.4.2" - resolved "https://registry.yarnpkg.com/glob/-/glob-10.4.2.tgz#bed6b95dade5c1f80b4434daced233aee76160e5" - integrity sha512-GwMlUF6PkPo3Gk21UxkCohOv0PLcIXVtKyLlpEI28R/cO/4eNOdmLk3CMW1wROV/WR/EsZOWAfBbBOqYvs88/w== + version "10.4.5" + resolved "https://registry.yarnpkg.com/glob/-/glob-10.4.5.tgz#f4d9f0b90ffdbab09c9d77f5f29b4262517b0956" + integrity sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg== dependencies: foreground-child "^3.1.0" jackspeak "^3.1.2" @@ -5588,9 +5588,9 @@ istanbul-reports@^3.1.3: istanbul-lib-report "^3.0.0" jackspeak@^3.1.2: - version "3.4.0" - resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-3.4.0.tgz#a75763ff36ad778ede6a156d8ee8b124de445b4a" - integrity sha512-JVYhQnN59LVPFCEcVa2C3CrEKYacvjRfqIQl+h8oi91aLYQVWRYbxjPcv1bUiUy/kLmQaANrYfNMCO3kuEDHfw== + version "3.4.3" + resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-3.4.3.tgz#8833a9d89ab4acde6188942bd1c53b6390ed5a8a" + integrity sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw== dependencies: "@isaacs/cliui" "^8.0.2" optionalDependencies: @@ -6215,9 +6215,9 @@ loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0: js-tokens "^3.0.0 || ^4.0.0" lru-cache@^10.2.0: - version "10.3.0" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.3.0.tgz#4a4aaf10c84658ab70f79a85a9a3f1e1fb11196b" - integrity sha512-CQl19J/g+Hbjbv4Y3mFNNXFEL/5t/KCg8POCuUqd4rMKjGG+j1ybER83hxV58zL+dFI1PTkt3GNFSHRt+d8qEQ== + version "10.4.3" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119" + integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ== lru-cache@^5.1.1: version "5.1.1" @@ -6834,9 +6834,9 @@ p-try@^2.0.0: integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== package-json-from-dist@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz#e501cd3094b278495eb4258d4c9f6d5ac3019f00" - integrity sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw== + version "1.0.1" + resolved "https://registry.yarnpkg.com/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz#4f1471a010827a86f94cfd9b0727e36d267de505" + integrity sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw== parent-module@^1.0.0: version "1.0.1" @@ -7099,17 +7099,17 @@ react-is@^18.3.1: resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.3.1.tgz#e83557dc12eae63a99e003a46388b1dcbb44db7e" integrity sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg== -react-native-audio-recorder-player@3.6.12: +react-native-audio-recorder-player@^3.6.12: version "3.6.12" resolved "https://registry.yarnpkg.com/react-native-audio-recorder-player/-/react-native-audio-recorder-player-3.6.12.tgz#edc3aa271534a4ce6bc4b32ff2b0ece555b35498" integrity sha512-/pnZxPA2jvQ9K7oDtrjcAjc/hn124swi451Q/i1Z6yesDVqupE38moNm12HgY1IVupdUCjeiZVqPoShcE0N8mw== dependencies: hyochan-welcome "^1.0.0" -react-native-blob-util@^0.19.9: - version "0.19.9" - resolved "https://registry.yarnpkg.com/react-native-blob-util/-/react-native-blob-util-0.19.9.tgz#6f2c27d77cd36b9e03c967c54930491404d9d780" - integrity sha512-gIuErPqGbBIAPWf+K07x/8mRZ80Waz9DWgwMdQ8zWgms8kYfAji0GNk2gvZZ0y9MKe61jme7oOdZ7InWLRy2GA== +react-native-blob-util@^0.19.11: + version "0.19.11" + resolved "https://registry.yarnpkg.com/react-native-blob-util/-/react-native-blob-util-0.19.11.tgz#20c0ca589e975fee849cba1cdba712cc6adb4f59" + integrity sha512-lxaeDzFLYffR6lbRiOce0oTYO6pE3/PyT8Sa7qiz8B+IT9oe4G85SlVCdl5F9xMJh/Zer2onBLw7u+B1AS+GFA== dependencies: base-64 "0.1.0" glob "^10.3.10" @@ -7131,10 +7131,10 @@ react-native-gesture-handler@^2.18.1: invariant "^2.2.4" prop-types "^15.7.2" -react-native-haptic-feedback@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/react-native-haptic-feedback/-/react-native-haptic-feedback-2.2.0.tgz#bc46edd1f053265bfbe6c32487cbce074e099429" - integrity sha512-3tqJOjCguWhIrX0nkURn4yw6kXdsSDjjrvZCRjKXYGlL28hdQmoW2okAHduDTD9FWj9lA+lHgwFWgGs4aFNN7A== +react-native-haptic-feedback@^2.3.3: + version "2.3.3" + resolved "https://registry.yarnpkg.com/react-native-haptic-feedback/-/react-native-haptic-feedback-2.3.3.tgz#88b6876e91399a69bd1b551fe1681b2f3dc1214e" + integrity sha512-svS4D5PxfNv8o68m9ahWfwje5NqukM3qLS48+WTdhbDkNUkOhP9rDfDSRHzlhk4zq+ISjyw95EhLeh8NkKX5vQ== react-native-image-picker@^7.1.2: version "7.1.2" @@ -7187,10 +7187,10 @@ react-native-screens@^3.34.0: react-freeze "^1.0.0" warn-once "^0.1.0" -react-native-share@^10.2.1: - version "10.2.1" - resolved "https://registry.yarnpkg.com/react-native-share/-/react-native-share-10.2.1.tgz#baf94848c2acee6e52f6b28e05c47fa5fa9402be" - integrity sha512-Z2LWGYWH7raM4H6Oauttv1tEhaB43XSWJAN8iS6oaSG9CnyrUBeYFF4QpU1AH5RgNeylXQdN8CtbizCHHt6coQ== +react-native-share@^11.0.4: + version "11.0.4" + resolved "https://registry.yarnpkg.com/react-native-share/-/react-native-share-11.0.4.tgz#9d7ed7b15e68aa739fc0cbb67738b650f878ed80" + integrity sha512-i91n1Pcdaxxr39uxR5KduXjqi5FSEXuEO6rmeHl8OPs5rqo4No36qJXUU6du4TZUI6tFSENdxnzZMh3OsMF+ug== react-native-svg@^15.6.0: version "15.8.0" @@ -7208,10 +7208,10 @@ react-native-url-polyfill@^1.3.0: dependencies: whatwg-url-without-unicode "8.0.0-3" -react-native-video@^6.4.2: - version "6.4.2" - resolved "https://registry.yarnpkg.com/react-native-video/-/react-native-video-6.4.2.tgz#f1d8e7594d36aa513ba21aa86bcd6e11c2716915" - integrity sha512-8/8AVnamWJU80ZTWFFrLtpzfJeonSM8C8C8YycWAnjzro+FpJqpnQFFheVU2l2BSrnRTGA3eT2p4euXc+SByMw== +react-native-video@^6.7.0: + version "6.7.0" + resolved "https://registry.yarnpkg.com/react-native-video/-/react-native-video-6.7.0.tgz#0fa3dc1a3274a07ac66740cbbb85dad36325ef93" + integrity sha512-9516km2AorwEbeJtpODCeZa7BJGYxoMtyArzZANqCWLioNJPWAbZJjbWp+JIKnoXvb/qniNuTJ1989Zdohc8XQ== react-native@*: version "0.73.6" diff --git a/package/native-package/android/build.gradle b/package/native-package/android/build.gradle index 876b08a53..1c0d25b34 100644 --- a/package/native-package/android/build.gradle +++ b/package/native-package/android/build.gradle @@ -42,7 +42,7 @@ android { * See: https://developer.android.com/build/releases/past-releases/agp-8-0-0-release-notes#namespace-dsl */ if (agpMajorVersion >= 7 && agpMinorVersion >= 3) { - namespace "com.reactnativeimageresizer" + namespace "com.streamchatreactnative" } defaultConfig { @@ -97,7 +97,7 @@ dependencies { if (isNewArchitectureEnabled()) { react { jsRootDir = file("../src/") - libraryName = "ImageResizer" - codegenJavaPackageName = "com.reactnativeimageresizer" + libraryName = "StreamChatReactNative" + codegenJavaPackageName = "com.streamchatreactnative" } } diff --git a/package/native-package/android/src/main/AndroidManifest.xml b/package/native-package/android/src/main/AndroidManifest.xml index 5c6a27faa..95bb2ff52 100644 --- a/package/native-package/android/src/main/AndroidManifest.xml +++ b/package/native-package/android/src/main/AndroidManifest.xml @@ -1,3 +1,4 @@ - + - + \ No newline at end of file diff --git a/package/native-package/android/src/main/java/com/reactnativeimageresizer/ImageResizer.java b/package/native-package/android/src/main/java/com/streamchatreactnative/StreamChatReactNative.java similarity index 96% rename from package/native-package/android/src/main/java/com/reactnativeimageresizer/ImageResizer.java rename to package/native-package/android/src/main/java/com/streamchatreactnative/StreamChatReactNative.java index d1482655d..93bcea36e 100644 --- a/package/native-package/android/src/main/java/com/reactnativeimageresizer/ImageResizer.java +++ b/package/native-package/android/src/main/java/com/streamchatreactnative/StreamChatReactNative.java @@ -1,4 +1,4 @@ -package com.reactnativeimageresizer; +package com.streamchatreactnative; import android.content.Context; import android.content.ContentResolver; @@ -25,7 +25,7 @@ /** * Provide methods to resize and rotate an image file. */ -public class ImageResizer { +public class StreamChatReactNative { private final static String IMAGE_JPEG = "image/jpeg"; private final static String IMAGE_PNG = "image/png"; private final static String SCHEME_DATA = "data"; @@ -286,7 +286,7 @@ public static boolean copyExif(Context context, Uri imageUri, String dstPath){ dst = new ExifInterface(dstPath); } catch (Exception ignored) { - Log.e("ImageResizer::copyExif", "EXIF read failed", ignored); + Log.e("StreamChatReactNative::copyExif", "EXIF read failed", ignored); } if(src == null || dst == null){ @@ -305,7 +305,7 @@ public static boolean copyExif(Context context, Uri imageUri, String dstPath){ dst.saveAttributes(); } catch (Exception ignored) { - Log.e("ImageResizer::copyExif", "EXIF copy failed", ignored); + Log.e("StreamChatReactNative::copyExif", "EXIF copy failed", ignored); return false; } @@ -550,11 +550,11 @@ public static Bitmap createResizedImage(Context context, Uri imageUri, int newWi imageUriScheme.equalsIgnoreCase(SCHEME_FILE) || imageUriScheme.equalsIgnoreCase(SCHEME_CONTENT) ) { - sourceImage = ImageResizer.loadBitmapFromFile(context, imageUri, newWidth, newHeight); + sourceImage = StreamChatReactNative.loadBitmapFromFile(context, imageUri, newWidth, newHeight); } else if (imageUriScheme.equalsIgnoreCase(SCHEME_HTTP) || imageUriScheme.equalsIgnoreCase(SCHEME_HTTPS)){ - sourceImage = ImageResizer.loadBitmapFromURL(imageUri, newWidth, newHeight); + sourceImage = StreamChatReactNative.loadBitmapFromURL(imageUri, newWidth, newHeight); } else if (imageUriScheme.equalsIgnoreCase(SCHEME_DATA)) { - sourceImage = ImageResizer.loadBitmapFromBase64(imageUri); + sourceImage = StreamChatReactNative.loadBitmapFromBase64(imageUri); } if (sourceImage == null) { @@ -567,7 +567,7 @@ public static Bitmap createResizedImage(Context context, Uri imageUri, int newWi // NOTE: This will "fix" the image using it's exif info if it is rotated as well. Bitmap rotatedImage = sourceImage; Matrix matrix = getOrientationMatrix(context, imageUri); - rotatedImage = ImageResizer.rotateImage(sourceImage, matrix, rotation); + rotatedImage = StreamChatReactNative.rotateImage(sourceImage, matrix, rotation); if(rotatedImage == null){ throw new IOException("Unable to rotate image. Most likely due to not enough memory."); @@ -578,7 +578,7 @@ public static Bitmap createResizedImage(Context context, Uri imageUri, int newWi } // Scale image - Bitmap scaledImage = ImageResizer.resizeImage(rotatedImage, newWidth, newHeight, mode, onlyScaleDown); + Bitmap scaledImage = StreamChatReactNative.resizeImage(rotatedImage, newWidth, newHeight, mode, onlyScaleDown); if(scaledImage == null){ throw new IOException("Unable to resize image. Most likely due to not enough memory."); diff --git a/package/native-package/android/src/main/java/com/reactnativeimageresizer/ImageResizerModule.java b/package/native-package/android/src/main/java/com/streamchatreactnative/StreamChatReactNativeModule.java similarity index 82% rename from package/native-package/android/src/main/java/com/reactnativeimageresizer/ImageResizerModule.java rename to package/native-package/android/src/main/java/com/streamchatreactnative/StreamChatReactNativeModule.java index d3405f2eb..4f234305f 100644 --- a/package/native-package/android/src/main/java/com/reactnativeimageresizer/ImageResizerModule.java +++ b/package/native-package/android/src/main/java/com/streamchatreactnative/StreamChatReactNativeModule.java @@ -1,4 +1,4 @@ -package com.reactnativeimageresizer; +package com.streamchatreactnative; import android.annotation.SuppressLint; import android.graphics.Bitmap; @@ -22,10 +22,10 @@ import java.io.IOException; import java.util.UUID; -public class ImageResizerModule extends ImageResizerSpec { - public static final String NAME = "ImageResizer"; +public class StreamChatReactNativeModule extends StreamChatReactNativeSpec { + public static final String NAME = "StreamChatReactNative"; - ImageResizerModule(ReactApplicationContext reactContext) { + StreamChatReactNativeModule(ReactApplicationContext reactContext) { super(reactContext); } @@ -65,7 +65,7 @@ private Object createResizedImageWithExceptions(String imagePath, int newWidth, Bitmap.CompressFormat compressFormat = Bitmap.CompressFormat.valueOf(compressFormatString); Uri imageUri = Uri.parse(imagePath); - Bitmap scaledImage = ImageResizer.createResizedImage(this.getReactApplicationContext(), imageUri, newWidth, newHeight, quality, rotation, + Bitmap scaledImage = StreamChatReactNative.createResizedImage(this.getReactApplicationContext(), imageUri, newWidth, newHeight, quality, rotation, options.getString("mode"), options.getBoolean("onlyScaleDown")); if (scaledImage == null) { @@ -78,7 +78,7 @@ private Object createResizedImageWithExceptions(String imagePath, int newWidth, path = new File(outputPath); } - File resizedImage = ImageResizer.saveImage(scaledImage, path, UUID.randomUUID().toString(), compressFormat, quality); + File resizedImage = StreamChatReactNative.saveImage(scaledImage, path, UUID.randomUUID().toString(), compressFormat, quality); WritableMap response = Arguments.createMap(); // If resizedImagePath is empty and this wasn't caught earlier, throw. @@ -93,10 +93,10 @@ private Object createResizedImageWithExceptions(String imagePath, int newWidth, // Copy file's metadata/exif info if required if(keepMeta){ try{ - ImageResizer.copyExif(this.getReactApplicationContext(), imageUri, resizedImage.getAbsolutePath()); + StreamChatReactNative.copyExif(this.getReactApplicationContext(), imageUri, resizedImage.getAbsolutePath()); } catch(Exception ignored){ - Log.e("ImageResizer::createResizedImageWithExceptions", "EXIF copy failed", ignored); + Log.e("StreamChatReactNative::createResizedImageWithExceptions", "EXIF copy failed", ignored); } } } else { diff --git a/package/native-package/android/src/main/java/com/reactnativeimageresizer/ImageResizerPackage.java b/package/native-package/android/src/main/java/com/streamchatreactnative/StreamChatReactNativePackage.java similarity index 74% rename from package/native-package/android/src/main/java/com/reactnativeimageresizer/ImageResizerPackage.java rename to package/native-package/android/src/main/java/com/streamchatreactnative/StreamChatReactNativePackage.java index 3f52ebc5d..203b72b85 100644 --- a/package/native-package/android/src/main/java/com/reactnativeimageresizer/ImageResizerPackage.java +++ b/package/native-package/android/src/main/java/com/streamchatreactnative/StreamChatReactNativePackage.java @@ -1,4 +1,4 @@ -package com.reactnativeimageresizer; +package com.streamchatreactnative; import androidx.annotation.Nullable; import com.facebook.react.bridge.NativeModule; @@ -11,13 +11,13 @@ import java.util.HashMap; import java.util.Map; -public class ImageResizerPackage extends TurboReactPackage { +public class StreamChatReactNativePackage extends TurboReactPackage { @Nullable @Override public NativeModule getModule(String name, ReactApplicationContext reactContext) { - if (name.equals(ImageResizerModule.NAME)) { - return new ImageResizerModule(reactContext); + if (name.equals(StreamChatReactNativeModule.NAME)) { + return new StreamChatReactNativeModule(reactContext); } else { return null; } @@ -29,10 +29,10 @@ public ReactModuleInfoProvider getReactModuleInfoProvider() { final Map moduleInfos = new HashMap<>(); boolean isTurboModule = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED; moduleInfos.put( - ImageResizerModule.NAME, + StreamChatReactNativeModule.NAME, new ReactModuleInfo( - ImageResizerModule.NAME, - ImageResizerModule.NAME, + StreamChatReactNativeModule.NAME, + StreamChatReactNativeModule.NAME, false, // canOverrideExistingModule false, // needsEagerInit true, // hasConstants diff --git a/package/native-package/android/src/newarch/com/reactnativeimageresizer/ImageResizerSpec.java b/package/native-package/android/src/newarch/com/reactnativeimageresizer/ImageResizerSpec.java deleted file mode 100644 index 85f922d7e..000000000 --- a/package/native-package/android/src/newarch/com/reactnativeimageresizer/ImageResizerSpec.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.reactnativeimageresizer; - -import com.facebook.react.bridge.ReactApplicationContext; - -abstract class ImageResizerSpec extends NativeImageResizerSpec { - ImageResizerSpec(ReactApplicationContext context) { - super(context); - } -} diff --git a/package/native-package/android/src/newarch/com/streamchatreactnative/StreamChatReactNative.java b/package/native-package/android/src/newarch/com/streamchatreactnative/StreamChatReactNative.java new file mode 100644 index 000000000..4205a48c0 --- /dev/null +++ b/package/native-package/android/src/newarch/com/streamchatreactnative/StreamChatReactNative.java @@ -0,0 +1,9 @@ +package com.streamchatreactnative; + +import com.facebook.react.bridge.ReactApplicationContext; + +abstract class StreamChatReactNative extends NativeStreamChatReactNativeSpec { + StreamChatReactNativeSpec(ReactApplicationContext context) { + super(context); + } +} diff --git a/package/native-package/android/src/oldarch/com/reactnativeimageresizer/ImageResizerSpec.java b/package/native-package/android/src/oldarch/com/streamchatreactnative/StreamChatReactNativeSpec.java similarity index 72% rename from package/native-package/android/src/oldarch/com/reactnativeimageresizer/ImageResizerSpec.java rename to package/native-package/android/src/oldarch/com/streamchatreactnative/StreamChatReactNativeSpec.java index a031fa161..39691a60e 100644 --- a/package/native-package/android/src/oldarch/com/reactnativeimageresizer/ImageResizerSpec.java +++ b/package/native-package/android/src/oldarch/com/streamchatreactnative/StreamChatReactNativeSpec.java @@ -1,4 +1,4 @@ -package com.reactnativeimageresizer; +package com.streamchatreactnative; import androidx.annotation.Nullable; @@ -6,9 +6,9 @@ import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReactContextBaseJavaModule; -abstract class ImageResizerSpec extends ReactContextBaseJavaModule { +abstract class StreamChatReactNativeSpec extends ReactContextBaseJavaModule { - ImageResizerSpec(ReactApplicationContext context) { + StreamChatReactNativeSpec(ReactApplicationContext context) { super(context); } diff --git a/package/native-package/ios/StreamChatReactNative.xcodeproj/project.pbxproj b/package/native-package/ios/StreamChatReactNative.xcodeproj/project.pbxproj index f43dced6f..20a9a0552 100644 --- a/package/native-package/ios/StreamChatReactNative.xcodeproj/project.pbxproj +++ b/package/native-package/ios/StreamChatReactNative.xcodeproj/project.pbxproj @@ -21,7 +21,7 @@ /* Begin PBXFileReference section */ 134814201AA4EA6300B7C361 /* libStreamChatReactNative.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libStreamChatReactNative.a; sourceTree = BUILT_PRODUCTS_DIR; }; B3E7B5881CC2AC0600A0062D /* StreamChatReactNative.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StreamChatReactNative.h; sourceTree = ""; }; - B3E7B5891CC2AC0600A0062D /* StreamChatReactNative.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = StreamChatReactNative.mm; sourceTree = ""; }; + B3E7B5891CC2AC0600A0062D /* StreamChatReactNative.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = StreamChatReactNative.mm; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ diff --git a/package/native-package/src/optionalDependencies/Audio.ts b/package/native-package/src/optionalDependencies/Audio.ts index d05297d32..6795a0e27 100644 --- a/package/native-package/src/optionalDependencies/Audio.ts +++ b/package/native-package/src/optionalDependencies/Audio.ts @@ -16,7 +16,6 @@ try { audioRecorderPlayer.setSubscriptionDuration(Platform.OS === 'android' ? 0.1 : 0.06); } catch (e) { console.log('react-native-audio-recorder-player is not installed.'); - console.log(e); } export enum AudioSourceAndroidType { diff --git a/package/src/native.ts b/package/src/native.ts index a431211b0..b097de15f 100644 --- a/package/src/native.ts +++ b/package/src/native.ts @@ -78,7 +78,7 @@ type ShareOptions = { url?: string; }; type ShareImage = (options: ShareOptions) => Promise | never; -export let shareImage: ShareImage = fail; +export let shareImage: ShareImage | undefined = fail; type Photo = Omit & { source: 'camera'; @@ -228,7 +228,7 @@ export type AudioType = { stopPlayer?: () => Promise; }; -export let Audio: AudioType; +export let Audio: AudioType | undefined; export let Sound: SoundType; @@ -297,7 +297,7 @@ type Handlers = { }; export const registerNativeHandlers = (handlers: Handlers) => { - if (handlers.Audio !== undefined) { + if (handlers.Audio !== null) { Audio = handlers.Audio; } @@ -345,7 +345,7 @@ export const registerNativeHandlers = (handlers: Handlers) => { SDK = handlers.SDK; } - if (handlers.shareImage !== undefined) { + if (handlers.shareImage !== null) { shareImage = handlers.shareImage; } @@ -377,7 +377,7 @@ export const isVideoPlayerAvailable = () => !!Video; export const isHapticFeedbackAvailable = () => !!triggerHaptic; export const isShareImageAvailable = () => !!shareImage; export const isFileSystemAvailable = () => !!saveFile || !!deleteFile; -export const isAudioRecorderAvailable = () => !!Audio.startRecording; +export const isAudioRecorderAvailable = () => !!Audio?.startRecording; export const isSoundPackageAvailable = () => !!Sound.Player || !!Sound.initializeSound; export const isImageMediaLibraryAvailable = () => !!getPhotos &&