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

Commit 66d64a0

Browse files
committed
implement add addListener and removeListeners methods, fixes #264
1 parent 2f67669 commit 66d64a0

File tree

7 files changed

+21
-8
lines changed

7 files changed

+21
-8
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.2 - 2021-09-08
5+
- Fixes issue #264
6+
47
## 0.5.1 - 2020-12-20
58
- Fixes issue #210
69

README.md

Lines changed: 1 addition & 1 deletion
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.1-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.2-blue.svg) [![npm](https://img.shields.io/npm/v/react-native-ffmpeg.svg)](react-native-ffmpeg)
22

33
FFmpeg for React Native
44

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 51
33-
versionName "0.5.1"
32+
versionCode 52
33+
versionName "0.5.2"
3434
project.archivesBaseName = "react-native-ffmpeg"
3535
}
3636
lintOptions {

android/src/main/java/com/arthenica/reactnative/RNFFmpegModule.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,15 @@ public String getName() {
9494
return "RNFFmpegModule";
9595
}
9696

97+
@ReactMethod
98+
public void addListener(String eventName) {
99+
Log.i(LIBRARY_NAME, String.format("Listener added for %s event.", eventName));
100+
}
101+
102+
@ReactMethod
103+
public void removeListeners(Integer count) {
104+
}
105+
97106
@ReactMethod
98107
public void getPlatform(final Promise promise) {
99108
final String abi = AbiDetect.getAbi();

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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-ffmpeg",
3-
"version": "0.5.1",
3+
"version": "0.5.2",
44
"description": "FFmpeg for React Native",
55
"main": "index.js",
66
"typings": "index.d.ts",
@@ -27,6 +27,7 @@
2727
"url": "git+https://github.com/tanersener/react-native-ffmpeg.git"
2828
},
2929
"peerDependencies": {
30-
"react-native": "^0.56.0"
30+
"react": "*",
31+
"react-native": "*"
3132
}
3233
}

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.1'
3+
s.version = '0.5.2'
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.1'}
15+
s.source = { :git => 'https://github.com/tanersener/react-native-ffmpeg.git', :tag => 'v0.5.2'}
1616

1717
s.default_subspec = 'https'
1818

0 commit comments

Comments
 (0)