didisouzacosta / uncompress-react-native Goto Github PK
View Code? Open in Web Editor NEWSimple library to decompress files .zip, .rar, .cbz, .cbr in React Native.
License: MIT License
Simple library to decompress files .zip, .rar, .cbz, .cbr in React Native.
License: MIT License
Create isProcted method to return a boolean if compressed file require password.
Add suport to extract files with cb7/7zip extension.
Run Android testes in github actions workflow actions.
Run iOS native testes in github actions.
from the error logs, I can't even figure out what exactly is wrong
does not start with errors:
info Starting JS server...
info Installing the app...
> Configure project :react-native-blob-util
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.
> Configure project :react-native-firebase_analytics
:react-native-firebase_analytics package.json found at .\node_modules\@react-native-firebase\analytics\package.json
:react-native-firebase_app package.json found at .\node_modules\@react-native-firebase\app\package.json
:react-native-firebase_analytics:firebase.bom using default value: 31.4.0
:react-native-firebase_analytics package.json found at .\node_modules\@react-native-firebase\analytics\package.json
:react-native-firebase_analytics:version set from package.json: 17.5.0 (17,5,0 - 17005000)
:react-native-firebase_analytics:android.compileSdk using custom value: 31
:react-native-firebase_analytics:android.targetSdk using custom value: 31
:react-native-firebase_analytics:android.minSdk using custom value: 21
:react-native-firebase_analytics:reactNativeAndroidDir .\node_modules\react-native\android
> Configure project :react-native-firebase_app
:react-native-firebase_app package.json found at .\node_modules\@react-native-firebase\app\package.json
:react-native-firebase_app:firebase.bom using default value: 31.4.0
:react-native-firebase_app:play.play-services-auth using default value: 20.3.0
:react-native-firebase_app package.json found at .\node_modules\@react-native-firebase\app\package.json
:react-native-firebase_app:version set from package.json: 17.5.0 (17,5,0 - 17005000)
:react-native-firebase_app:android.compileSdk using custom value: 31
:react-native-firebase_app:android.targetSdk using custom value: 31
:react-native-firebase_app:android.minSdk using custom value: 21
:react-native-firebase_app:reactNativeAndroidDir .\node_modules\react-native\android
> Configure project :react-native-firebase_crashlytics
:react-native-firebase_crashlytics package.json found at .\node_modules\@react-native-firebase\crashlytics\package.json
:react-native-firebase_app package.json found at .\node_modules\@react-native-firebase\app\package.json
:react-native-firebase_crashlytics:firebase.bom using default value: 31.4.0
:react-native-firebase_crashlytics package.json found at .\node_modules\@react-native-firebase\crashlytics\package.json
:react-native-firebase_crashlytics:version set from package.json: 17.5.0 (17,5,0 - 17005000)
:react-native-firebase_crashlytics:android.compileSdk using custom value: 31
:react-native-firebase_crashlytics:android.targetSdk using custom value: 31
:react-native-firebase_crashlytics:android.minSdk using custom value: 21
:react-native-firebase_crashlytics:reactNativeAndroidDir .\node_modules\react-native\android
> Configure project :react-native-firebase_messaging
:react-native-firebase_messaging package.json found at .\node_modules\@react-native-firebase\messaging\package.json
:react-native-firebase_app package.json found at .\node_modules\@react-native-firebase\app\package.json
:react-native-firebase_messaging:firebase.bom using default value: 31.4.0
:react-native-firebase_messaging package.json found at .\node_modules\@react-native-firebase\messaging\package.json
:react-native-firebase_messaging:version set from package.json: 17.5.0 (17,5,0 - 17005000)
:react-native-firebase_messaging:android.compileSdk using custom value: 31
:react-native-firebase_messaging:android.targetSdk using custom value: 31
:react-native-firebase_messaging:android.minSdk using custom value: 21
:react-native-firebase_messaging:reactNativeAndroidDir .\node_modules\react-native\android
> Configure project :react-native-google-mobile-ads
:react-native-google-mobile-ads package.json found at .\node_modules\react-native-google-mobile-ads\package.json
:react-native-google-mobile-ads package.json found at .\node_modules\react-native-google-mobile-ads\package.json
:react-native-google-mobile-ads:version set from package.json: 8.2.3 (8,2,3 - 8002003)
:react-native-google-mobile-ads:android.compileSdk using custom value: 31
:react-native-google-mobile-ads:android.targetSdk using custom value: 31
:react-native-google-mobile-ads:android.minSdk using custom value: 21
:react-native-google-mobile-ads:reactNativeAndroidDir .\node_modules\react-native\android
> Configure project :react-native-reanimated
AAR for react-native-reanimated has been found
.\node_modules\react-native-reanimated\android\react-native-reanimated-70-hermes.aar
> Task :app:processDebugMainManifest
.\android\app\src\main\AndroidManifest.xml:15:5-129 Warning:
uses-sdk:minSdkVersion value (24) specified in the manifest file is ignored. It is overridden by the value declared in the DSL or the variant API, or 1 if not declared/present. Current value is (21).
> Task :uncompress-react-native:compileDebugKotlin FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
297 actionable tasks: 16 executed, 281 up-to-date
e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
e: ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
e: ./.gradle/caches/transforms-3/10a3783a6a9923b9195a66364ffe294b/transformed/jetified-react-native-0.71.0-rc.0-debug-api.jar!/META-INF/ReactAndroid_debug.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
e: ./.gradle/caches/transforms-3/bc3c2af1a412d7f4bc4806e1190b5f1d/transformed/jetified-kotlin-stdlib-jdk7-1.6.10.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
e: ./.gradle/caches/transforms-3/e9f686b40277eafd616d303a4252d8b6/transformed/jetified-kotlin-stdlib-common-1.6.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
e: ./.gradle/caches/transforms-3/f3f38644117e1b06311eb52206a6c551/transformed/jetified-kotlin-stdlib-jdk8-1.6.10.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\UncompressModule.kt: (26, 20): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\UncompressModule.kt: (27, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\UncompressModule.kt: (29, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\UncompressModule.kt: (37, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\UncompressModule.kt: (39, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\UncompressPackage.kt: (11, 16): Unresolved reference: listOf
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\UncompressPackage.kt: (15, 16): Unresolved reference: emptyList
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\Extractable.kt: (10, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\Extractable.kt: (17, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\Extractable.kt: (22, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\Extractable.kt: (28, 15): Unresolved reference: deleteRecursively
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\Extractable.kt: (32, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\Extractable.kt: (35, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (11, 60): Unresolved reference: flatMap
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (11, 70): Unresolved reference: it
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (13, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (20, 18): Unresolved reference: isNullOrEmpty
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (24, 21): Unresolved reference: isNullOrEmpty
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (30, 12): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (34, 27): Unresolved reference: extension
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (37, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (40, 26): Unresolved reference: singleOrNull
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (40, 41): Cannot infer a type for this parameter. Please specify it explicitly.
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IIsProtectedUseCase.kt: (9, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IIsProtectedUseCase.kt: (11, 18): Unresolved reference: isNullOrEmpty
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IIsProtectedUseCase.kt: (21, 27): Unresolved reference: extension
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IIsProtectedUseCase.kt: (24, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IIsProtectedUseCase.kt: (27, 26): Unresolved reference: singleOrNull
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IIsProtectedUseCase.kt: (27, 41): Cannot infer a type for this parameter. Please specify it explicitly.
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\domain\enum\Compatibility.kt: (11, 6): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\domain\enum\Compatibility.kt: (13, 29): Unresolved reference: toLowerCase
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\rar\RarExtractor.kt: (12, 13): Unresolved reference: listOf
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\rar\RarExtractor.kt: (14, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\rar\RarExtractor.kt: (21, 11): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\rar\RarExtractor.kt: (25, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\zip\ZipExtractor.kt: (10, 13): Unresolved reference: listOf
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\zip\ZipExtractor.kt: (12, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\zip\ZipExtractor.kt: (19, 11): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\zip\ZipExtractor.kt: (20, 33): Unresolved reference: toCharArray
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\zip\ZipExtractor.kt: (20, 48): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\zip\ZipExtractor.kt: (23, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\main\factories\ComponentsFactory.kt: (12, 27): Unresolved reference: listOf
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\main\factories\UseCaseFactory.kt: (11, 27): Unresolved reference: listOf
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\presentation\components\Uncompress.kt: (8, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\presentation\components\Uncompress.kt: (15, 20): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\presentation\components\Uncompress.kt: (18, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':uncompress-react-native:compileDebugKotlin'.
> Compilation error. See log for more details
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
BUILD FAILED in 55s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
e: ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
e: ./.gradle/caches/transforms-3/10a3783a6a9923b9195a66364ffe294b/transformed/jetified-react-native-0.71.0-rc.0-debug-api.jar!/META-INF/ReactAndroid_debug.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
e: ./.gradle/caches/transforms-3/bc3c2af1a412d7f4bc4806e1190b5f1d/transformed/jetified-kotlin-stdlib-jdk7-1.6.10.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
e: ./.gradle/caches/transforms-3/e9f686b40277eafd616d303a4252d8b6/transformed/jetified-kotlin-stdlib-common-1.6.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
e: ./.gradle/caches/transforms-3/f3f38644117e1b06311eb52206a6c551/transformed/jetified-kotlin-stdlib-jdk8-1.6.10.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\UncompressModule.kt: (26, 20): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\UncompressModule.kt: (27, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\UncompressModule.kt: (29, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\UncompressModule.kt: (37, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\UncompressModule.kt: (39, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\UncompressPackage.kt: (11, 16): Unresolved reference: listOf
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\UncompressPackage.kt: (15, 16): Unresolved reference: emptyList
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\Extractable.kt: (10, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\Extractable.kt: (17, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\Extractable.kt: (22, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\Extractable.kt: (28, 15): Unresolved reference: deleteRecursively
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\Extractable.kt: (32, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\Extractable.kt: (35, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (11, 60): Unresolved reference: flatMap
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (11, 70): Unresolved reference: it
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (13, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (20, 18): Unresolved reference: isNullOrEmpty
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (24, 21): Unresolved reference: isNullOrEmpty
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (30, 12): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (34, 27): Unresolved reference: extension
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (37, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (40, 26): Unresolved reference: singleOrNull
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IExtractUseCase.kt: (40, 41): Cannot infer a type for this parameter. Please specify it explicitly.
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IIsProtectedUseCase.kt: (9, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IIsProtectedUseCase.kt: (11, 18): Unresolved reference: isNullOrEmpty
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IIsProtectedUseCase.kt: (21, 27): Unresolved reference: extension
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IIsProtectedUseCase.kt: (24, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IIsProtectedUseCase.kt: (27, 26): Unresolved reference: singleOrNull
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\data\intefaces\IIsProtectedUseCase.kt: (27, 41): Cannot infer a type for this parameter. Please specify it explicitly.
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\domain\enum\Compatibility.kt: (11, 6): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\domain\enum\Compatibility.kt: (13, 29): Unresolved reference: toLowerCase
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\rar\RarExtractor.kt: (12, 13): Unresolved reference: listOf
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\rar\RarExtractor.kt: (14, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\rar\RarExtractor.kt: (21, 11): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\rar\RarExtractor.kt: (25, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\zip\ZipExtractor.kt: (10, 13): Unresolved reference: listOf
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\zip\ZipExtractor.kt: (12, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\zip\ZipExtractor.kt: (19, 11): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\zip\ZipExtractor.kt: (20, 33): Unresolved reference: toCharArray
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\zip\ZipExtractor.kt: (20, 48): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\infra\adapters\zip\ZipExtractor.kt: (23, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\main\factories\ComponentsFactory.kt: (12, 27): Unresolved reference: listOf
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\main\factories\UseCaseFactory.kt: (11, 27): Unresolved reference: listOf
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\presentation\components\Uncompress.kt: (8, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\presentation\components\Uncompress.kt: (15, 20): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: .\node_modules\uncompress-react-native\android\src\main\java\com\uncompress\presentation\components\Uncompress.kt: (18, 4): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from ./.gradle/caches/transforms-3/066d8904990d14df4da69a6e0362ee83/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/Throws.class
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':uncompress-react-native:compileDebugKotlin'.
> Compilation error. See log for more details
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
BUILD FAILED in 55s
at makeError (.\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
at .\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (.\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (.\node_modules\@react-native-community\cli\build\index.js:142:9)
info Run CLI with --verbose flag for more details.
I use react-native-document-picker to get the path to the file:
DocumentPicker.pickMultiple({
type: ['application/zip', 'application/octet-stream'],
copyTo: 'cachesDirectory',
}).then((res) => {
...
...
...
})
The path is correct and another library (react-native-zip-archive) works fine with it.
But I want to unzip the rar archives too. I connected your library and I get the error: Error: the archive does not exit:
Why does it work and yours gives an error?
let UNZIP_RES = false;
try {
// UNZIP_RES = await unzip(CBR.fileCopyUri, CBR_DIR); // zip only
// zip rar cbr cbz
UNZIP_RES = await Uncompress.extract({
filePath: CBR.fileCopyUri, // file:///data/user/0/com.lavrik_comics/cache/006672d6-30ed-4fc5-9c20-d568544a28d3/21497-_4.cbr
destination: CBR_DIR,
});
} catch (error) {
console.log('unzip error', CBR.fileCopyUri, ' -> ', CBR_DIR, error);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.