fledge 0.1.3

pub package Build Status drawing

Fledge

See https://medium.com/@nocnoc/cicd-for-flutter-fdc07fe52abd for introduction to Fledge.

Fledge: A CICD tool for Flutter #

Automatically build, test, sign and release your Flutter app to both Apple and Google stores.

Supports public and private build servers in the cloud (Travis, Cirrus, etc...) and in-house (Jenkins, GitLab, etc...).

There are many steps involved each time an app, or an app upgrade, is delivered to both stores. Fledge exists to document and automate these steps.

Quick start #

For example, with GitHub and Travis:

  1. Install Fledge

     $ pub global activate fledge
    
  2. Add secrets
    Set your secret variables in:

     https://travis-ci.org/<your name>/<your repo>/settings
    

    secret variables
    These variables are used for signing and uploading to both stores.

  3. Add app to Fledge
    Install the Travis config file and Fastlane files

     $ fledge config -b travis
    
  4. Start a beta
    Run pipeline on Travis

     $ fledge beta
    

    This will build your app, upload to both store consoles and release to beta testers.

  5. Release to users

     $ fledge release
    

    This will release the app to users.

Documentation #

As with any mobile app, there are several one-time setup tasks (most of which you have to do anyway… even without a CICD tool).

To avoid having to gather together all the bits and pieces of information required to deliver a Flutter app, the Fledge project has created complete documentation to walk you thru all the setup tasks for the more common scenarios.

One of the reasons the Fledge projects exists is to document these one-time setup tasks and progressively automate them where possible (and then remove from documentation).

Fledge Docs

View the documentation site for complete usage and configuration information.

Demo #

For a demo of Fledge in action see: https://github.com/mmcc007/todo. Links are included to view the pipeline on Travis that delivers betas and releases to both stores.

The demo app was delivered automatically to both Google and Apple stores using a Fledge pipeline.

You can download the demo app to your android or iOS device:
GitErDone GitErDone

Fledge trace-back feature #

This feature allows you to track what version of your app is running on any device. Useful for support and bug-fixing.

To use the Fledge trace-back feature, tap on the app title 'GitErDone' to view the 'About'.

On an android device you will see:
android screenshot

On an iOS device you will see:
ios screenshot

You can then trace back to the Fledge pipeline that delivered the app (click on image below for link to actual pipeline):
fledge pipeline

License #

Fledge is distributed by an MIT license.

Contributing #

When contributing to this repository, please feel free to discuss via issue or pull request.

Issues and pull requests are welcome.

Your feedback is welcome and is used to guide where development effort is focused. So feel free to create as many issues and pull requests as you see fit. You should expect a timely and considered response.

Code of Conduct #

Fledge is committed to fostering a welcoming community.

Big Thanks #

Mobile Testing Platform and Open Source <3♥ Provided by Sauce Labs

0.1.3 #

  • Fixed provisioning profile name on iOS build

0.1.2 #

  • Removed local Fastlane dependency.
    Allows Fledge to run on macOS, Linux, and Windows.
  • Added example app demoing integration to build server.
    Demo runs on travis, and can run on other build servers.

0.1.1 #

  • Updated docs

0.1.0 #

  • Initial release

0.0.4 #

  • Resolved documentation generation issue

0.0.3 #

  • Provided required example and resolved documentation generation issue

0.0.2 #

  • Resolved package analysis issues

0.0.1 #

  • Initial version

example/README.md

example #

A new Flutter project.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate fledge

2. Use it

The package has the following executables:


$ fledge

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  fledge: ^0.1.3

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:fledge/fledge.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
95
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
48
Learn more about scoring.

We analyzed this package on Aug 22, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19

Platforms

Detected platforms: Flutter, other

Primary library: package:fledge/fledge.dart with components: io, isolate.

Health suggestions

Fix lib/src/commands/config.dart. (-1.99 points)

Analysis of lib/src/commands/config.dart reported 4 hints:

line 34 col 3: The class 'Future' was not exported from 'dart:core' until version 2.1, but this code is required to be able to run on earlier versions.

line 67 col 7: DO use curly braces for all flow control structures.

line 71 col 1: The class 'Future' was not exported from 'dart:core' until version 2.1, but this code is required to be able to run on earlier versions.

line 80 col 1: The class 'Future' was not exported from 'dart:core' until version 2.1, but this code is required to be able to run on earlier versions.

Fix lib/src/commands/beta.dart. (-1.49 points)

Analysis of lib/src/commands/beta.dart reported 3 hints:

line 95 col 7: DO use curly braces for all flow control structures.

line 103 col 7: DO use curly braces for all flow control structures.

line 124 col 47: DO use curly braces for all flow control structures.

Fix lib/src/io.dart. (-1.49 points)

Analysis of lib/src/io.dart reported 3 hints:

line 676 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 866 col 3: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 867 col 3: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

Fix lib/src/error_group.dart. (-0.50 points)

Analysis of lib/src/error_group.dart reported 1 hint:

line 138 col 7: DO use curly braces for all flow control structures.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
args ^1.4.1 1.5.2
async ^2.0.0 2.3.0
crypto >=1.0.0 <3.0.0 2.1.2
http ^0.12.0 0.12.0+2
http_multi_server >=1.0.0 <3.0.0 2.1.0
meta ^1.1.0 1.1.7
path ^1.2.0 1.6.4
pool ^1.0.0 1.4.0
pub_semver ^1.4.0 1.4.2
resource ^2.1.5 2.1.6
source_span ^1.4.0 1.5.5
stack_trace ^1.0.0 1.9.3
yaml ^2.0.0 2.1.16
Transitive dependencies
charcode 1.1.2
collection 1.14.12
convert 2.1.1
http_parser 3.1.3
pedantic 1.8.0+1
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
test ^1.0.0