Low commit activity in last 3 years
Flutter foryou tool
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

~> 1.13.0
~> 0.8.0
>= 1.0.0
>= 0
>= 0
 Project Readme

cocoapods-flutter

Cocoapods plugin for Flutter project integration.

Installation

Precondition

Before you use cocoapods-flutter, make sure binary server is ready. I provide you a simple binary server. Click link below and redirect to another repository.

BinaryServer

Gem install

$ gem install cocoapods-flutter-dt

Or download source code build gem on your own

$ gem install cocoapods-flutter-dt.gem

Config environment

$ export FLUTTER_BINARY_SERVER_BASEURL=https://www.example.com

Here is simple binary server

Usage

Archive

$ cd flutter project
$ pod flutter foryou package_name 0.0.1 --repo=cocoapods --wrapper=flutterw --sources=https://github.com/private_spec_repo.git,https://github.com/Cocoapods/Specs.git

There is more options

$ pod flutter foryou --help
--repo                                 podspec repo
--sources                              podspec sources
--upgrade                              pub upgrade
--wrapper                              Default is flutter
--flutterversion                       FlutterSDK version
--buildrun                             run build-runner

If you need to customize the .ios/Podfile, you can create a file name of 'local_podfile', the tool will use this file in first priority.

Use

In Podfile

plugin 'cocoapods-flutter-dt'

Case 1

Use binary of flutter, In this case, tool will download code from binary server.

flutter_pod 'package_name', '0.0.1', :mode=>'debug/release'

Case 2

Use local flutter project, compile dart code every time when you build native code

flutter_pod 'package_name', '0.0.1',:mode=>'debug/release', :path=>'local path of pubspec file'

Case 3

Pull flutter project from git repository. In this case, the tool will pull the flutter project into native project root directory and create framework when you pod install or update

flutter_pod 'package_name', '0.0.1', :mode=>'debug/release', :git=>{

:url=>'http://github.com/flutter/package_name.git',

:ref=>'master',

:wrapper => 'flutterw'

}

and pod install