Skip to content

Commit

Permalink
IOS-6122: Improve compilation condition naming, fix comments
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Fedorov <[email protected]>
  • Loading branch information
m3g0byt3 committed Jun 12, 2024
1 parent 9be3e5e commit 5d316cb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tangem-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ jobs:
fetch-tags: true # Required otherwise git can't describe the repo; Doesn't actually work w/o 'fetch-depth', see https://github.com/actions/checkout/issues/1471
fetch-depth: 0

# This header is not used on iOS and causes a compilation error
- name: Remove unused files
run: rm -rf include/TrustWalletCore/TWAnySignerTangem.h
run: rm -rf include/TrustWalletCore/TWAnySignerTangem.h # This header is not used on iOS and causes a compilation error

- name: Check if SwiftProtobuf binary must be updated
run: tools/check_if_swift_protobuf_should_be_updated "https://github.com/tangem/swift-protobuf-binaries.git" "${{ needs.create_tag_and_release.outputs.swift_protobuf_publish_version }}"
Expand Down
6 changes: 3 additions & 3 deletions src/interface/TWAnySigner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

#include <TrustWalletCore/TWAnySigner.h>

#if defined(IS_IOS)
#if defined(IS_IOS_BINARIES)
#include <functional>
#else
#include <TrustWalletCore/TWAnySignerTangem.h> // Not used on iOS
#endif // defined(IS_IOS)
#include <TrustWalletCore/TWAnySignerTangem.h> // This header file is not used on iOS
#endif // defined(IS_IOS_BINARIES)

#include "Coin.h"

Expand Down
2 changes: 1 addition & 1 deletion swift/common-xcframework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ targets:
INFOPLIST_FILE: 'Info.plist'
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION: YES_ERROR
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER: $(inherited) false
OTHER_CFLAGS: $(inherited) -Wno-comma -DIS_IOS
OTHER_CFLAGS: $(inherited) -Wno-comma -DIS_IOS_BINARIES

trezor-crypto:
type: library.static
Expand Down
2 changes: 1 addition & 1 deletion swift/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ targets:
INFOPLIST_FILE: 'Info.plist'
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION: YES_ERROR
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER: $(inherited) false
OTHER_CFLAGS: $(inherited) -Wno-comma -DNDEBUG -DIS_IOS
OTHER_CFLAGS: $(inherited) -Wno-comma -DNDEBUG -DIS_IOS_BINARIES
postCompileScripts:
- script: |
export PATH=/opt/homebrew/bin:$PATH;
Expand Down

0 comments on commit 5d316cb

Please sign in to comment.