Skip to content
Snippets Groups Projects
Commit 567923ca authored by Darby Frey's avatar Darby Frey
Browse files

Adding Fastlane plugins and version bump

parent 0ea02d06
No related branches found
No related tags found
No related merge requests found
......@@ -14,13 +14,13 @@ before_script:
- bundle check --path vendor/bundle || bundle install --path vendor/bundle --jobs $(nproc)
test:
image: fabernovel/android:api-31-v1.6.1
image: fabernovel/android:api-33-v1.7.0
stage: test
script:
- bundle exec fastlane test
build:
image: fabernovel/android:api-31-v1.6.1
image: fabernovel/android:api-33-v1.7.0
stage: build
variables:
SECURE_FILES_DOWNLOAD_PATH: './'
......@@ -33,7 +33,7 @@ build:
- app/build/outputs/bundle/release/app-release.aab
beta:
image: fabernovel/android:api-31-v1.6.1
image: fabernovel/android:api-33-v1.7.0
stage: beta
script:
- bundle exec fastlane beta
......
source "https://rubygems.org"
gem "fastlane"
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
......@@ -105,6 +105,7 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
fastlane-plugin-increment_version_code (0.4.3)
gh_inspector (1.1.3)
google-apis-androidpublisher_v3 (0.37.0)
google-apis-core (>= 0.11.0, < 2.a)
......@@ -213,6 +214,7 @@ PLATFORMS
DEPENDENCIES
fastlane
fastlane-plugin-increment_version_code
BUNDLED WITH
2.4.6
......@@ -25,7 +25,7 @@ android {
applicationId "com.gitlab.random"
minSdk 24
targetSdk 33
versionCode 1
versionCode 2
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
......
default_platform(:android)
platform :android do
desc "Runs all the tests"
lane :test do
gradle(task: "test")
end
desc "Increment version code"
lane :increment_vc do
increment_version_code(
gradle_file_path: "./app/build.gradle",
)
end
desc "Create and sign a new build"
lane :build do
gradle(tasks: ["clean", "assembleRelease", "bundleRelease"])
end
desc "Submit a new Beta Build to the Google Play store"
lane :beta do
upload_to_play_store(
track: 'internal',
aab: 'app/build/outputs/bundle/demoRelease/app-demo-release.aab'
)
end
end
# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!
gem 'fastlane-plugin-increment_version_code'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment