Skip to content

Commit

Permalink
fix: the given long is not in the range of uint32
Browse files Browse the repository at this point in the history
  • Loading branch information
numandev1 committed Jan 28, 2022
1 parent 520cc98 commit 1040958
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Expand Up @@ -57,6 +57,6 @@ dependencies {
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+" // From node_modules
implementation 'io.github.lizhangqu:coreprogress:1.0.2'
implementation 'com.github.nomi9995:VideoCompressor:90adcba85a'
implementation 'com.github.nomi9995:VideoCompressor:4f72b53490'
// implementation project(path: ':videocompressor')
}
Expand Up @@ -43,7 +43,14 @@ public void onFinish(boolean result) {

@Override
public void onError(String errorMessage) {
promise.reject("Compression has canncelled");
if(errorMessage.equals(("class java.lang.AssertionError")))
{
promise.resolve(srcPath);
}
else
{
promise.reject("Compression has canncelled");
}
}

@Override
Expand Down

0 comments on commit 1040958

Please sign in to comment.