From 61b9daf73deb8dacfde6728099281c4d10a13942 Mon Sep 17 00:00:00 2001 From: Carlos Silva Date: Fri, 20 Dec 2019 15:35:44 -0300 Subject: [PATCH] MOBILE-979: Colocando podspec para acessar o google ads e o react --- package.json | 44 ++++++++++++++++++++------------------ react-native-admob.podspec | 19 ++++++++++++++++ 2 files changed, 42 insertions(+), 21 deletions(-) create mode 100644 react-native-admob.podspec diff --git a/package.json b/package.json index c806d7b95..563776f90 100644 --- a/package.json +++ b/package.json @@ -1,23 +1,25 @@ { - "name": "react-native-admob", - "version": "2.0.0-beta.5", - "description": "A react-native component for Google AdMob banners and interstitials", - "author": "Simon Bugert ", - "main": "index.js", - "license": "BSD-2-Clause", - "repository": { - "type": "git", - "url": "git@github.com:sbugert/react-native-admob.git" - }, - "dependencies": { - "prop-types": "^15.5.10" - }, - "peerDependencies": { - "react-native": ">=0.44.0" - }, - "devDependencies": { - "babel-eslint": "^7.2.3", - "eslint": "^4.3.0", - "eslint-plugin-react": "^7.1.0" - } + "name": "react-native-admob", + "version": "2.0.0-beta.5", + "summary": "lib for dfp", + "description": "A react-native component for Google AdMob banners and interstitials", + "author": "Simon Bugert ", + "main": "index.js", + "license": "BSD-2-Clause", + "homepage": "https://github.com/sbugert/react-native-admob", + "repository": { + "type": "git", + "url": "git@github.com:sbugert/react-native-admob.git" + }, + "dependencies": { + "prop-types": "^15.5.10" + }, + "peerDependencies": { + "react-native": ">=0.44.0" + }, + "devDependencies": { + "babel-eslint": "^7.2.3", + "eslint": "^4.3.0", + "eslint-plugin-react": "^7.1.0" + } } diff --git a/react-native-admob.podspec b/react-native-admob.podspec new file mode 100644 index 000000000..7e9815436 --- /dev/null +++ b/react-native-admob.podspec @@ -0,0 +1,19 @@ +require 'json' + +package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) + +Pod::Spec.new do |s| + s.name = package['name'] + s.version = package['version'] + s.description = package['description'] + s.summary = package['summary'] + s.homepage = package['homepage'] + s.author = package['author'] + s.license = package['license'] + s.source = { :git => 'https://github.com/sbugert/react-native-admob.git', :tag => "v#{s.version}" } + s.requires_arc = true + s.platform = :ios, '8.0' + s.source_files = 'ios/**/*.{h,m}' + s.dependency 'React' + s.dependency 'Google-Mobile-Ads-SDK' +end