Skip to content
This repository was archived by the owner on Oct 7, 2021. It is now read-only.

Commit 977c843

Browse files
committed
release v0.5.1
1 parent 8ad8d2a commit 977c843

File tree

6 files changed

+33
-9
lines changed

6 files changed

+33
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## 0.5.1 - 2020-12-20
5+
- Fixes issue #210
6+
47
## 0.5.0 - 2020-10-22
58
- Depends on mobile-ffmpeg v4.4
69
- Implements async FFmpeg execution methods

README.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# React Native FFmpeg ![GitHub release](https://img.shields.io/badge/release-v0.5.0-blue.svg) [![npm](https://img.shields.io/npm/v/react-native-ffmpeg.svg)](react-native-ffmpeg)
1+
# React Native FFmpeg ![GitHub release](https://img.shields.io/badge/release-v0.5.1-blue.svg) [![npm](https://img.shields.io/npm/v/react-native-ffmpeg.svg)](react-native-ffmpeg)
22

33
FFmpeg for React Native
44

@@ -384,6 +384,27 @@ Apply provided solutions if you encounter one of the following issues.
384384
385385
- `react-native-ffmpeg` uses file system paths, it does not know what an `assets` folder or a `project` folder is. So you can't use resources on those folders directly, you need to provide full paths of those resources.
386386
387+
- If you receive the following error on Android, please add the `ProGuard` rule given below to your `proguard-rules.pro` file.
388+
389+
```
390+
OnLoad thread failed to GetStaticMethodID for log.
391+
JNI DETECTED ERROR IN APPLICATION: JNI NewGlobalRef called with pending exception java.lang.NoSuchMethodError: no static method "Lcom/arthenica/mobileffmpeg/Config;.log(JI[B)V"
392+
```
393+
394+
`proguard-rules.pro`
395+
396+
```
397+
-keep class com.arthenica.mobileffmpeg.Config {
398+
native <methods>;
399+
void log(long, int, byte[]);
400+
void statistics(long, int, float, float, long , int, double, double);
401+
}
402+
403+
-keep class com.arthenica.mobileffmpeg.AbiDetect {
404+
native <methods>;
405+
}
406+
```
407+
387408
- Enabling `ProGuard` on releases older than `v0.3.3` causes linking errors. Please add the following rule inside your `proguard-rules.pro` file to preserve necessary method names and prevent linking errors.
388409
389410
```
@@ -421,7 +442,7 @@ if your build receives the following error for iOS.
421442
1 error generated.
422443
```
423444
424-
- When `pod install` fails with the following message, delete `Podfile.lock` file and run `pod install` again.
445+
- When `pod install` fails with the following message, delete the `Podfile.lock` file and run `pod install` again.
425446
426447
```
427448
[!] Unable to find a specification for 'react-native-ffmpeg'.
@@ -477,7 +498,7 @@ domain.
477498
478499
### 8. Patents
479500
480-
It is not clearly explained in their documentation but it is believed that `FFmpeg`, `kvazaar`, `x264` and `x265`
501+
It is not clearly explained in their documentation, but it is believed that `FFmpeg`, `kvazaar`, `x264` and `x265`
481502
include algorithms which are subject to software patents. If you live in a country where software algorithms are
482503
patentable then you'll probably need to pay royalty fees to patent holders. We are not lawyers though, so we recommend
483504
that you seek legal advice first. See [FFmpeg Patent Mini-FAQ](https://ffmpeg.org/legal.html).

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ android {
2929
defaultConfig {
3030
minSdkVersion safeExtGet('reactNativeFFmpegPackage', 'https').contains("-lts") ? 16 : 24
3131
targetSdkVersion 29
32-
versionCode 50
33-
versionName "0.5.0"
32+
versionCode 51
33+
versionName "0.5.1"
3434
project.archivesBaseName = "react-native-ffmpeg"
3535
}
3636
lintOptions {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-ffmpeg",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "FFmpeg for React Native",
55
"main": "index.js",
66
"typings": "index.d.ts",

react-native-ffmpeg.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'react-native-ffmpeg'
3-
s.version = '0.5.0'
3+
s.version = '0.5.1'
44
s.summary = 'FFmpeg for React Native'
55
s.description = 'React Native FFmpeg based on mobile-ffmpeg'
66
s.homepage = 'https://github.com/tanersener/react-native-ffmpeg'
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
1212
s.requires_arc = true
1313
s.static_framework = true
1414

15-
s.source = { :git => 'https://github.com/tanersener/react-native-ffmpeg.git', :tag => 'v0.5.0'}
15+
s.source = { :git => 'https://github.com/tanersener/react-native-ffmpeg.git', :tag => 'v0.5.1'}
1616

1717
s.default_subspec = 'https'
1818

0 commit comments

Comments
 (0)