mirror of
https://github.com/zoriya/react-native-background-downloader.git
synced 2026-08-16 02:44:29 +00:00
Add react native config and update podspec to support autolinking
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'react-native-background-downloader'
|
||||
s.version = '1.0.0'
|
||||
s.name = package['name']
|
||||
s.version = package['version']
|
||||
s.summary = 'React Native background downloader'
|
||||
s.description = <<-DESC
|
||||
A library for React-Native to help you download large files on iOS and Android both in the foreground and most importantly in the background.
|
||||
DESC
|
||||
s.author = 'elad@helleko.com'
|
||||
s.homepage = 'https://github.com/EkoLabs/react-native-background-downloader'
|
||||
s.license = 'MIT'
|
||||
s.description = package['description']
|
||||
s.author = package['author']
|
||||
s.homepage = package['repository']['url']
|
||||
s.license = package['license']
|
||||
s.platform = :ios, '7.0'
|
||||
s.source = { git: 'https://github.com/EkoLabs/react-native-background-downloader.git', tag: 'master' }
|
||||
s.source_files = 'ios/**/*.{h,m}'
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
module.exports = {
|
||||
dependency: {
|
||||
platforms: {
|
||||
ios: {
|
||||
project: "./ios/RNBackgroundDownloader.xcodeproj"
|
||||
},
|
||||
android: {
|
||||
sourceDir: "./android"
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user