Commit Graph

2539 Commits

Author SHA1 Message Date
turnoffthiscomputer
0d853a2422 App/deeplink callback (#789)
* add deepllinkCallback support

* bump package version

* yarn nice

* fix background countdown

* cast the URL to prevent malicious code introduction
2025-07-28 10:20:57 +02:00
jayssj11
62883dc075 fix: bump app version to 2.6.3 for iOS release 2025-07-28 07:09:06 +00:00
jayssj11
95e8f89504 fix: increment iOS build number 2025-07-28 06:20:07 +00:00
jayssj11
7d5545bc91 Feat/mobile deployment automation (#759)
* feat: add version management system with build number tracking

- Add version.json to track iOS/Android build numbers separately
- Create version.cjs script for build number management
- Add Fastlane version_manager.rb helper
- Keep npm version for semver, version.json for build tracking

* feat: integrate version.json with Fastlane deployment process

## What Changed
- Updated iOS and Android Fastlane lanes to use version.json for build number management
- Added automatic build number increment on deployment
- Added deployment timestamp tracking

## How It Works

### iOS Deployment
1. Reads current build number from version.json
2. Increments iOS build number (e.g., 148 → 149)
3. Updates Xcode project with new build number via increment_build_number
4. Proceeds with TestFlight deployment
5. Updates lastDeployed timestamp on successful upload

### Android Deployment
1. Reads current build number from version.json
2. Increments Android build number (e.g., 82 → 83)
3. Updates build.gradle with new version code via increment_version_code
4. Proceeds with Play Store deployment
5. Updates lastDeployed timestamp on successful upload

## Why This Change
- Eliminates manual version/build number entry
- Prevents version conflicts between deployments
- Provides single source of truth for build numbers
- Enables automatic deployments without human intervention
- Tracks deployment history with timestamps

## Dependencies
- Requires version.json file (already created in previous commit)
- Uses existing Fastlane plugins:
  - increment_build_number (iOS - built-in)
  - increment_version_code (Android - from plugin)
- Version numbers still managed by npm version command

* feat: enhance deploy confirmation with version.json info

* fix: use ENV variable directly in increment_build_number to avoid secret masking

* fix: correct xcodeproj path for GitHub Actions workflow

* feat: add test mode to workflow for safe testing

- Skip store uploads when test_mode is true
- Test version bumps and builds without deployment
- Prevent accidental pushes to TestFlight/Play Store

* fix: use gradle_file_path instead of gradle_file for increment_version_code

* fix: use gsub to remove ../ prefix for CI compatibility

* chore: remove accidentally committed files

- Remove .cursor/mcp.json
- Remove .cursorignore
- Remove deployment-automation-summary.md
- Remove deployment-meeting-questions.md
- Remove pipeline.md

* feat: auto-commit version.json after successful deployment

- Commits version.json changes back to repository
- Only runs when test_mode is false
- Uses [skip ci] to prevent infinite loops
- Checks for actual changes before committing

* feat : update package.json in build step using npm version

* feat: add comprehensive caching to mobile deployment workflow

- Add caching for Yarn dependencies, Ruby gems, CocoaPods, Gradle, and Android NDK
- Implement cache versioning strategy for easy cache invalidation
- Fix cache order: caches now restored after checkout but before dependency installation
- Update mobile-setup action to skip installs when dependencies are cached
- Add cache size monitoring to track usage against GitHub's 10GB limit
- Fix Slack notification bug: skip notifications in test_mode
- Add detailed logging for package.json version updates (show from/to versions)

Expected performance improvement: ~50% faster builds (from ~15min to ~7-10min)

* fix: move bundler config after Ruby setup in mobile-setup action

* fix: rename cache env vars to avoid Yarn conflicts

Yarn was interpreting YARN_CACHE_VERSION as its own config setting.
Prefixed all cache version env vars with GH_ to avoid conflicts.

* fix: remove bundler deployment mode to allow Gemfile updates

The deployment mode was causing bundler to fail when Gemfile
changed (nokogiri was removed). CI should be able to update
the lockfile as needed.

* feat: implement strict lock file enforcement (Option 1)

- Re-enable bundler deployment mode for strict Gemfile.lock checking
- Use yarn install --immutable for strict yarn.lock checking
- Add clear error messages when lock files are out of date
- Add pre-checks to verify lock files exist
- This ensures reproducible builds and makes caching maximally effective

When developers change dependencies, they must now:
1. Run yarn install or bundle install locally
2. Commit the updated lock files
3. CI will fail with helpful instructions if they forget

* fix: update Gemfile.lock for CI environment

Remove nokogiri from Gemfile.lock since it's excluded in CI
environments (GITHUB_ACTIONS=true). This allows the strict
lock file checks to pass in CI.

* fix: correct yarn.lock path for monorepo workspace

The project uses Yarn workspaces with yarn.lock at the repository
root, not in the app directory. Updated paths to check for yarn.lock
at workspace root and use it for cache keys.

* fix: handle both boolean and string test_mode parameter

The test_mode parameter was only checking for string 'true' but
could be passed as boolean true from command line. Now handles both
cases to ensure test mode works correctly for iOS and Android.

* fix: address code review feedback for mobile deployment workflow

- Replace jq with Node.js for version extraction (jq not available on macOS runners)
- Fix concurrent commit race condition by creating separate update-version job
- Add platform validation to version_manager.rb and version.cjs scripts
- Use POSIX-compatible single = for shell string comparisons
- Ensure single atomic commit when deploying to both platforms

* fix: formatting and linting issues

- Remove trailing spaces from workflow YAML file
- Fix prettier formatting in JavaScript files
- Add -y flag to yarn version command for non-interactive mode
- Address all lint warnings from CI

---------

Co-authored-by: Jayaditya Gupta <nightmare@Jayadityas-MacBook-Pro.local>
2025-07-28 13:39:47 +08:00
Kevin Lin
2043c3819a fix: Add localhost validation to prevent invalid endpoint usage in QR Code SDK (#794) 2025-07-27 23:43:47 -04:00
Justin Hernandez
4721d12b09 SEL-570: Display user ID in prove screen (#790)
* Display user ID on prove screen

* Add user ID formatting util and tests

* Clarify user ID formatting

* fix nice

* add tests and save toggle wip

* update tests based on feedback

* say connected wallet when wallet
2025-07-25 12:58:33 -07:00
Seshanth.S🐺
4941b2ba58 SEL-544: Generate Mock DSC on mock-passport flow (#772)
* feat: Generate mock DSC on mock-passport flow

* Remove console log

* yarn format

* revert to mock dsc generation
2025-07-25 11:09:05 -07:00
Seshanth.S🐺
186daa655c SEL-566: Navigate Home based on document validity (#768)
* feat: navigate home if atleast one valid document is present

* update comments

* Review: Remove unnecessary continue statement

* feat: add tracking
2025-07-25 10:34:43 -07:00
Seshanth.S🐺
a41558a66b SEL-553: Show NFC Progress (#764)
* feat: add haptics

* fix: BAC FAILED error event

* update lock file

---------

Co-authored-by: Justin Hernandez <transphorm@gmail.com>
2025-07-25 09:46:56 +02:00
Justin Hernandez
13970fb53c Add COSE signature verification tests (#788)
* Update ESLint config and lock prettier config

* Refine ESLint config and fix lint issues

* save wip updates

* eslint updates

* eslint fixes

* Add COSE signature verification tests

* fix tests
2025-07-24 21:47:59 -07:00
Justin Hernandez
bf3ef98c9d SEL-269: Update ESLint rules & lock prettier config (#781)
* Update ESLint config and lock prettier config

* Refine ESLint config and fix lint issues

* Apply eslint fixes

* Use socketIo alias (#782)

* move gesture handler

* save wip updates

* fix svg imports

* update tsconfig

* eslint updates

* eslint fixes

* improve ignore folders

* coderabbit feedback

* Fix style prop shorthands (#787)

* Expand view style props

* Expand remaining style props

* update types

* fix pipeline

* fix test env check

* nicer casting

* fix booleans

* update deeplink url handling and make it more robust

* add socket error handler
2025-07-24 21:17:54 -07:00
Justin Hernandez
f739fedd82 Remove failing version test (#780)
* remove version check test

* remove test all together
2025-07-21 22:29:13 -07:00
Justin Hernandez
18d25c392e Release new build v2.6.2 (#779)
* bump version and build

* ignore podfile
2025-07-21 22:08:08 -07:00
turnoffthiscomputer
874b426ebe Feat/retrieve OFAC trees from api (#769)
* retrieve the ofac trees from the api

* remove the ofac trees from the common repo

* fix ofac test

* yarn nice

* yarn nice

* yarn nice

* refactor ofac fetching
2025-07-21 11:07:04 +02:00
Ayman
aee72be5c7 bump: sdk/core to 1.0.7-beta.1 2025-07-21 13:07:59 +05:30
Ayman
4575daef73 fix: name formatting for middle name 2025-07-21 13:06:30 +05:30
turnoffthiscomputer
57825a43c9 fix user defined data (#766) 2025-07-17 15:47:47 +02:00
Seshanth.S🐺
2494a4399f SEL-559: Update td1 regex (#760)
* feat: update td1 regex

* update review comments

* fix: NPE on expirationDate regex
2025-07-16 08:17:50 -07:00
Aaron DeRuvo
83d016e4da lets start with coverage for app (#763)
* lets start with coverage for app

* lint

* better setup
2025-07-16 11:17:39 +02:00
Aaron DeRuvo
2aed84e6a8 SEL-504: fix fonts and some styles (#762)
* fix fonts and some styles

* dry config

* fix some warnings
2025-07-16 11:16:48 +02:00
jayssj11
c195d27942 Add .cursorignore to optimize AI editor performance and security (#758)
Prevents Cursor AI from accessing sensitive files (keys, credentials,
deployment configs) and large generated artifacts that slow down indexing.
Keeps source code accessible while excluding build outputs, node_modules,
and circuit/contract compilation artifacts across the monorepo.
2025-07-11 16:03:36 +02:00
Aaron DeRuvo
252f1ba1ef Start of Web App (#689) 2025-07-11 14:07:40 +02:00
turnoffthiscomputer
19f167297a don't use crypto in core sdk 2025-07-08 18:04:15 +02:00
Justin Hernandez
9dcbdd3b9e Add thorough test cases for mobile app (#752)
* Add actor mock helper and tests

* format tests

* fix tests

* Revert non-app tests

* update tests

* fix tests

* coderabbit feedback

* revert change

* remove spurious tests
2025-07-06 21:12:28 -07:00
Justin Hernandez
a651fddf37 Add proving machine tests (#749)
* Add actor mock helper and tests

* format tests

* fix tests

* wip fix tests

* address cr feedback
2025-07-06 20:00:13 -07:00
Justin Hernandez
37863c8773 Extend platform build file tests (#748)
* Add build file tests

* cr feedback
2025-07-06 18:56:27 -07:00
Justin Hernandez
9aa4faad13 Address minor mobile deployment bugs (#745)
* feat: improve deployment tooling

* cr feedback

* for temp testing

* clean build artifacts after deploy

* add deploy source

* uncomment ios commands

* Add tests for minor deployment fixes (#750)

* Add test coverage for deployment scripts and Fastfile

* format

* increase github check to 5 minutes
2025-07-06 18:21:46 -07:00
Justin Hernandez
f48a1d6ae7 Improve AGENTS workflow notes (#747)
* clarify workflow instructions

* agents feedback
2025-07-06 17:35:18 -07:00
Justin Hernandez
f98beea498 SEL-496: Add Firebase Remote Config and dev feature flag screen (#735)
* feat: add remote config support

* update lock

* tweak config logic. add feature flag viewing screen

* add tests

* allow for local overriding of feature flags

* save local override work

* save wip

* clean up ui

* update screen to handle multi value types

* fix tests

* cr feedback and fix tests

* remote config upates. fix tests, codex feedback
2025-07-05 17:29:26 -07:00
Justin Hernandez
a865da7fd3 bump build 148 (#744) 2025-07-05 12:56:29 -07:00
turnoffthiscomputer
2f08c664e2 fix the female bug 2025-07-05 20:30:08 +02:00
Justin Hernandez
223fe9e0de bump version (#743) 2025-07-05 10:06:22 -07:00
turnoffthiscomputer
4227f6da82 add the gender to the deeplink optoin 2025-07-05 18:30:21 +02:00
turnoffthiscomputer
b5a2dae135 fix deeplink genmockiddoc 2025-07-05 16:34:38 +02:00
Justin Hernandez
c3c1ecfe47 Bugfix: android deeplinks (#742)
* bugfix: deep linking

* add android manifest test

* bump build and version

* format readme
2025-07-05 04:31:42 -07:00
Ayman
55e5db78ef chore: update readme 2025-07-04 16:37:53 +02:00
Justin Hernandez
b841b19d96 Improve manual mobile deploy workflow and docs (#728)
* Add basic Fastlane helper tests

* Upgrade fastlane and enhance helper tests (#738)

* simplify mobile deploy pipelines and make them manual. update readme

* update fastlane dev readme

* update tests and add helper script

* cr feedback, update tests, revert circuits package.json sort change

* tweaks

* fix slack

* cr feedback and fixes

* add better cjs eslint support

* save wip. add confirmation check script. update scripts

* remove auto increment feature

* migrate readme items over to DEV due to fastlane auto regen docs flow

* use regular xcode

* fix hermes compiler path

* coderabbit feedback

* reinstall when on local dev

* fix upload

* simplify

* simplify confirmation feedback with tests

* fix mobile deploys

* cr feedback

* test iOS building

* fix trigger logic

* cr feedback

* updates

* fix env var

* fix order

* re-enable upload to testflight for ios

* updated notes
2025-07-03 22:32:14 -07:00
Justin Hernandez
601cad5b48 Chore: new build for v2.6.0 ios 145 android 81 (#737)
* bump version and build

* properly bump app

* bump build
2025-07-03 12:50:12 -07:00
Justin Hernandez
aac34ecdc0 remove loading screen race condition redirect (#736) 2025-07-03 12:06:43 -07:00
Justin Hernandez
7646a769ac SEL-494: Update proving machine event tracking (#734)
* Add extensive proof analytics instrumentation

* prettier and sort events by key name
2025-07-03 11:36:24 -07:00
Seshanth.S🐺
f99f11a823 SEL-486: Fix unwrap DO (#718)
* update podfile: unwrapDO

* update lock

* bump version and builds

* bump build; forgot to enable logs

* fix version to not interfere with release

---------

Co-authored-by: Justin Hernandez <transphorm@gmail.com>
2025-07-03 11:04:05 -07:00
Justin Hernandez
f77cd80663 Temporarily disable recovery redirect and reminder prompts (#733)
* Revert "SEL-487: Prompt user to backup recovery phrase before registering (#715)"

This reverts commit fe14ac655e.

* revert update

* fix safe area context pkg

* Revert "SEL-487: Prompt user to backup recovery phrase before registering (#715)"

This reverts commit fe14ac655e.

* fix old flow

* more silent tests

* update lock files

* hard code return
2025-07-03 11:01:43 -07:00
turboblitz
07a5316539 Update README.md 2025-07-03 16:15:34 +02:00
Ayman
b40f2014b4 chore: use named exports 2025-07-03 14:56:58 +02:00
Ayman
fab8b3b6d2 chore: update default config id method 2025-07-03 14:41:30 +02:00
turnoffthiscomputer
113d796c43 yarn nice 2025-07-03 14:26:22 +02:00
turnoffthiscomputer
a6edf217ce allow people to switch to a mock id (#732) 2025-07-03 13:28:00 +02:00
turnoffthiscomputer
8ac75286eb App/ethcc fixes (#730)
* fix mock data screen

* increase timout between dsc and register proof

* fix the isUserRegisteredWithAlternativeCSCA function

* yarn nice
2025-07-03 12:57:41 +02:00
turnoffthiscomputer
628ec27abe Contracts/update verifiers (#729)
* update the verifiers

* update deployment script

* update deployment script and deploy to prod

* prettier run write
2025-07-02 19:16:09 +02:00
Justin Hernandez
c303366706 Apply consistent safe area padding across screens (#726) 2025-07-01 19:56:16 -07:00