mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 03:19:11 +08:00
Fastlane: Add a lane to build + upload to playstore
In the alpha version for now. The --build-number flag fails right now, this seems to be a regression in flutter which has been fixed, but the new version has yet to be released. So, when I put this into a proper CI, it's going to fail :(
This commit is contained in:
@ -1,23 +1,21 @@
|
||||
default_platform(:android)
|
||||
|
||||
platform :android do
|
||||
desc "Runs all the tests"
|
||||
lane :test do
|
||||
gradle(task: "test")
|
||||
end
|
||||
desc "Build a new Android APK"
|
||||
lane :alphaBuild do
|
||||
# Return the number of commits in current git branch
|
||||
build_number = number_of_commits()
|
||||
Dir.chdir "../../" do
|
||||
#sh("flutter", "packages", "get")
|
||||
#sh("flutter", "clean")
|
||||
#sh("flutter", "build", "apk", "--build-number=#{build_number}")
|
||||
end
|
||||
|
||||
desc "Submit a new Beta Build to Crashlytics Beta"
|
||||
lane :beta do
|
||||
gradle(task: "clean assembleRelease")
|
||||
crashlytics
|
||||
|
||||
# sh "your_script.sh"
|
||||
# You can also use other beta testing services here
|
||||
end
|
||||
|
||||
desc "Deploy a new version to the Google Play"
|
||||
lane :deploy do
|
||||
gradle(task: "clean assembleRelease")
|
||||
upload_to_play_store
|
||||
upload_to_play_store(track: "alpha",
|
||||
apk: "../build/app/outputs/apk/release/app-release.apk",
|
||||
skip_upload_metadata: true,
|
||||
skip_upload_images: true,
|
||||
skip_upload_screenshots: true,
|
||||
)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user