Skip to content

Commit

Permalink
IOS-8885: Clean up
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Fedorov <afedorov@tangem.com>
  • Loading branch information
m3g0byt3 committed Dec 28, 2024
1 parent f492134 commit 34f5c68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-deploy-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
build:
name: Tangem Alpha
needs: prepare
uses: tangem/actions/.github/workflows/build.yml@feature/IOS-8885_private_app_config
uses: tangem/actions/.github/workflows/build.yml@feature/IOS-8885_private_app_config # TODO: Switch to main
with:
stage: '${{ needs.prepare.outputs.stage }}'
version: '${{ needs.prepare.outputs.version }}'
Expand Down
17 changes: 2 additions & 15 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require 'base64'
default_platform(:ios)

BUILD_PATH = "./fastlane/builds/"
ANALYZE_ARCHIVE_UTIL_PATH = "../private-app-config/analyze_archive.sh"
ANALYZE_ARCHIVE_UTIL_PATH = "./private-app-config/analyze_archive.sh"
PRODUCTION_SCHEME = "Tangem"
BETA_SCHEME = "Tangem Beta"
ALPHA_SCHEME = "Tangem Alpha"
Expand Down Expand Up @@ -149,8 +149,6 @@ lane :build_Alpha do |options|
increment_version_number(version_number: options[:version])
increment_firebase_build_number(app_id: options[:firebase_app_id], build: options[:build])

UI.important("build_Alpha_analyze_archive: #{options[:analyze_archive]}") # TODO: Remove

build(
export_method: "ad-hoc",
scheme: ALPHA_SCHEME,
Expand Down Expand Up @@ -415,16 +413,7 @@ end
private_lane :build do |options|
clean_artifacts

if options[:analyze_archive].nil?
should_analyze_archive = false
else
# Boolean inputs from GH actions are such a mess
should_analyze_archive = (options[:analyze_archive] == true) || (options[:analyze_archive].to_s.downcase == "true")
end

UI.important("should_analyze_archive: #{should_analyze_archive}, #{options[:analyze_archive]}") # TODO: Remove

if should_analyze_archive
if options[:analyze_archive] == true
build_and_analyze(
export_method: options[:export_method],
scheme: options[:scheme],
Expand Down Expand Up @@ -465,9 +454,7 @@ private_lane :build_and_analyze do |options|
xcarchive_path: xcarchive_path
)

UI.important("begin analyzing archive")
sh("#{analyze_archive_util_path} '#{xcarchive_path}'")
UI.important("end analyzing archive")

create_ipa(
path: options[:path],
Expand Down

0 comments on commit 34f5c68

Please sign in to comment.