Skip to content

Commit

Permalink
docs(README): add usage details
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyamahunt committed Mar 8, 2022
1 parent e01ea82 commit 52852ae
Show file tree
Hide file tree
Showing 8 changed files with 117 additions and 34 deletions.
61 changes: 59 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ Thumbs.db
Pods/
contents.xcworkspacedata
IDEWorkspaceChecks.plist
pkg

# Miscellaneous
*.class
Expand Down Expand Up @@ -114,4 +113,62 @@ build/
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!**/ios/**/default.perspectivev3

# Ruby related
*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/
/tmp/

# Used by dotenv library to load environment variables.
# .env

# Ignore Byebug command history file.
.byebug_history

## Specific to RubyMotion:
.dat*
.repl_history
build/
*.bridgesupport
build-iPhoneOS/
build-iPhoneSimulator/

## Specific to RubyMotion (use of CocoaPods):
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# vendor/Pods/

## Documentation cache and generated files:
/.yardoc/
/_yardoc/
/doc/
/rdoc/

## Environment normalization:
/.bundle/
/vendor/bundle
/lib/bundler/man/

# for a library or gem, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# Gemfile.lock
# .ruby-version
# .ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

# Used by RuboCop. Remote config files pulled in from inherit_from directive.
# .rubocop-https?--*
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
cocoapods-embed-flutter (0.0.1)
cocoapods-embed-flutter (0.5.0)
cocoapods
fileutils
yaml
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 DartBuild

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
22 changes: 0 additions & 22 deletions LICENSE.txt

This file was deleted.

30 changes: 27 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,35 @@
# cocoapods-embed-flutter

A description of cocoapods-embed-flutter.
[![Gem Version](https://badge.fury.io/rb/cocoapods-embed-flutter.svg)](http://badge.fury.io/rb/cocoapods-embed-flutter)
[![Code Climate](https://codeclimate.com/github/DartBuild/cocoapods-embed-flutter.png)](https://codeclimate.com/github/DartBuild/cocoapods-embed-flutter)

Straight forward way of declaring flutter modules as dependency for targets, just like cocoapods does with pods.

## Installation

$ gem install cocoapods-embed-flutter
```bash
$ [sudo] gem install cocoapods-embed-flutter
```

## Usage

$ pod spec flutter POD_NAME
In your host project `Podfile`, write the below line before any target definition
```rb
plugin 'cocoapods-embed-flutter'
```

### Embedding module from a local path.

```rb
pub 'flutter_module', :path => '../'
```

*`:path` can be path pointing to `pubspec.yaml` or to the directory containing `pubspec.yaml` or to the directory containg flutter module.*

### Embedding module from a repository.

```rb
pub 'flutter_module', :git => 'https://github.com/gowalla/flutter_module.git', :branch => 'dev'
pub 'flutter_module', :git => 'https://github.com/gowalla/flutter_module.git', :tag => '0.7.0'
pub 'flutter_module', :git => 'https://github.com/gowalla/flutter_module.git', :commit => '082f8319af'
```
9 changes: 6 additions & 3 deletions cocoapods-embed-flutter.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ Gem::Specification.new do |spec|
spec.version = CocoapodsEmbedFlutter::VERSION
spec.authors = ['Soumya Ranjan Mahunt']
spec.email = ['devsoumyamahunt@gmail.com']
spec.description = %q{Embed flutter plugins in iOS projects.}
spec.summary = %q{Embed flutter plugins in iOS projects.}
spec.homepage = 'https://github.com/soumyamahunt/cocoapods-embed-flutter'
spec.description = %q{Embed flutter modules in iOS projects.}
spec.summary = <<-DESC
Straight forward way of declaring flutter modules as dependency for targets,
just like cocoapods does with pods.
DESC
spec.homepage = 'https://github.com/DartBuild/cocoapods-embed-flutter'
spec.license = 'MIT'

spec.files = `git ls-files`.split($/)
Expand Down
4 changes: 2 additions & 2 deletions example/ios_app/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ../..
specs:
cocoapods-embed-flutter (0.0.1)
cocoapods-embed-flutter (0.5.0)
cocoapods
fileutils
yaml
Expand Down Expand Up @@ -67,7 +67,7 @@ GEM
ethon (0.15.0)
ffi (>= 1.15.0)
ffi (1.15.5)
fileutils (1.1.0)
fileutils (1.6.0)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
Expand Down
2 changes: 1 addition & 1 deletion lib/cocoapods-embed-flutter/gem_version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module CocoapodsEmbedFlutter
VERSION = '0.0.1'
VERSION = '0.5.0'.freeze
NAME = File.basename(File.dirname(__FILE__))
end

0 comments on commit 52852ae

Please sign in to comment.