Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: 4.24.0-rc.2 #2928

Merged
merged 42 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
88d1633
Fastlane deploy test
Nov 19, 2023
3b68e49
Fastlane deploy test (#2906)
crypto-titan Nov 19, 2023
10d0d6b
chore(release): nightly
Nov 19, 2023
0425e18
Update nightly.yml
crypto-titan Nov 19, 2023
c4e2540
chore(release): nightly
Nov 19, 2023
5c5d1b7
Update nightly.yml
crypto-titan Nov 19, 2023
901d6f6
chore(release): nightly
Nov 19, 2023
3dd8941
Update build.gradle
crypto-titan Nov 19, 2023
a7d8994
chore(release): nightly
Nov 19, 2023
8d4abd6
Update build.gradle
crypto-titan Nov 20, 2023
09cc21b
chore(release): nightly
Nov 20, 2023
a12a677
Update build.gradle
crypto-titan Nov 20, 2023
84c78d3
chore(release): nightly
Nov 20, 2023
c7b7ac9
Release/test ci version bump (#2907)
crypto-titan Nov 20, 2023
7173f80
chore: upgrade yarn (#2910)
banklesss Nov 21, 2023
3c34a1d
fix(swap): Fix order submitted and order cancelled event tracking (#2…
michaeljscript Nov 21, 2023
d709d45
fix(swap): Prevent page viewed event from accidentally firing
michaeljscript Nov 21, 2023
8cab9ba
Add comment
michaeljscript Nov 21, 2023
668ef24
fix(swap): Prevent page viewed event from accidentally firing (#2913)
stackchain Nov 21, 2023
ccd32e4
chore: cocoapods bump
stackchain Nov 21, 2023
683323c
Remove Appium tests from app folder (#2917)
rahulnr7 Nov 23, 2023
42d3cea
fix: update local theme colors (#2914)
SorinC6 Nov 24, 2023
18b4601
feature(links): new links package (#2911)
stackchain Nov 27, 2023
4156f37
feature(scan): interpret crypto links (#2916)
stackchain Nov 27, 2023
d0fae47
fix: Add multiline text to pool selection (#2924)
jorbuedo Nov 30, 2023
ce5ca23
fix: price label for completed orders (#2925)
jorbuedo Nov 30, 2023
b547c11
chore: New Crowdin updates (#2922)
vsubhuman Nov 30, 2023
a175b17
fix: Don't show invalid date (#2926)
jorbuedo Dec 1, 2023
57e5ef3
fix: Hide asset in wallet explanation if none are in wallet (#2927)
jorbuedo Dec 1, 2023
eb57171
feature(claim): cip99 (#2920)
stackchain Dec 3, 2023
45b5398
chore: New Crowdin updates (#2929)
vsubhuman Dec 4, 2023
d17ca2e
fix: exchange track order and other bugs (#2930)
jorbuedo Dec 5, 2023
9df6923
fix: add SafeAreaView for claim modal (#2932)
SorinC6 Dec 6, 2023
67721b9
fix: hide qr when its a read-only wallet (#2933)
banklesss Dec 7, 2023
ef311c5
fix: open order asset labels (#2934)
jorbuedo Dec 7, 2023
464e154
fix: keyboard avoiding android send screen (#2935)
banklesss Dec 7, 2023
698b83f
chore: bump version 4.24.0-rc.0 builds
stackchain Dec 3, 2023
7601dce
chore(release): nightly
Dec 3, 2023
041e1cb
chore(release): nightly
Dec 7, 2023
eca6233
chore(release): nightly
Dec 7, 2023
ae8e471
chore: set only ci to bump build
stackchain Dec 8, 2023
c8132cc
chore(release): nightly
Dec 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131 changes: 131 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
on:
push:
branches:
- "release/**"

jobs:
build:
runs-on: macos-13
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Install Android Tools
run: |
which sdkmanager
sdkmanager "tools"
sdkmanager --update
sdkmanager "build-tools;33.0.0" "platform-tools" "platforms;android-33" "tools"
echo "y" | sdkmanager --licenses
sdkmanager --install "ndk;23.1.7779620"
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: ruby/setup-ruby@v1
with:
working-directory: 'apps/wallet-mobile'
ruby-version: '3.1.0'
bundler-cache: true

- uses: maierj/[email protected]
with:
subdirectory: 'apps/wallet-mobile'
lane: 'bump_build_android'

- uses: maierj/[email protected]
with:
subdirectory: 'apps/wallet-mobile'
lane: 'bump_build_ios'


- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: ci-bot
author_email: [email protected]
message: 'chore(release): nightly'
add: '.'

- name: Install deps for ASDF
run: brew install coreutils curl git

- name: Install ASDF
run: brew install asdf

- name: Install ASDF packages
run: |
echo -e "\n. $(brew --prefix asdf)/libexec/asdf.sh" >> $HOME/.zshrc
echo -e "\n. $(brew --prefix asdf)/libexec/asdf.sh" >> $HOME/.bashrc
. /usr/local/opt/asdf/libexec/asdf.sh
cd apps/wallet-mobile
asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf plugin-add java https://github.com/halcyon/asdf-java.git
asdf plugin-add rust https://github.com/code-lever/asdf-rust.git
asdf plugin-add python
asdf install
asdf install python 2.7.13
rustup default 1.69
rustup target add aarch64-apple-darwin aarch64-apple-ios aarch64-apple-ios-sim aarch64-linux-android armv7-linux-androideabi i686-linux-android wasm32-unknown-unknown x86_64-apple-ios x86_64-linux-android
bash -c -l "rustup default 1.69"
bash -l -c "rustup target add aarch64-apple-darwin aarch64-apple-ios aarch64-apple-ios-sim aarch64-linux-android armv7-linux-androideabi i686-linux-android wasm32-unknown-unknown x86_64-apple-ios x86_64-linux-android"
gem install cocoapods fastlane
ruby --version
python --version
node --version
rustc --version
java --version
cargo install --version 3.1.1 cargo-lipo
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Yarn & Pod Install
run: |
. /usr/local/opt/asdf/libexec/asdf.sh
yarn install
cd apps/wallet-mobile
yarn install
cd ios
pod install
cd ..
yarn workspaces run build
- name: Copy Apple Signing Key
run: |
mkdir -p $HOME/.yoroi/ios
echo ${{secrets.APP_STORE_KEY}} | base64 -d > $HOME/.yoroi/ios/AuthKey_PH9Z89M567.p8
chmod 600 $HOME/.yoroi/ios/AuthKey_PH9Z89M567.p8

- name: Copy Android Keys
run: |
mkdir -p $HOME/.yoroi/android
echo ${{secrets.ANDROID_NIGHTLY_KEYSTORE}} | base64 -d > $HOME/.yoroi/android/nightly.keystore
chmod 600 $HOME/.yoroi/android/nightly.keystore
echo ${{secrets.ANDROID_KEYSTORE_PASS}} > $HOME/.yoroi/android/nightly.pass
echo ${{secrets.ANDROID_SERVICE_ACCOUNT_JSON}} | base64 -d > $HOME/.yoroi/android/service-account.json

- name: Copy Yoroi Certs SSH Key
run: |
mkdir -p $HOME/.ssh
echo ${{secrets.CERT_SSH_KEY}} | base64 -d > $HOME/.ssh/id_rsa
chmod 600 $HOME/.ssh/id_rsa

- name: Fastlane Deploy iOS and Android Nightly
run: |
. /usr/local/opt/asdf/libexec/asdf.sh
cd apps/wallet-mobile
export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
export ANDROID_HOME=$HOME/Library/Android/sdk
export JAVA_HOME=$(/usr/libexec/java_home -v 11)
export PATH=$JAVA_HOME/bin:$PATH
export ANDROID_KEYSTORE_PASS="${{secrets.ANDROID_KEYSTORE_PASS}}"
export ANDROID_KEY_PASS="${{secrets.ANDROID_KEY_PASS}}"
export CI_KEYCHAIN_NAME="${{secrets.CI_KEYCHAIN_NAME}}"
export CI_KEYCHAIN_PASSWORD="${{secrets.CI_KEYCHAIN_PASSWORD}}"
export FASTLANE_PASSWORD="${{secrets.FASTLANE_PASSWORD}}"
export MATCH_PASSWORD="${{secrets.MATCH_PASSWORD}}"
fastlane ios release --env nightly
asdf global python 2.7.13
fastlane android release --env nightly

4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
nodejs 16.19.0
rust 1.69.0
java adoptopenjdk-11.0.18+10
ruby 2.7.6
python 3.11.3
ruby 3.2.2
python 3.11.3
7 changes: 5 additions & 2 deletions apps/wallet-mobile/.bundle/config
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
BUNDLE_PATH: "vendor/bundle"
BUNDLE_FORCE_RUBY_PLATFORM: 1
---
BUNDLE_PATH: "/Users/runner/work/yoroi/yoroi/apps/wallet-mobile/vendor/bundle"
BUNDLE_FORCE_RUBY_PLATFORM: "1"
BUNDLE_DEPLOYMENT: "true"
BUNDLE_JOBS: "4"
3 changes: 3 additions & 0 deletions apps/wallet-mobile/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,6 @@ coverage/

# Dependency cruiser
dependency-graph.svg

# Scripts
test-codes/
13 changes: 11 additions & 2 deletions apps/wallet-mobile/.storybook/storybook.requires.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apps/wallet-mobile/.tool-versions
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
nodejs 16.19.0
rust 1.69.0
java adoptopenjdk-11.0.18+10
ruby 2.7.6
python 3.11.3
ruby 3.2.2
python 3.11.3
4 changes: 2 additions & 2 deletions apps/wallet-mobile/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ android {
applicationId "com.emurgo"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 540
versionName "4.23.0"
versionCode 607
versionName "4.24.0"
testBuildType System.getProperty('testBuildType', 'debug')
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
Expand Down
44 changes: 40 additions & 4 deletions apps/wallet-mobile/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,16 @@ platform :ios do
environment = lane_context[SharedValues::ENVIRONMENT]
scheme = environment == "nightly" ? "nightly" : "yoroi"

match(app_identifier: ENV["APP_STORE_BUNDLE_ID"], type: "appstore")
if is_ci
create_keychain(
name: ENV["CI_KEYCHAIN_NAME"],
password: ENV["CI_KEYCHAIN_PASSWORD"],
default_keychain: true,
unlock: true,
timeout: 3600,
lock_when_sleeps: false
)
end

api_key = app_store_connect_api_key(
key_id: ENV["APP_STORE_KEY_ID"],
Expand All @@ -32,7 +41,23 @@ platform :ios do
duration: 1200,
in_house: false
)


match(app_identifier: ENV["APP_STORE_BUNDLE_ID"], type: "appstore", api_key: api_key, keychain_name: ENV["CI_KEYCHAIN_NAME"], keychain_password: ENV["CI_KEYCHAIN_PASSWORD"])

set_version_ios

if is_ci
bump_build_ios
end

update_code_signing_settings(
use_automatic_signing: false,
path: XC_PROJECT,
code_sign_identity: "iPhone Distribution",
bundle_identifier: ENV["APP_STORE_BUNDLE_ID"],
profile_name: "match AppStore #{ENV["APP_STORE_BUNDLE_ID"]}"
)

begin
gym(
scheme: scheme,
Expand All @@ -44,18 +69,23 @@ platform :ios do
xcargs: `-UseNewBuildSystem=YES`,
output_directory: "./ios",
output_name: "yoroi.ipa",
sdk: "iphoneos",
export_options: {
method: "app-store",
signingStyle: "automatic"
signingStyle: "manual",
provisioningProfiles: {
ENV["APP_STORE_BUNDLE_ID"] => "match AppStore #{ENV["APP_STORE_BUNDLE_ID"]}"
}
},
)
rescue => e
xcode_log_path = '~/Library/Logs/gym/yoroi-yoroi.log'
xcode_log_path = "~/Library/Logs/gym/#{scheme}-#{scheme}.log"
p "iOS build failed -> #{xcode_log_path}"
sh "cat #{xcode_log_path}"

raise 'iOS build failed.'
end
enable_automatic_code_signing(path: XC_PROJECT)

if ENV['DRY_RUN'] == 'true'
UI.message("DRY RUN: Skipping upload to App Store")
Expand All @@ -77,6 +107,12 @@ platform :android do

gradle(task: "clean", project_dir: 'android/')

set_version_android

if is_ci
bump_build_android
end

gradle(
task: "assemble" + build_type,
build_type: "Release",
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -945,4 +945,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 4045625f1556b4d232075df8dbd22524a7010c3f

COCOAPODS: 1.12.1
COCOAPODS: 1.14.3
4 changes: 2 additions & 2 deletions apps/wallet-mobile/ios/nightly.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>4.23.0</string>
<string>4.24.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>483</string>
<string>496</string>
<key>LSApplicationCategoryType</key>
<string></string>
<key>LSRequiresIPhoneOS</key>
Expand Down
Loading
Loading