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
85cb6542
Commit
85cb6542
authored
Feb 6, 2024
by
Krishna Prasad
Browse files
Options
Downloads
Patches
Plain Diff
updated the gradle command in fastfile to use bundle format instead of apk
parent
7d959e99
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Jenkinsfile
+2
-2
2 additions, 2 deletions
Jenkinsfile
app/build.gradle.kts
+13
-0
13 additions, 0 deletions
app/build.gradle.kts
app/fastlane.jks
+0
-0
0 additions, 0 deletions
app/fastlane.jks
fastlane/Fastfile
+8
-11
8 additions, 11 deletions
fastlane/Fastfile
with
23 additions
and
13 deletions
Jenkinsfile
+
2
−
2
View file @
85cb6542
...
...
@@ -46,7 +46,7 @@ pipeline {
}
}
stage
(
'Playstore Alpha'
)
{
stage
(
'Playstore Alpha
Testing
'
)
{
steps
{
script
{
// Use absolute path to Fastlane
...
...
@@ -54,7 +54,7 @@ pipeline {
env
.
PATH
=
"${fastlanePath}:${env.PATH}"
// Run Fastlane deploy for Firebase App distribution
sh
'fastlane deployTo
p
lay'
sh
'fastlane deployTo
P
lay
storeAlpha
'
}
}
}
...
...
This diff is collapsed.
Click to expand it.
app/build.gradle.kts
+
13
−
0
View file @
85cb6542
...
...
@@ -7,6 +7,16 @@ android {
namespace
=
"com.kp.testapp"
compileSdk
=
34
// Signing configurations
signingConfigs
{
create
(
"release"
)
{
keyAlias
=
"fastlane"
keyPassword
=
"niveus@123"
storeFile
=
file
(
"fastlane.jks"
)
storePassword
=
"niveus@123"
}
}
defaultConfig
{
applicationId
=
"com.kp.testapp"
minSdk
=
25
...
...
@@ -22,8 +32,11 @@ android {
buildTypes
{
release
{
signingConfig
=
signingConfigs
.
getByName
(
"release"
)
isMinifyEnabled
=
false
proguardFiles
(
getDefaultProguardFile
(
"proguard-android-optimize.txt"
),
"proguard-rules.pro"
)
// Enable bundle generation for release
}
}
compileOptions
{
...
...
This diff is collapsed.
Click to expand it.
app/fastlane.jks
0 → 100644
+
0
−
0
View file @
85cb6542
File added
This diff is collapsed.
Click to expand it.
fastlane/Fastfile
+
8
−
11
View file @
85cb6542
...
...
@@ -24,8 +24,9 @@ platform :android do
######## FIREBASE DISTRIBUTION ########
desc
"Submit a new Google Test Build to Firebase App Distribution"
lane
:distributeViaFirebase
do
|
options
|
gradle
(
task:
"bundleRelease"
)
# gradle(task: "clean assembleRelease")
gradle
(
task:
"clean assembleDebug"
)
#
gradle(task: "clean assembleDebug")
# find apk path
#output_path = "/home/karthik_shetty_niveussolutions_c/var/lib/jenkins/workspace/fastlane/app/build/outputs/apk/release/app-release-unsigned.apk"
...
...
@@ -49,19 +50,15 @@ platform :android do
desc
"build the apk"
lane
:build
do
gradle
(
task:
"clean assembleDebug"
)
gradle
(
task:
"bundleRelease"
)
# gradle(task: "clean assembleDebug")
# 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
desc
"Deploy a new version to the Google Play - Alpha Track"
lane
:deployToPlaystoreAlpha
do
gradle
(
task:
"bundleRelease"
)
desc
"Deploy a new version to the Google Play - Alpha"
lane
:deployToplay
do
gradle
(
task:
"clean assembleDebug"
)
upload_to_google_play
(
track:
"alpha"
,
json_key:
"/home/karthik_shetty_niveussolutions_c/prj-common-services-01-0c9b948542c2.json"
,
...
...
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