Skip to content

Commit

Permalink
Merge pull request aksonov#54 from dmueller39/master
Browse files Browse the repository at this point in the history
Add podspec so that the library can be installed as a pod
  • Loading branch information
cbrevik authored Aug 11, 2016
2 parents d9c3127 + edec11c commit 2915ab2
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions react-native-google-analytics-bridge.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
require "json"

package = JSON.parse(File.read(File.join(__dir__, "package.json")))
ios_root = 'ios/RCTGoogleAnalyticsBridge'
galib_root = ios_root+'/google-analytics-lib'

Pod::Spec.new do |s|
s.name = "react-native-google-analytics-bridge"
s.version = package["version"]
s.summary = package["description"]
s.author = "Idéhub AS"

s.homepage = package["homepage"]

s.license = package["license"]
s.platform = :ios, "7.0"

s.source = { :git => "https://github.com/idehub/react-native-google-analytics-bridge", :tag => "#{s.version}" }

s.dependency "React"

s.frameworks = 'CoreData', 'SystemConfiguration'
s.libraries = 'z', 'sqlite3.0','GoogleAnalyticsServices','AdIdAccess'

s.vendored_libraries =
galib_root+'/libGoogleAnalyticsServices.a',
galib_root+'/libAdIdAccess.a'

s.source_files =
galib_root+'/*.{h}',
ios_root+'/RCTGoogleAnalyticsBridge/*.{h,m}'

end

0 comments on commit 2915ab2

Please sign in to comment.