Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
a746d3d
Merge pull request #53 from gruntsoftware/release/v4.4.1
kcw-grunt Mar 30, 2025
ba8ea45
Revert "Updated the APIManager"
kcw-grunt Mar 31, 2025
638ce3a
Reverted the Kotlin APIManager.
kcw-grunt Mar 31, 2025
5344a96
Add version and code to welcome screen
kcw-grunt Mar 31, 2025
ebc3bb9
reset padding
kcw-grunt Mar 31, 2025
03c68b8
Merge pull request #56 from gruntsoftware/feature/add-version-issue-108
kcw-grunt Apr 1, 2025
c770f01
Revert "Updated the APIManager"
kcw-grunt Mar 31, 2025
f8c1bd5
Reverted the Kotlin APIManager.
kcw-grunt Mar 31, 2025
ff58b57
fix: fix crash when FragmentSignal dismissed
andhikayuana Apr 4, 2025
d64ea93
fix: fix sync after wipe
andhikayuana Apr 7, 2025
277f387
Merge branch 'hotfix/api-manager-fix' of https://github.com/brainwall…
kcw-grunt Apr 7, 2025
9a8a20f
fix: fix wrong lifecycle to trigger callback at FragmentSignal
andhikayuana Apr 7, 2025
832fa36
Update issue templates
kcw-grunt Apr 8, 2025
b294cd6
updated core changes
kcw-grunt Apr 8, 2025
4ed8af3
Merge pull request #57 from gruntsoftware/hotfix/api-manager-fix
kcw-grunt Apr 8, 2025
089995a
Rename .java to .kt
andhikayuana Apr 11, 2025
7e85987
chore: refactor BRApiManager & APIClient
andhikayuana Apr 11, 2025
0aa41e7
chore: remove unused part at APIClient
andhikayuana Apr 14, 2025
0cc29cb
feat: wip new peer discovery
andhikayuana Apr 14, 2025
54d2d9e
feat: implement selected peer ip address from cache (fetched from API)
andhikayuana Apr 14, 2025
c6923b1
feat: implement selected peer ip address from cache (fetched from API)
andhikayuana Apr 14, 2025
ef4e6d2
feat: filter out peers with NODE_NETWORK, NODE_BLOOM
andhikayuana Apr 15, 2025
2336939
fix: race condition when clear shared prefs values after wipeAll
andhikayuana Apr 16, 2025
51a4d9a
Merge pull request #62 from gruntsoftware/hotfix/prefs-race-condition
kcw-grunt Apr 16, 2025
62afb9d
Merge pull request #61 from gruntsoftware/feat/new-peer-discovery
kcw-grunt Apr 16, 2025
391e319
Updating the core library
kcw-grunt Apr 16, 2025
836b6f0
Chore/revert pre peer discovery (Android) (#69)
andhikayuana Apr 25, 2025
3caa1a7
feat: remove unused activity (ImportActivity) at AndroidManifest.xml …
andhikayuana Apr 29, 2025
a324444
fix: fix crash IllegalStateException: cannot make a new request becau…
andhikayuana May 2, 2025
1f9c5d0
code bump
kcw-grunt May 2, 2025
7ca17d3
Feat/move tx fee (#74)
andhikayuana May 5, 2025
e7fb2b7
fix: fix dismiss allow state loss (#76)
andhikayuana May 7, 2025
3d8ef98
fix: fix typo at strings.xml (#75)
andhikayuana May 7, 2025
25be1a8
feat: new UI for receive and topup flow (moonpay integration) (#72)
andhikayuana May 12, 2025
18eda46
version and code bump
kcw-grunt May 12, 2025
dbb6a5f
Added support url (#81)
kcw-grunt May 19, 2025
c82a5e3
version and code bump
kcw-grunt May 19, 2025
2981ec6
Revert from eda0f532 & cherry pick (#86)
andhikayuana May 25, 2025
c161fed
build bump
kcw-grunt May 25, 2025
63d7494
chore: open bread activity first then open moonpay widget (#88)
andhikayuana May 26, 2025
f09eb28
Adjustment for circleci (#89)
andhikayuana May 29, 2025
47c69cd
fix: android: Footer version label is obfuscated (#92)
andhikayuana May 29, 2025
a9c4a63
fix: You saved it right screen reset button covers words (#93)
andhikayuana May 29, 2025
d8f08ad
tiny resizing (#94)
kcw-grunt May 29, 2025
ef93585
code and version bump
kcw-grunt May 29, 2025
174d612
change break (#97)
kcw-grunt May 30, 2025
a4521d7
build code number
andhikayuana May 31, 2025
6fec1e2
fix: [#137] fix: Reset fiat options in Buy / Receive modal (#99)
andhikayuana Jun 2, 2025
c8fdf8d
Chore/update device data (#100)
kcw-grunt Jun 2, 2025
a73961c
Merge branch 'main' into release/v4.5.5
kcw-grunt Jun 3, 2025
2d6e177
Update build.gradle.kts
kcw-grunt Jun 3, 2025
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
139 changes: 121 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,60 @@
version: 2.1

orbs:
android: circleci/android@3.0.2
android: circleci/android@3.1.0
ruby: circleci/ruby@2.5.3

# Define reusable commands
commands:
setup_environment:
description: "Sets up the basic environment for all jobs (checkout, credentials, submodules)"
steps:
- checkout
- run:
name: "Setup environment..."
command: "echo Setting up environment for brainwallet-android!"
- run:
name: "Create google-services.json from env"
command: |
mkdir -p app
echo "$GOOGLE_SERVICES_JSON" | base64 --decode > app/google-services.json
ls -la app/google-services.json
- run:
name: "create service-data.json from env"
command: |
mkdir -p app/src/main/assets
echo "$SERVICE_DATA_JSON" | base64 --decode > app/src/main/assets/service-data.json
ls -la app/src/main/assets/service-data.json
- run:
name: "Create keystore files from env"
command: |
echo "$DEBUG_STORE_FILE" | base64 --decode > debug.keystore
echo "$RELEASE_STORE_FILE" | base64 --decode > release.keystore
ls -la *.keystore
- run:
name: "Create local.properties file"
command: |
cat > local.properties \<< EOL
#adjust with your location
DEBUG_STORE_FILE=${CIRCLE_WORKING_DIRECTORY}/debug.keystore
DEBUG_STORE_PASSWORD=${DEBUG_STORE_PASSWORD}
DEBUG_KEY_ALIAS=${DEBUG_KEY_ALIAS}
DEBUG_KEY_PASSWORD=${DEBUG_KEY_PASSWORD}

#adjust with your location
RELEASE_STORE_FILE=${CIRCLE_WORKING_DIRECTORY}/release.keystore
RELEASE_STORE_PASSWORD=${RELEASE_STORE_PASSWORD}
RELEASE_KEY_ALIAS=${RELEASE_KEY_ALIAS}
RELEASE_KEY_PASSWORD=${RELEASE_KEY_PASSWORD}

# screengrab paperkey
SCREENGRAB_PAPERKEY=${SCREENGRAB_PAPERKEY}
EOL
ls && cat local.properties
- run:
name: "Initialize submodule"
command: "git submodule init && git submodule update --init --recursive"
- android/restore_gradle_cache

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
Expand All @@ -14,23 +67,7 @@ jobs:
resource_class: large
tag: 2024.07.1-ndk
steps:
- checkout
- run:
name: "brainwallet-android unit test setup..."
command: "echo Building tests for brainwallet-android! && ls"
- run:
name: "Default for gradle.properties"
command: "echo \"RELEASE_STORE_FILE=/\nRELEASE_STORE_PASSWORD=\nRELEASE_KEY_ALIAS=\nRELEASE_KEY_PASSWORD=\nandroid.useAndroidX=true\nandroid.enableJetifier=true\" >> gradle.properties && ls && cat gradle.properties"
- run:
name: "Initialize submodule"
command: "git submodule init && git submodule update --init --recursive"
- run:
name: "Export google-services.json to env"
command: echo 'export $GOOGLE_SERVICES_JSON="$GOOGLE_SERVICES_JSON"' >> $BASH_ENV
- run:
name: "decode $GOOGLE_SERVICES_JSON to google-services.json"
command: echo "$GOOGLE_SERVICES_JSON" | base64 --decode > app/google-services.json
- android/restore_gradle_cache
- setup_environment
- run:
name: "Execute Unit Test"
command: ./gradlew testBrainwalletDebugUnitTest
Expand All @@ -46,10 +83,76 @@ jobs:
- store_artifacts:
path: ~/test-results/junit

screengrab:
executor:
name: android/android_machine
resource_class: large
tag: default
steps:
- setup_environment
- ruby/install:
version: '3.2.0'
- ruby/install-deps
- run:
name: "Install fastlane"
command: |
gem install bundler
bundle install
- android/create_avd:
avd_name: bw_avd
install: true
system_image: system-images;android-34;google_apis;x86_64
additional_args: '-d "pixel_7_pro"'
- android/start_emulator:
avd_name: bw_avd
no_window: true
memory: 4096
delay_adb: true
run_logcat: true
# additional_args: "-skin 1080x1920 -memory 2048"
post_emulator_launch_assemble_command: |
# bundle exec fastlane android build_and_screengrab
echo "skipping assemble command, as we only need the emulator running for screengrab"
- run:
name: "Wait for emulator to boot and set PIN"
command: |
echo "Waiting for emulator to boot..."
timeout 300 sh -c 'until adb shell getprop sys.boot_completed | grep -m 1 "1"; do sleep 5; done'
echo "Emulator is ready!"
adb shell svc power stayon true
adb shell locksettings set-pin 123456
adb shell input keyevent 82
sleep 5
- run:
name: "Run Screengrab"
command: |
bundle exec fastlane android build_and_screengrab
- run:
name: "List fastlane android contents"
command: ls -R fastlane/android/
- android/save_gradle_cache
- store_artifacts:
path: fastlane/metadata/android/
destination: android-screenshots

# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows:
test-and-build:
jobs:
- unit-test
# - screengrab:
# requires:
# - unit-test

# Daily scheduled screengrab workflow
# daily-screengrab:
# triggers:
# - schedule:
# cron: "0 0 * * *" # Run at midnight UTC every day
# filters:
# branches:
# only:
# - develop # Adjust to your main branch name
# jobs:
# - screengrab
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ GEM
PLATFORMS
arm64-darwin-23
arm64-darwin-24
x86-linux
x86_64-linux

DEPENDENCIES
fastlane
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ android {
applicationId = "ltd.grunt.brainwallet"
minSdk = 29
targetSdk = 34
versionCode = 202505261
versionName = "v4.5.4"
versionCode = 202506031
versionName = "v4.5.5"

multiDexEnabled = true
base.archivesName.set("${defaultConfig.versionName}(${defaultConfig.versionCode})")
Expand Down
Loading