Comments (11)
Hi @talbiislam96
This plugin requires you to provide arguments that are described in the README file of this project. You can find an example of Fastfile here. Make sure that the fastlane is setup properly on your local machine before trying to apply the changes on CI/CD.
Refer to Fastlane - How it works for more info on Fastlane and the core principles behind it.
from fastlane-plugin-flutter-version-manager.
Additionally, refer to this blog post that tackles some of the approaches of this plugin
from fastlane-plugin-flutter-version-manager.
@davormaricdev here's my fast file :
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
def versionString()
file=YAML.load_file('../version.yml')
version="#{file['major']}.#{file['minor']}.#{file['patch']}"
UI.message version
return version
end
default_platform(:android)
platform :android do
desc "Runs all the tests"
lane :test do
gradle(task: "test")
end
desc "Build"
lane :build do
gradle(task: "clean assembleRelease")
end
desc "Deploy a new version to the Google Play"
lane :deploy do
gradle(task: "clean assembleRelease")
upload_to_play_store
end
end
lane :bump_major do
flutter_version_manager(
arguments: "-major",
yml: "../version.yml",
pubspec: "../pubspec.yaml",
git_repo: "https://gitlab.com/wecraft.tn/projects/xenon/front/app-mobile")
end
lane :bump_minor do
flutter_version_manager(
arguments: "-minor",
yml: "../version.yml",
pubspec: "../pubspec.yaml")
end
lane :bump_patch do
flutter_version_manager(
arguments: "-patch",
yml: "../version.yml",
pubspec: "../pubspec.yaml")
end
lane :read_version do
flutter_version_manager(
arguments: "-version",
yml: "../version.yml",
pubspec: "../pubspec.yaml",
git_repo: "https://gitlab.com/wecraft.tn/projects/xenon/front/app-mobile")
commit_version_bump(
message: 'Build Version Bump by fastlane',
force: true
)
version = versionString()
add_git_tag(tag: "App-#{version}")
push_to_git_remote
end
lane :read_code do
flutter_version_manager(
arguments: "-code",
yml: "./version.yml",
pubspec: "./pubspec.yaml",
git_repo: "https://gitlab.com/wecraft.tn/projects/xenon/front/app-mobile" )
end
lane :apply_new_version do
flutter_version_manager(
arguments: "-apply",
yml: "../version.yml",
pubspec: "../pubspec.yaml",
git_repo: "https://gitlab.com/wecraft.tn/projects/xenon/front/app-mobile")
end
lane :get_help do
flutter_version_manager(
arguments: "-h",
yml: "../version.yml",
pubspec: "../pubspec.yaml",
git_repo: "https://gitlab.com/wecraft.tn/projects/xenon/front/app-mobile")
end
I followed the steps mentioned here on GitHub but still it tells mer that the path does not exist and I don't know which path it's talking about
from fastlane-plugin-flutter-version-manager.
@davormaricdev here's the stack trace
`
wecraft@Mac-mini-de-Wecraft android % bundle exec fastlane bump_minor
[✔] 🚀
+-----------------------------------------+---------+-------------------------+
| Used plugins |
+-----------------------------------------+---------+-------------------------+
| Plugin | Version | Action |
+-----------------------------------------+---------+-------------------------+
| fastlane-plugin-flutter_version_manager | 1.0.0 | flutter_version_manager |
+-----------------------------------------+---------+-------------------------+
objc[3718]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1ee7c7ad8) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10cac02c8). One of the two will be used. Which one is undefined.
objc[3718]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1ee7c7b28) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10cac0318). One of the two will be used. Which one is undefined.
[11:43:33]: ------------------------------
[11:43:33]: --- Step: default_platform ---
[11:43:33]: ------------------------------
[11:43:33]: Driving the lane 'bump_minor' 🚀
[11:43:33]: -------------------------------------
[11:43:33]: --- Step: flutter_version_manager ---
[11:43:33]: -------------------------------------
+------------------+------------+
| Lane Context |
+------------------+------------+
| DEFAULT_PLATFORM | android |
| PLATFORM_NAME | |
| LANE_NAME | bump_minor |
+------------------+------------+
[11:43:33]: path does not exist
+------+-------------------------+-------------+
| fastlane summary |
+------+-------------------------+-------------+
| Step | Action | Time (in s) |
+------+-------------------------+-------------+
| 1 | default_platform | 0 |
| 💥 | flutter_version_manager | 0 |
+------+-------------------------+-------------+
[11:43:33]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane...
➡️ The resource 'resetRatingsRequests' does not exist
fastlane/fastlane#20098 [open] 4 💬
2 weeks ago
➡️ Build number: xyz does not exist
fastlane/fastlane#19983 [open] 1 💬
3 weeks ago
➡️ Build number: xx.yy does not exist
fastlane/fastlane#19840 [open] 4 💬
3 weeks ago
`
from fastlane-plugin-flutter-version-manager.
Can you share yours Pluginfile
and Fastfile
@talbiislam96 ?
from fastlane-plugin-flutter-version-manager.
fastfile :
`
def versionString()
file=YAML.load_file('../version.yml')
version="#{file['major']}.#{file['minor']}.#{file['patch']}"
UI.message version
return version
end
default_platform(:android)
platform :android do
desc "Runs all the tests"
lane :test do
gradle(task: "test")
end
desc "Build"
lane :build do
gradle(task: "clean assembleRelease")
end
desc "Deploy a new version to the Google Play"
lane :deploy do
gradle(task: "clean assembleRelease")
upload_to_play_store
end
end
lane :bump_major do
flutter_version_manager(
arguments: "-major",
yml: "../version.yml",
pubspec: "../pubspec.yaml",
git_repo: "https://gitlab.com/wecraft.tn/projects/xenon/front/app-mobile")
end
lane :bump_minor do
flutter_version_manager(
arguments: "-minor",
yml: "../version.yml",
pubspec: "../pubspec.yaml")
end
lane :bump_patch do
flutter_version_manager(
arguments: "-patch",
yml: "../version.yml",
pubspec: "../pubspec.yaml")
end
lane :read_version do
flutter_version_manager(
arguments: "-version",
yml: "../version.yml",
pubspec: "../pubspec.yaml",
git_repo: "https://gitlab.com/wecraft.tn/projects/xenon/front/app-mobile")
commit_version_bump(
message: 'Build Version Bump by fastlane',
force: true
)
version = versionString()
add_git_tag(tag: "App-#{version}")
push_to_git_remote
end
lane :read_code do
flutter_version_manager(
arguments: "-code",
yml: "./version.yml",
pubspec: "./pubspec.yaml",
git_repo: "https://gitlab.com/wecraft.tn/projects/xenon/front/app-mobile" )
end
lane :apply_new_version do
flutter_version_manager(
arguments: "-apply",
yml: "../version.yml",
pubspec: "../pubspec.yaml",
git_repo: "https://gitlab.com/wecraft.tn/projects/xenon/front/app-mobile")
end
lane :get_help do
flutter_version_manager(
arguments: "-h",
yml: "../version.yml",
pubspec: "../pubspec.yaml",
git_repo: "https://gitlab.com/wecraft.tn/projects/xenon/front/app-mobile")
end
`
plugin :
`
gem 'fastlane-plugin-flutter_version_manager'
gem 'git'
`
Git plugin is configured
I even added my git repo link as a param
from fastlane-plugin-flutter-version-manager.
@talbiislam96 path to git_repo
is wrong. It should refer to .git
directory that is accessible to file system. git_repo
argument is optional and it defaults to ./
.
from fastlane-plugin-flutter-version-manager.
Alternatively, path to yml files might also be wrong.
You can read more about how fastlane handles directories here.
from fastlane-plugin-flutter-version-manager.
@davormaricdev I don't get it which folder is supposed to contain .git ? I've got just .gitignore file ?
@talbiislam96 please refer to stackoverflow link I provided before
from fastlane-plugin-flutter-version-manager.
If you've cloned git repository, then you have .git
folder. Bear in mind that .git folder is hidden by default.
Also, please note that, as stated in README, this plugin heavily resides on having a git repository.
I will close this issue now as this is an issue with how your git repository is maintained. Best of luck!
from fastlane-plugin-flutter-version-manager.
@davormaricdev thank you so much for your help it worked , but the version was : 1.0.0+2 when I applied bump-patch it became like this : 0.0.2+51144791 , this is not what I want to happen I want to keep the build number (after the plus sign ) also keep the major /minor only bump patch !
from fastlane-plugin-flutter-version-manager.
Related Issues (11)
- No such file or directory @ rb_sysopen HOT 5
- Can't find new version on main branch gitlab repo HOT 4
- Checking commit log based on version code HOT 2
- Replace dependency version HOT 1
- Version number from git inaccurately persisted in pubspec.yaml HOT 4
- Return version not only printing it HOT 13
- Fastlane 2.183 breaks loading HOT 1
- How to increase the version code by one and not use the git hash? HOT 1
- how to bump code version HOT 1
- New version deletes build number HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastlane-plugin-flutter-version-manager.