react-native-audio-api 0.6.3 → 0.6.4
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.
|
@@ -12,7 +12,6 @@ import androidx.media.app.NotificationCompat.MediaStyle
|
|
|
12
12
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
13
13
|
import com.facebook.react.bridge.ReadableMap
|
|
14
14
|
import com.facebook.react.bridge.ReadableType
|
|
15
|
-
import com.facebook.react.views.imagehelper.ResourceDrawableIdHelper.instance
|
|
16
15
|
import com.swmansion.audioapi.R
|
|
17
16
|
import java.io.IOException
|
|
18
17
|
import java.lang.ref.WeakReference
|
|
@@ -250,7 +249,7 @@ class LockScreenManager(
|
|
|
250
249
|
// If we are running the app in debug mode, the "local" image will be served from htt://localhost:8080, so we need to check for this case and load those images from URL
|
|
251
250
|
if (local && !url.startsWith("http")) {
|
|
252
251
|
// Gets the drawable from the RN's helper for local resources
|
|
253
|
-
val helper = instance
|
|
252
|
+
val helper = com.facebook.react.views.imagehelper.ResourceDrawableIdHelper.instance
|
|
254
253
|
val image = helper.getResourceDrawable(reactContext.get()!!, url)
|
|
255
254
|
|
|
256
255
|
bitmap =
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-audio-api",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"description": "react-native-audio-api provides system for controlling audio in React Native environment compatible with Web Audio API specification",
|
|
5
5
|
"bin": {
|
|
6
6
|
"setup-rn-audio-api-web": "./scripts/setup-rn-audio-api-web.js"
|