Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ npm install react-native-audioplayer --save
```

### Installation (iOS)
#### With CocoaPods
1. Add the plugin dependency to your Podfile, pointing at the path where NPM installed it:
```
pod 'react-native-audioplayer', path: '../node_modules/react-native-audioplayer'
```
2. Run `pod install`

#### Manual
If you didn't install via CocoaPods you can alternatively manually install.

In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name] ➜ Go to node_modules ➜ react-native-audioplayer and add the .xcodeproj file

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "react-native-audioplayer",
"version": "0.2.0",
"description": "Small audio player library for react native",
"homepage": "https://github.com/andreaskeller/react-native-audioplayer",
"main": "AudioPlayer.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
22 changes: 22 additions & 0 deletions react-native-audioplayer.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
require 'json'

package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Pod::Spec.new do |s|
s.name = 'react-native-audioplayer'
s.version = package['version']
s.summary = package['description']
s.description = package['description']
s.license = package['license']
s.author = package['author']
s.homepage = package['homepage']
s.source = { :git => 'https://github.com/andreaskeller/react-native-audioplayer', :tag => s.version }

s.requires_arc = true
s.platform = :ios, '8.0'

s.preserve_paths = 'LICENSE', 'README.md', 'package.json', 'AudioPlayer.js'
s.source_files = '*.{h,m}'

s.dependency 'React'
end