react-native-compressor 1.11.0 → 1.12.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.
@@ -58,7 +58,7 @@ class AudioHelper {
58
58
  var destinationBitrate = originalBitrate
59
59
  Utils.addLog("source bitrate: $originalBitrate")
60
60
 
61
- when (quality.toLowerCase()) {
61
+ when (quality.lowercase()) {
62
62
  "low" -> destinationBitrate = maxOf(64, (originalBitrate * 0.3).toInt())
63
63
  "medium" -> destinationBitrate = (originalBitrate * 0.5).toInt()
64
64
  "high" -> destinationBitrate = minOf(320, (originalBitrate * 0.7).toInt())
@@ -161,7 +161,7 @@ class Uploader(private val reactContext: ReactApplicationContext) {
161
161
  if (mimeType == null) {
162
162
  val fileExtension = MimeTypeMap.getFileExtensionFromUrl(fileUri.toString())
163
163
  if (fileExtension != null) {
164
- return MimeTypeMap.getSingleton().getMimeTypeFromExtension(fileExtension.toLowerCase())
164
+ return MimeTypeMap.getSingleton().getMimeTypeFromExtension(fileExtension.lowercase())
165
165
  }
166
166
  }
167
167
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-compressor",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "Compress Image, Video, and Audio same like Whatsapp & Auto/Manual Compression | Background Upload | Download File | Create Video Thumbnail",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",