| # |
| # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html |
| # |
| |
| require 'yaml' |
| pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) |
| libraryVersion = pubspec['version'].gsub('+', '-') |
| |
| Pod::Spec.new do |s| |
| s.name = 'firebase_crashlytics' |
| s.version = '0.0.1' |
| s.summary = 'A new flutter plugin project.' |
| s.description = <<-DESC |
| A new flutter plugin project. |
| DESC |
| s.homepage = 'http://example.com' |
| s.license = { :file => '../LICENSE' } |
| s.author = { 'Your Company' => 'email@example.com' } |
| s.source = { :path => '.' } |
| s.source_files = 'Classes/**/*' |
| s.public_header_files = 'Classes/**/*.h' |
| s.ios.deployment_target = '8.0' |
| s.static_framework = true |
| s.dependency 'Flutter' |
| s.dependency 'Fabric' |
| s.dependency 'Crashlytics' |
| s.dependency 'Firebase/Core' |
| |
| s.prepare_command = <<-CMD |
| echo // Generated file, do not edit > Classes/UserAgent.h |
| echo "#define LIBRARY_VERSION @\\"#{libraryVersion}\\"" >> Classes/UserAgent.h |
| echo "#define LIBRARY_NAME @\\"flutter-fire-cls\\"" >> Classes/UserAgent.h |
| CMD |
| end |