From 9e9e30c35cf5d4432716bdb3d1181d64081d74a5 Mon Sep 17 00:00:00 2001 From: Krzysztof Komar Date: Thu, 9 Jul 2020 14:53:41 +0200 Subject: [PATCH 1/2] bump version --- packages/reason-expo/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/reason-expo/package.json b/packages/reason-expo/package.json index 8db4107..abaf482 100644 --- a/packages/reason-expo/package.json +++ b/packages/reason-expo/package.json @@ -1,7 +1,7 @@ { "name": "reason-expo", "description": "ReasonML bindings for Expo", - "version": "34.4.1", + "version": "34.4.2", "scripts": { "build": "bsb -make-world", "watch": "bsb -make-world -w", @@ -32,4 +32,4 @@ "reason-react": "^0.7.0", "reason-react-native": "^0.60.0" } -} +} \ No newline at end of file From c04e0af802fe9130e9f11047e8354e6a5328c2fe Mon Sep 17 00:00:00 2001 From: chedkowski-leonsoftware <130964050+chedkowski-leonsoftware@users.noreply.github.com> Date: Mon, 17 Apr 2023 12:29:19 +0200 Subject: [PATCH 2/2] LEON-22420 - remove not compatible module with rescript --- packages/reason-expo/src/Audio.re | 35 ------------------------------- 1 file changed, 35 deletions(-) diff --git a/packages/reason-expo/src/Audio.re b/packages/reason-expo/src/Audio.re index 181ea69..ad798aa 100644 --- a/packages/reason-expo/src/Audio.re +++ b/packages/reason-expo/src/Audio.re @@ -98,38 +98,3 @@ module Sound = { downloadFirst, ); }; - -module Recording = { - [@bs.deriving abstract] - type status = { - canRecord: bool, - isDoneRecording: bool, - durationMillis: int, - }; - - class type _recording = - [@bs] - { - pub getStatusAsync: unit => Js.Promise.t(status); - pub setOnRecordingStatusUpdate: (status => unit) => unit; - pub setProgressUpdateInterval: int => unit; - pub prepareToRecordAsync: Js.t('a) => Js.Promise.t(unit); - pub isPreparedToRecord: unit => bool; - pub startAsync: unit => Js.Promise.t(status); - pub pauseAsync: unit => Js.Promise.t(status); - pub stopAndUnloadAsync: unit => Js.Promise.t(status); - pub getURI: unit => Js.Nullable.t(string); - pub createNewLoadedSound: - ('a, 'a => unit) => - Js.Promise.t({ - . - sound: Sound.t, - status: 'a, - }); - }; - - type t = Js.t(_recording); - - [@bs.new] [@bs.module "expo-av"] [@bs.scope "Audio"] - external make: unit => t = "Recording"; -}; \ No newline at end of file