Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Apkforfastlane
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Karthik Shetty
Apkforfastlane
Commits
fc615843
Commit
fc615843
authored
1 year ago
by
Krishna Prasad
Browse files
Options
Downloads
Patches
Plain Diff
Minor changes in jenkins and fastlane file, updated the app version
parent
fbd698ba
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Jenkinsfile
+8
-17
8 additions, 17 deletions
Jenkinsfile
app/build.gradle.kts
+2
-2
2 additions, 2 deletions
app/build.gradle.kts
fastlane/Fastfile
+19
-17
19 additions, 17 deletions
fastlane/Fastfile
with
29 additions
and
36 deletions
Jenkinsfile
+
8
−
17
View file @
fc615843
...
...
@@ -10,16 +10,8 @@ pipeline {
}
stages
{
/* stage('Build') {
steps {
script {
// Your initial build steps here
echo 'Building...'
}
}
}
stage('upload to drive') {
// STAGE 1 - Build the application
stage
(
'Build'
)
{
steps
{
script
{
// Use absolute path to Fastlane
...
...
@@ -27,12 +19,12 @@ pipeline {
env
.
PATH
=
"${fastlanePath}:${env.PATH}"
// Run Fastlane deploy for Firebase App distribution
sh 'sudo fastlane deployToDrive'
sh
'fastlane build'
}
}
}
} */
// STAGE 2 - Upload the build to Firebase App Distribution Channel
stage
(
'Firebase App Distribution'
)
{
steps
{
script
{
...
...
@@ -46,6 +38,7 @@ pipeline {
}
}
// STAGE 3 - Upload the build to Google Playstore Alpha Track
stage
(
'Playstore Alpha Testing'
)
{
steps
{
script
{
...
...
@@ -61,8 +54,6 @@ pipeline {
}
post
{
always
{
// Clean up steps if needed
...
...
This diff is collapsed.
Click to expand it.
app/build.gradle.kts
+
2
−
2
View file @
fc615843
...
...
@@ -21,8 +21,8 @@ android {
applicationId
=
"com.kp.testapp"
minSdk
=
25
targetSdk
=
34
versionCode
=
2
versionName
=
"1.0.
1
"
versionCode
=
3
versionName
=
"1.0.
3
"
testInstrumentationRunner
=
"androidx.test.runner.AndroidJUnitRunner"
vectorDrawables
{
...
...
This diff is collapsed.
Click to expand it.
fastlane/Fastfile
+
19
−
17
View file @
fc615843
...
...
@@ -16,18 +16,25 @@
default_platform
(
:android
)
platform
:android
do
# get the required prerequisites like credentials, app ids etc.
before_all
do
ENV
[
"FIREBASE_LOGIN_CREDENTIALS"
]
=
"fastlane/fastlane-admin-app-distribution.json"
ENV
[
"FIREBASE_APP_ID"
]
=
"1:771295755070:android:5007592bd3aba1c3ec0a6f"
end
######## FIREBASE DISTRIBUTION ########
desc
"Submit a new Google Test Build to Firebase App Distribution"
######## Generate the Apk and App bundle ########
desc
"build the apk or bundle"
lane
:build
do
gradle
(
task:
"clean assembleDebug"
)
# generates debug build
gradle
(
task:
"bundleRelease"
)
# generates signed release bundle
end
######## Upload apk to Firebase Distribution Channel ########
desc
"Upload build to Firebase App Distribution"
lane
:distributeViaFirebase
do
|
options
|
#gradle(task: "bundleRelease")
gradle
(
task:
"clean assembleDebug"
)
#gradle(task: "clean assembleDebug")
#apk_path = "app/build/outputs/bundle/release/app-release.aab"
apk_path
=
"app/build/outputs/apk/debug/app-debug.apk"
firebase_app_distribution
(
...
...
@@ -39,24 +46,19 @@ platform :android do
)
end
desc
"build the apk"
lane
:build
do
gradle
(
task:
"bundleRelease"
)
#gradle(task: "clean assembleDebug")
# gradle(task: "clean assembleRelease")
end
desc
"Deploy a new version to the Google Play - Alpha"
######## Upload app bundle to Google Playstore Alpha Track ########
desc
"Deploy a new version to the Google Play Store - Alpha Track"
lane
:deployToPlaystoreAlpha
do
gradle
(
task:
"bundleRelease"
)
#gradle(task: "bundleRelease")
upload_to_play_store
(
track:
"alpha"
,
track:
"alpha"
,
# alpha or beta or internal or production
json_key:
"/home/karthik_shetty_niveussolutions_c/prj-common-services-01-0c9b948542c2.json"
,
package_name:
"com.kp.testapp"
,
aab:
"app/build/outputs/bundle/release/app-release.aab"
,
skip_upload_metadata:
true
,
# Set to false if you want to upload metadata (e.g., changelog)
skip_upload_images:
true
,
# Set to false if you want to upload screenshots, feature graphics, etc.
skip_upload_apk:
true
skip_upload_apk:
true
# Set to true if opting for App Bundle
)
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment