Add react native config and update podspec to support autolinking

This commit is contained in:
Gage Vander Clay
2019-10-23 11:32:23 -04:00
parent 13e4d4ea9d
commit 250d17aaf1
2 changed files with 19 additions and 8 deletions
+7 -8
View File
@@ -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}'
+12
View File
@@ -0,0 +1,12 @@
module.exports = {
dependency: {
platforms: {
ios: {
project: "./ios/RNBackgroundDownloader.xcodeproj"
},
android: {
sourceDir: "./android"
}
}
}
};