Skip to content

Commit 807162e

Browse files
committed
chore: add android build and deploy workflows and improve ios workflow
1 parent fc09df2 commit 807162e

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

examples/SampleApp/fastlane/Fastfile

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ platform :android do
115115

116116
UI.message("Deploying to Firebase: #{deploy}")
117117

118-
# Clean
119-
gradle(
120-
task: "clean",
121-
project_dir: "./android"
122-
)
118+
# # Clean
119+
# gradle(
120+
# task: "clean",
121+
# project_dir: "./android"
122+
# )
123123

124124
# Build the AAB
125125
gradle(
@@ -133,25 +133,6 @@ platform :android do
133133
end
134134

135135
if deploy
136-
latest_app_distribution_release = firebase_app_distribution_get_latest_release(
137-
app: firebase_app_id,
138-
service_credentials_file: firebase_credentials_file
139-
)
140-
141-
# Handle case when no previous releases exist
142-
if latest_app_distribution_release.nil? || latest_app_distribution_release.empty?
143-
puts "No previous releases found. Starting with version code 1"
144-
latest_app_distribution_version_code = 0 # Will be incremented to 1
145-
else
146-
latest_app_distribution_version_code = latest_app_distribution_release[:buildVersion].to_i
147-
puts "Latest version code from App Distribution: #{latest_app_distribution_version_code}"
148-
end
149-
150-
increment_version_code(
151-
gradle_file_path: "./android/app/build.gradle",
152-
version_code: latest_app_distribution_version_code + 1
153-
)
154-
155136
# Upload to Firebase App Distribution
156137
firebase_app_distribution(
157138
app: firebase_app_id,

0 commit comments

Comments
 (0)