chore(build): fix tools (#2481)
Signed-off-by: stackchain <[email protected]>
Signed-off-by: stackchain <[email protected]>
nodejs 16.19.0
rust 1.65.0
java zulu-11.58.23
ruby 2.7.6
python 3.11.3
*.ipa
*.xcuserstate
ios/.xcode.env.local
*.zip
# Android/IntelliJ
#
nodejs 16.19.0
rust 1.65.0
java adoptopenjdk-11.0.16.1+1-LTS
python 3.9.0
java zulu-11.58.23
ruby 2.7.6
python 3.11.3
ruby '>= 2.6.10'
gem 'cocoapods', '>= 1.11.3'
gem "fastlane"
gem "dotenv"
algoliasearch (1.27.5)
httpclient (~> 2.8, >= 2.8.3)
json (>= 1.5.1)
artifactory (3.0.15)
atomos (0.1.3)
aws-eventstream (1.2.0)
aws-partitions (1.768.0)
aws-sdk-core (3.173.0)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.5)
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.64.0)
aws-sdk-core (~> 3, >= 3.165.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.122.0)
aws-sdk-core (~> 3, >= 3.165.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.4)
aws-sigv4 (1.5.2)
aws-eventstream (~> 1, >= 1.0.2)
babosa (1.0.4)
claide (1.1.0)
cocoapods (1.12.1)
addressable (~> 2.8)
nap (>= 0.8, < 2.0)
netrc (~> 0.11)
cocoapods-try (1.2.0)
colored (1.2)
colored2 (3.1.2)
commander (4.6.0)
highline (~> 2.0.0)
concurrent-ruby (1.2.2)
declarative (0.0.20)
digest-crc (0.6.4)
rake (>= 12.0.0, < 14.0.0)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
dotenv (2.8.1)
emoji_regex (3.2.3)
escape (0.0.4)
ethon (0.16.0)
ffi (>= 1.15.0)
excon (0.99.0)
faraday (1.10.3)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0)
faraday-multipart (~> 1.0)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.0)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
faraday-retry (~> 1.0)
ruby2_keywords (>= 0.0.4)
faraday-cookie_jar (0.0.7)
faraday (>= 0.8.0)
http-cookie (~> 1.0.0)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
faraday_middleware (1.2.0)
faraday (~> 1.0)
fastimage (2.2.7)
fastlane (2.212.2)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.8, < 3.0.0)
artifactory (~> 3.0)
aws-sdk-s3 (~> 1.0)
babosa (>= 1.0.3, < 2.0.0)
bundler (>= 1.12.0, < 3.0.0)
colored
commander (~> 4.6)
dotenv (>= 2.1.1, < 3.0.0)
emoji_regex (>= 0.1, < 4.0)
excon (>= 0.71.0, < 1.0.0)
faraday (~> 1.0)
faraday-cookie_jar (~> 0.0.6)
faraday_middleware (~> 1.0)
fastimage (>= 2.1.0, < 3.0.0)
gh_inspector (>= 1.1.2, < 2.0.0)
google-apis-androidpublisher_v3 (~> 0.3)
google-apis-playcustomapp_v1 (~> 0.1)
google-cloud-storage (~> 1.31)
highline (~> 2.0)
json (< 3.0.0)
jwt (>= 2.1.0, < 3)
mini_magick (>= 4.9.4, < 5.0.0)
multipart-post (~> 2.0.0)
naturally (~> 2.2)
optparse (~> 0.1.1)
plist (>= 3.1.0, < 4.0.0)
rubyzip (>= 2.0.0, < 3.0.0)
security (= 0.1.3)
simctl (~> 1.6.3)
terminal-notifier (>= 2.0.0, < 3.0.0)
terminal-table (>= 1.4.5, < 2.0.0)
tty-screen (>= 0.6.3, < 1.0.0)
tty-spinner (>= 0.8.0, < 1.0.0)
word_wrap (~> 1.0.0)
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
ffi (1.15.5)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
google-apis-androidpublisher_v3 (0.42.0)
google-apis-core (>= 0.11.0, < 2.a)
google-apis-core (0.11.0)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.16.2, < 2.a)
httpclient (>= 2.8.1, < 3.a)
mini_mime (~> 1.0)
representable (~> 3.0)
retriable (>= 2.0, < 4.a)
rexml
webrick
google-apis-iamcredentials_v1 (0.17.0)
google-apis-core (>= 0.11.0, < 2.a)
google-apis-playcustomapp_v1 (0.13.0)
google-apis-core (>= 0.11.0, < 2.a)
google-apis-storage_v1 (0.19.0)
google-apis-core (>= 0.9.0, < 2.a)
google-cloud-core (1.6.0)
google-cloud-env (~> 1.0)
google-cloud-errors (~> 1.0)
google-cloud-env (1.6.0)
faraday (>= 0.17.3, < 3.0)
google-cloud-errors (1.3.1)
google-cloud-storage (1.44.0)
addressable (~> 2.8)
digest-crc (~> 0.4)
google-apis-iamcredentials_v1 (~> 0.1)
google-apis-storage_v1 (~> 0.19.0)
google-cloud-core (~> 1.6)
googleauth (>= 0.16.2, < 2.a)
mini_mime (~> 1.0)
googleauth (1.5.2)
faraday (>= 0.17.3, < 3.a)
jwt (>= 1.4, < 3.0)
memoist (~> 0.16)
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
signet (>= 0.16, < 2.a)
highline (2.0.3)
http-cookie (1.0.5)
domain_name (~> 0.5)
httpclient (2.8.3)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
jmespath (1.6.2)
json (2.6.3)
jwt (2.7.0)
memoist (0.16.2)
mini_magick (4.12.0)
mini_mime (1.1.2)
minitest (5.18.0)
molinillo (0.8.0)
multi_json (1.15.0)
multipart-post (2.0.0)
nanaimo (0.3.0)
nap (1.1.0)
naturally (2.2.1)
netrc (0.11.0)
optparse (0.1.1)
os (1.1.4)
plist (3.7.0)
public_suffix (4.0.7)
rake (13.0.6)
representable (3.2.0)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0)
retriable (3.1.2)
rexml (3.2.5)
rouge (2.0.7)
ruby-macho (2.5.1)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
security (0.1.3)
signet (0.17.0)
addressable (~> 2.8)
faraday (>= 0.17.5, < 3.a)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
simctl (1.6.10)
CFPropertyList
naturally
apple_id("too[email protected]") # Your Apple Developer Portal username
itc_team_id("119491519") # App Store Connect Team ID
team_id("F8NVT2G2L4") # Developer Portal Team ID
# For more information about the Appfile, see:
# https://docs.fastlane.tools/advanced/#appfile
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
XC_PROJECT="./ios/yoroi.xcodeproj"
XC_WORKSPACE="./ios/yoroi.xcworkspace"
PLIST="yoroi/Info.plist"
NIGHTLY_BUNDLE_ID="com.emurgo.yoroi-nightly"
NIGHTLY_APP_NAME="Yoroi Nightly"
default_platform(:ios)
platform :ios do
desc "Push a new beta build to TestFlight"
lane :ios_nightly do
update_app_identifier(
xcodeproj: XC_PROJECT, # Optional path to xcodeproj, will use the first .xcodeproj if not set
plist_path: PLIST, # Path to info plist file, relative to xcodeproj
app_identifier: NIGHTLY_BUNDLE_ID # The bundle identifier of your app
)
update_info_plist(
xcodeproj: XC_PROJECT,
plist_path: PLIST,
display_name: NIGHTLY_APP_NAME,
)
match(app_identifier: NIGHTLY_BUNDLE_ID, type: "appstore")
api_key = app_store_connect_api_key(
key_id: "PH9Z89M567",
issuer_id: "feff08c0-5259-4e9a-bdbe-26cdb046e1d5",
key_filepath: "~/AuthKey_PH9Z89M567.p8",
duration: 1200,
in_house: false
)
increment_build_number(xcodeproj: XC_PROJECT)
begin
gym(
scheme: "yoroi",
workspace: XC_WORKSPACE,
silent: true,
include_bitcode: false,
include_symbols: true,
clean: true,
xcargs: `-UseNewBuildSystem=YES`,
output_directory: "./ios",
output_name: "yoroi.ipa",
export_options: {
method: "app-store",
signingStyle: "automatic"
},
)
rescue => e
xcode_log_path = '~/Library/Logs/gym/yoroi-yoroi.log'
p "Xcode build failed -> #{xcode_log_path}"
sh "cat #{xcode_log_path}"
raise 'Xcode build failed.'
end
upload_to_testflight(api_key: api_key, app_identifier: "com.emurgo.yoroi-nightly")
end
end
git_url("[email protected]:Emurgo/yoroi-certs.git")
storage_mode("git")
type("appstore")
# app_identifier(["tools.fastlane.app", "tools.fastlane.app2"])
# username("u[email protected]") # Your Apple Developer Portal username
# For all available options run `fastlane match --help`
# Remove the # in the beginning of the line to enable the other options
# The docs are available on https://docs.fastlane.tools/actions/match
fastlane documentation
----
# Installation
Make sure you have the latest version of the Xcode command line tools installed:
```sh
xcode-select --install
```
For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane)
# Available Actions
## iOS
### ios ios_nightly
```sh
[bundle exec] fastlane ios ios_nightly
```
Push a new beta build to TestFlight
----
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools).
The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
#!/bin/bash
if [ -f $HOME/.cargo/env ]
then
source $HOME/.cargo/env
echo "Rustup is already installed"
else
# install rustup
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
# use 1.41.0 version.
rustup install 1.41.0
# cargo-lipo required only for ios build
if [ -z "$YOROI_ANDROID_BUILD" ]
then
rustup target add aarch64-apple-ios armv7-apple-ios armv7s-apple-ios x86_64-apple-ios i386-apple-ios
cargo install cargo-lipo
else
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
fi
if [[ -z "$BASH_ENV" ]]
then
echo "$BASH_ENV not set. Rust not added to $PATH"
else
echo 'export PATH=$HOME/.cargo/bin/:$PATH' >> $BASH_ENV
fi
export
cargo
fi
)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
# Get the development team id from the main project
dev_team_id = ""
project = installer.aggregate_targets[0].user_project
project.targets.each do |target|
target.build_configurations.each do |config|
puts "Set development team for target #{target.name} #{dev_team_id}"
if dev_team_id.empty? and !config.build_settings['DEVELOPMENT_TEAM'].nil?
dev_team_id = config.build_settings['DEVELOPMENT_TEAM']
end
end
end
# Reconfigure the pods, update deployment target and signing settings
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if target.respond_to?(:product_type) and target.product_type == 'com.apple.product-type.bundle'
config.build_settings['DEVELOPMENT_TEAM'] = dev_team_id
config.build_settings['CODE_SIGN_IDENTITY'] = 'Apple Distribution';
config.build_settings['CODE_SIGN_STYLE'] = 'Manual';
end if
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
end
end
# * https://github.com/facebook/react-native/issues/31941
installer.aggregate_targets.each do |aggregate_target|
aggregate_target.user_project.native_targets.each do |target|
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
ZXingObjC: fdbb269f25dd2032da343e06f10224d62f537bdb
PODFILE CHECKSUM: 87674b208d408b67fc1eaf05b1fc5029c3bb2e46
PODFILE CHECKSUM: f3b61639f9e1b091c34a953a73b4ba9cc08c468a
COCOAPODS: 1.12.1
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../../../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../../../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n";
shellScript = "set -e\n\nexport PACKAGE_DIR=\"apps/wallet-mobile\"\n\nWITH_ENVIRONMENT=\"../../../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n";
};
00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 451;
DEVELOPMENT_TEAM = F8NVT2G2L4;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = yoroi/Info.plist;
"$(SDKROOT)/usr/lib/swift",
"$(inherited)",
);
MARKETING_VERSION = 1.0;
MARKETING_VERSION = 4.10.2;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
"-lc++",
);
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_BUNDLE_IDENTIFIER = "com.emurgo.yoroi-nightly";
PRODUCT_NAME = yoroi;
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 451;
DEVELOPMENT_TEAM = F8NVT2G2L4;
INFOPLIST_FILE = yoroi/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(SDKROOT)/usr/lib/swift",
"$(inherited)",
);
MARKETING_VERSION = 1.0;
MARKETING_VERSION = 4.10.2;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
"-lc++",
);
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_BUNDLE_IDENTIFIER = "com.emurgo.yoroi-nightly";
PRODUCT_NAME = yoroi;
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO;
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
buildConfiguration = "Release">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>Yoroi</string>
<string>Yoroi Nightly</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<string>451</string>
<key>LSApplicationCategoryType</key>
<string></string>
<key>LSRequiresIPhoneOS</key>
</dict>
</dict>
</dict>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>The $(PRODUCT_NAME) uses the Bluetooth to connect to hardware wallets.</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>The $(PRODUCT_NAME) uses the Bluetooth to connect to hardware wallets.</string>
<key>NSCameraUsageDescription</key>
<string>The $(PRODUCT_NAME) uses your camera to read QR codes, this makes simpler to input big wallet addresses.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>The $(PRODUCT_NAME) uses your location along with your Bluetooth, this is required to integrate with some hardware wallets.</string>
<key>NSFaceIDUsageDescription</key>
<string>The $(PRODUCT_NAME) uses the Face ID to protect your wallet by authenticating using it.</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>The $(PRODUCT_NAME) uses your location along with your Bluetooth, this is required to integrate with some hardware wallets.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>The $(PRODUCT_NAME) uses your location along with your Bluetooth, this is required to integrate with some hardware wallets.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>The $(PRODUCT_NAME) uses your location along with your Bluetooth, this is required to integrate with some hardware wallets.</string>
<key>NSMicrophoneUsageDescription</key>
<string>The $(PRODUCT_NAME) uses the microphone so you can leverage voice commands.</string>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>The $(PRODUCT_NAME) uses the Bluetooth to connect to hardware wallets.</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>The $(PRODUCT_NAME) uses the Bluetooth to connect to hardware wallets.</string>
<key>NSFaceIDUsageDescription</key>
<string>The $(PRODUCT_NAME) uses the Face ID to protect your wallet by authenticating using it.</string>
<key>UIAppFonts</key>
<array>
<string>Rubik-Black.ttf</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>451</string>
</dict>
</plist>
#!/bin/bash
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# Bundle React Native app's code and image assets.
# This script is supposed to be invoked as part of Xcode build process
# and relies on environment variables (including PWD) set by Xcode
# Print commands before executing them (useful for troubleshooting)
set -x
DEST=$CONFIGURATION_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH
# Enables iOS devices to get the IP address of the machine running Metro
if [[ ! "$SKIP_BUNDLING_METRO_IP" && "$CONFIGURATION" = *Debug* && ! "$PLATFORM_NAME" == *simulator ]]; then
for num in 0 1 2 3 4 5 6 7 8; do
IP=$(ipconfig getifaddr en${num})
if [ ! -z "$IP" ]; then
break
fi
done
if [ -z "$IP" ]; then
IP=$(ifconfig | grep 'inet ' | grep -v ' 127.' | grep -v ' 169.254.' |cut -d\ -f2 | awk 'NR==1{print $1}')
fi
echo "$IP" > "$DEST/ip.txt"
fi
if [[ "$SKIP_BUNDLING" ]]; then
echo "SKIP_BUNDLING enabled; skipping."
exit 0;
fi
case "$CONFIGURATION" in
*Debug*)
if [[ "$PLATFORM_NAME" == *simulator ]]; then
if [[ "$FORCE_BUNDLING" ]]; then
echo "FORCE_BUNDLING enabled; continuing to bundle."
else
echo "Skipping bundling in Debug for the Simulator (since the packager bundles for you). Use the FORCE_BUNDLING flag to change this behavior."
exit 0;
fi
else
echo "Bundling for physical device. Use the SKIP_BUNDLING flag to change this behavior."
fi
DEV=true
;;
"")
echo "$0 must be invoked by Xcode"
exit 1
;;
*)
DEV=false
;;
esac
# The project should be located next to where react-native is installed
# in node_modules.
PROJECT_ROOT="$(pwd)/.."
echo "======== PROJECT_ROOT $PROJECT_ROOT"
# Path to react-native folder inside node_modules
REACT_NATIVE_DIR="$(cd ../../../node_modules/react-native && pwd)"
echo "======== REACT_NATIVE_DIR $REACT_NATIVE_DIR"
cd "$PROJECT_ROOT" || exit
# Define entry file
if [[ "$ENTRY_FILE" ]]; then
# Use ENTRY_FILE defined by user
:
elif [[ -s "index.ios.js" ]]; then
ENTRY_FILE=${1:-index.ios.js}
else
ENTRY_FILE=${1:-index.js}
fi
# check and assign NODE_BINARY env
# shellcheck source=/dev/null
source "$REACT_NATIVE_DIR/scripts/node-binary.sh"
# If hermes-engine is in the Podfile.lock, it means that Hermes is a dependency of the project
# and it is enabled. If not, it means that hermes is disabled.
HERMES_ENABLED=$(grep hermes-engine $PODS_PODFILE_DIR_PATH/Podfile.lock)
# If hermes-engine is not in the Podfile.lock, it means that the app is not using Hermes.
# Setting USE_HERMES is no the only way to set whether the app can use hermes or not: users
# can also modify manually the Podfile.
if [[ -z "$HERMES_ENABLED" ]]; then
USE_HERMES=false
fi
HERMES_ENGINE_PATH="$PODS_ROOT/hermes-engine"
[ -z "$HERMES_CLI_PATH" ] && HERMES_CLI_PATH="$HERMES_ENGINE_PATH/destroot/bin/hermesc"
# Hermes is enabled in new projects by default, so we cannot assume that USE_HERMES=1 is set as an envvar.
# If hermes-engine is found in Pods, we can assume Hermes has not been disabled.
# If hermesc is not available and USE_HERMES is either unset or true, show error.
if [[ ! -z "$HERMES_ENABLED" && -f "$HERMES_ENGINE_PATH" && ! -f "$HERMES_CLI_PATH" ]]; then
echo "error: Hermes is enabled but the hermesc binary could not be found at ${HERMES_CLI_PATH}." \
"Perhaps you need to run 'bundle exec pod install' or otherwise " \
"point the HERMES_CLI_PATH variable to your custom location." >&2
exit 2
fi
[ -z "$NODE_ARGS" ] && export NODE_ARGS=""
[ -z "$CLI_PATH" ] && export CLI_PATH="$REACT_NATIVE_DIR/cli.js"
[ -z "$BUNDLE_COMMAND" ] && BUNDLE_COMMAND="bundle"
[ -z "$COMPOSE_SOURCEMAP_PATH" ] && COMPOSE_SOURCEMAP_PATH="$REACT_NATIVE_DIR/scripts/compose-source-maps.js"
if [[ -z "$BUNDLE_CONFIG" ]]; then
CONFIG_ARG=""
else
CONFIG_ARG="--config $BUNDLE_CONFIG"
fi
BUNDLE_FILE="$CONFIGURATION_BUILD_DIR/main.jsbundle"
EXTRA_ARGS=
case "$PLATFORM_NAME" in
"macosx")
BUNDLE_PLATFORM="macos"
;;
*)
BUNDLE_PLATFORM="ios"
;;
esac
if [ "${IS_MACCATALYST}" = "YES" ]; then
BUNDLE_PLATFORM="ios"
fi
EMIT_SOURCEMAP=
if [[ ! -z "$SOURCEMAP_FILE" ]]; then
EMIT_SOURCEMAP=true
fi
PACKAGER_SOURCEMAP_FILE=
if [[ $EMIT_SOURCEMAP == true ]]; then
if [[ $USE_HERMES != false ]]; then
PACKAGER_SOURCEMAP_FILE="$CONFIGURATION_BUILD_DIR/$(basename $SOURCEMAP_FILE)"
else
PACKAGER_SOURCEMAP_FILE="$SOURCEMAP_FILE"
fi
EXTRA_ARGS="$EXTRA_ARGS --sourcemap-output $PACKAGER_SOURCEMAP_FILE"
fi
# Hermes doesn't require JS minification.
if [[ $USE_HERMES != false && $DEV == false ]]; then
EXTRA_ARGS="$EXTRA_ARGS --minify false"
fi
"$NODE_BINARY" $NODE_ARGS "$CLI_PATH" $BUNDLE_COMMAND \
$CONFIG_ARG \
--entry-file "$ENTRY_FILE" \
--platform "$BUNDLE_PLATFORM" \
--dev $DEV \
--reset-cache \
--bundle-output "$BUNDLE_FILE" \
--assets-dest "$DEST" \
$EXTRA_ARGS \
$EXTRA_PACKAGER_ARGS
if [[ $USE_HERMES == false ]]; then
cp "$BUNDLE_FILE" "$DEST/"
BUNDLE_FILE="$DEST/main.jsbundle"
else
EXTRA_COMPILER_ARGS=
if [[ $DEV == true ]]; then
EXTRA_COMPILER_ARGS=-Og
else
EXTRA_COMPILER_ARGS=-O
fi
if [[ $EMIT_SOURCEMAP == true ]]; then
EXTRA_COMPILER_ARGS="$EXTRA_COMPILER_ARGS -output-source-map"
fi
"$HERMES_CLI_PATH" -emit-binary $EXTRA_COMPILER_ARGS -out "$DEST/main.jsbundle" "$BUNDLE_FILE"
if [[ $EMIT_SOURCEMAP == true ]]; then
HBC_SOURCEMAP_FILE="$DEST/main.jsbundle.map"
"$NODE_BINARY" "$COMPOSE_SOURCEMAP_PATH" "$PACKAGER_SOURCEMAP_FILE" "$HBC_SOURCEMAP_FILE" -o "$SOURCEMAP_FILE"
rm "$HBC_SOURCEMAP_FILE"
rm "$PACKAGER_SOURCEMAP_FILE"
fi
BUNDLE_FILE="$DEST/main.jsbundle"
fi
if [[ $DEV != true && ! -f "$BUNDLE_FILE" ]]; then
echo "error: File $BUNDLE_FILE does not exist. This must be a bug with React Native, please report it here: https://github.com/facebook/react-native/issues" >&2
exit 2
fi
"index": 13930
}
}
]
]
\ No newline at end of file
"defaultMessage": "!!!Fee",
"file": "src/TxHistory/TxHistoryList/TxHistoryListItem.tsx",
"start": {
"line": 160,
"line": 161,
"column": 7,
"index": 5501
"index": 5575
},
"end": {
"line": 163,
"line": 164,
"column": 3,
"index": 5590
"index": 5664
}
},
{
"id": "components.txhistory.txhistorylistitem.transactionTypeSent",
"defaultMessage": "!!!ADA sent",
"file": "src/TxHistory/TxHistoryList/TxHistoryListItem.tsx",
"start": {
"line": 164,
"line": 165,
"column": 23,
"index": 5615
"index": 5689
},
"end": {
"line": 167,
"line": 168,
"column": 3,
"index": 5725
"index": 5799
}
},
{
"id": "components.txhistory.txhistorylistitem.transactionTypeReceived",
"defaultMessage": "!!!ADA received",
"file": "src/TxHistory/TxHistoryList/TxHistoryListItem.tsx",
"start": {
"line": 168,
"line": 169,
"column": 27,
"index": 5754
"index": 5828
},
"end": {
"line": 171,
"line": 172,
"column": 3,
"index": 5872
"index": 5946
}
},
{
"id": "components.txhistory.txhistorylistitem.transactionTypeSelf",
"defaultMessage": "!!!Intrawallet",
"file": "src/TxHistory/TxHistoryList/TxHistoryListItem.tsx",
"start": {
"line": 172,
"line": 173,
"column": 23,
"index": 5897
"index": 5971
},
"end": {
"line": 175,
"line": 176,
"column": 3,
"index": 6010
"index": 6084
}
},
{
"id": "components.txhistory.txhistorylistitem.transactionTypeMulti",
"defaultMessage": "!!!Multiparty",
"file": "src/TxHistory/TxHistoryList/TxHistoryListItem.tsx",
"start": {
"line": 176,
"line": 177,
"column": 24,
"index": 6036
"index": 6110
},
"end": {
"line": 179,
"line": 180,
"column": 3,
"index": 6149
"index": 6223
}
},
{
"defaultMessage": "!!!{cnt} assets",
"file": "src/TxHistory/TxHistoryList/TxHistoryListItem.tsx",
"start": {
"line": 180,
"line": 181,
"column": 10,
"index": 6161
"index": 6235
},
"end": {
"line": 184,
"line": 185,
"column": 3,
"index": 6313
"index": 6387
}
}
]
\ No newline at end of file
Added ToExpr instances Moved ImpTest to cardano-ledger-conway:testlib Moved ConwayEpochs to cardano-ledger-conway:test
## Issue ADP-3157 ## Summary This PR replaces the use of `Cardano.Wallet.Primitive.Types.Coin` with `Cardano.Ledger.Coin` in the type signature of `balanceTransaction`.