react-native-compressor 2.0.1 → 2.0.2
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.
|
@@ -17,6 +17,8 @@ import com.reactnativecompressor.Utils.Utils
|
|
|
17
17
|
import com.reactnativecompressor.Video.VideoMain
|
|
18
18
|
import java.util.UUID
|
|
19
19
|
import java.util.concurrent.Executors
|
|
20
|
+
import androidx.annotation.Keep
|
|
21
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
20
22
|
import com.facebook.react.bridge.Promise as RNPromise
|
|
21
23
|
|
|
22
24
|
/**
|
|
@@ -29,6 +31,8 @@ import com.facebook.react.bridge.Promise as RNPromise
|
|
|
29
31
|
* with [EventEmitterHandler]. All heavy logic stays in the domain classes,
|
|
30
32
|
* which run on a background executor so the JS thread is never blocked.
|
|
31
33
|
*/
|
|
34
|
+
@DoNotStrip
|
|
35
|
+
@Keep
|
|
32
36
|
class HybridCompressor : HybridCompressorSpec() {
|
|
33
37
|
private val reactContext
|
|
34
38
|
get() = NitroModules.applicationContext
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-compressor",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
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",
|