All Projects → tianhaoz95 → Fastlane Plugin Flutter_version

tianhaoz95 / Fastlane Plugin Flutter_version

Licence: mit
Fastlane plugin to retrieve version code for Flutter projects.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Fastlane Plugin Flutter version

bump-everywhere
🚀 Automate versioning, changelog creation, README updates and GitHub releases using GitHub Actions,npm, docker or bash.
Stars: ✭ 24 (-22.58%)
Mutual labels:  continuous-deployment, versioning
Strangelog
Painless file-based changelog management via CLI.
Stars: ✭ 12 (-61.29%)
Mutual labels:  versioning
Shipjs
Take control of what is going to be your next release.
Stars: ✭ 668 (+2054.84%)
Mutual labels:  versioning
Agola
Agola: CI/CD Redefined
Stars: ✭ 783 (+2425.81%)
Mutual labels:  continuous-deployment
old vespene
DISCONTINUED: a frozen fork will exist forever at mpdehaan/vespene
Stars: ✭ 672 (+2067.74%)
Mutual labels:  continuous-deployment
Lightning Sites
☁️ Lightning deployment for your ~/Sites folders
Stars: ✭ 8 (-74.19%)
Mutual labels:  continuous-deployment
Sirix
SirixDB is a temporal, evolutionary database system, which uses an accumulate only approach. It keeps the full history of each resource. Every commit stores a space-efficient snapshot through structural sharing. It is log-structured and never overwrites data. SirixDB uses a novel page-level versioning approach called sliding snapshot.
Stars: ✭ 638 (+1958.06%)
Mutual labels:  versioning
Git Push Deploy
Simple Automated CI/CD Pipeline for GitHub and GitLab Projects
Stars: ✭ 21 (-32.26%)
Mutual labels:  continuous-deployment
Versioning Spring Boot Starter
Spring boot starter using for versioning rest easily.
Stars: ✭ 11 (-64.52%)
Mutual labels:  versioning
Ecs Refarch Continuous Deployment
ECS Reference Architecture for creating a flexible and scalable deployment pipeline to Amazon ECS using AWS CodePipeline
Stars: ✭ 776 (+2403.23%)
Mutual labels:  continuous-deployment
Flux
Successor: https://github.com/fluxcd/flux2 — The GitOps Kubernetes operator
Stars: ✭ 6,688 (+21474.19%)
Mutual labels:  continuous-deployment
Flubucore
A cross platform build and deployment automation system for building projects and executing deployment scripts using C# code.
Stars: ✭ 695 (+2141.94%)
Mutual labels:  continuous-deployment
Refreshversions
Life is too short to google for dependencies and versions
Stars: ✭ 841 (+2612.9%)
Mutual labels:  versioning
Niv
Easy dependency management for Nix projects
Stars: ✭ 669 (+2058.06%)
Mutual labels:  versioning
Gitversioningonxcode
Pretty Xcode Git versioning for iOS & macOS applications
Stars: ✭ 15 (-51.61%)
Mutual labels:  versioning
Featuretoggle
Simple, reliable feature toggles in .NET
Stars: ✭ 641 (+1967.74%)
Mutual labels:  continuous-deployment
Gocd
Main repository for GoCD - Continuous Delivery server
Stars: ✭ 6,314 (+20267.74%)
Mutual labels:  continuous-deployment
Haiku
🚀 Instant Heroku deploys from GitHub branches
Stars: ✭ 17 (-45.16%)
Mutual labels:  continuous-deployment
Agente
Distributed simple and robust release management and monitoring system.
Stars: ✭ 30 (-3.23%)
Mutual labels:  continuous-deployment
React Native Npm Version
Example of React-Native application with version from package.json and npm version bump.
Stars: ✭ 20 (-35.48%)
Mutual labels:  versioning

flutter_version (Fastlane plugin)

All Contributors

fastlane Plugin Badge Gitpod Ready-to-Code codecov

flutter_version is a Fastlane plugin to retrieve version code from Flutter projects which can be used to release changlogs and other metadata to marketplaces.

Installation

This project is a fastlane plugin. To get started with fastlane-plugin-flutter_version, add it to your project by adding the following lines in Gemfile:

From GitHub registry (recommended)

Install from the command line:

gem install fastlane-plugin-flutter_version --version "1.0.0" --source "https://rubygems.pkg.github.com/tianhaoz95"

Install via Gemfile:

source "https://rubygems.pkg.github.com/tianhaoz95" do
  gem "fastlane-plugin-flutter_version", "1.0.0"
end

Check out the instructions in GitHub Registry.

From RubyGems registry

Install from the command line:

gem install fastlane-plugin-flutter_version

Install via Gemfile:

gem 'fastlane-plugin-flutter_version', '~> 1.0', '>= 1.0.1'

Check out the instructions here.

Directly from Github

gem "fastlane-plugin-flutter_version", git: "https://github.com/tianhaoz95/fastlane-plugin-flutter-version"

Usage

Android example

The following example releases a Android app to Google Play Store without needing to manually specify the app version:

desc "submit to internal track in Google Play Store"
lane :internal do
  Dir.chdir "../.." do sh("flutter", "build", "appbundle", "--release") end # Call Flutter Build
  gradle(task: 'bundle', build_type: 'Release')
  upload_to_play_store(
    track: 'internal',
    version_code: flutter_version()["version_code"],
    aab: '../build/app/outputs/bundle/release/app-release.aab',
    skip_upload_screenshots: true,
    skip_upload_images: true
  )
end

The line flutter_version() fetches the version information from the pubspec.yaml file from the Flutter project and parses the version information from the file. This is convenient for continuous integration because it saves the effort for developers to keep track of version information in multiple places.

For more details, check out the example project configuration.

iOS example

The following example releases an iOS app to TestFlight without needing to manually specify the app version or build number:

desc "submit to TestFlight"
lane :internal do
  Dir.chdir "../.." do sh("flutter", "build", "ios", "--release", "--no-codesign") end # Call Flutter Build
  # https://docs.fastlane.tools/actions/increment_version_number/
  increment_version_number(
    xcodeproj: "Runner.xcodeproj",
    version_number: flutter_version()["version_name"] # Set a specific version number
  )
  # https://docs.fastlane.tools/actions/increment_build_number/
  increment_build_number(
    xcodeproj: "Runner.xcodeproj",
    build_number: flutter_version()["version_code"] # Set a specific build number
  )
  build_app(workspace: "Runner.xcworkspace", export_method: "app-store")
  upload_to_testflight
end

Available options

Name Description Optional Type Default
pubspec_location The location of the pubspec.yaml file (relative to Fastfile). For details, see here. String ../pubspec.yaml
should_omit_version_code If the version code should be omitted for projects that do not use a version code. For details, see here. Boolean false

About Fastlane

Fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.

Issues and feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting guide.

Using Fastlane plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Shun Kakinoki

💻

Tianhao Zhou

💻

davidbrenner

🤔 📖

Daniel Gomez

🤔

RtypeStudios

💬 📖

Marvin M

🤔

Muhammad Adil

📖 🐛

Leslie Arkorful

🐛 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].