Skip to content
Snippets Groups Projects
Commit 85cb6542 authored by Krishna Prasad's avatar Krishna Prasad
Browse files

updated the gradle command in fastfile to use bundle format instead of apk

parent 7d959e99
Branches
No related tags found
No related merge requests found
......@@ -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 deployToplay'
sh 'fastlane deployToPlaystoreAlpha'
}
}
}
......
......@@ -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 {
......
File added
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment