Commit Graph

3163 Commits

Author SHA1 Message Date
turnoffthiscomputer
2f2045a6fd fix: update navigation from DocumentOnboarding to CountryPicker in HomeScreen (#1392) 2025-11-11 19:53:07 +01:00
turnoffthiscomputer
3d0e1b4589 feat: 2.9 (#1325)
* 2.9 release

* 2.9 release

* Remove debug console logs from generateTEEInputsRegister function in registerInputs.ts

* parse only the passport data during the dsc step

* Add ReferralScreen and integrate referral functionality
- Introduced ReferralScreen for sharing referral links via messages, WhatsApp, and clipboard.
- Updated navigation to include ReferralScreen in the home stack.
- Added new icons for sharing and messaging.
- Enhanced points utility functions to check user identity document registration and points disclosure status.
- Minor adjustments to existing components for better integration with the new referral feature.

* fix types

* fix font

* fix vertical spacing

* save current abstraction

* clean up linking

* clean up spurious ai slop comments

* add dinot bold font

* minify animations

* update fonts and add placeholder animation

* fix pipelines

* fix order

* Update dependencies and enhance Points component functionality
- Added `@react-native-masked-view/masked-view` and `react-native-linear-gradient` to dependencies for improved UI components.
- Refactored `PointHistoryList` to accept `ListHeaderComponent` and `onRefreshRef` props for better integration with parent components.
- Enhanced `Points` component to manage notification and backup point events, including user feedback through modals.
- Updated navigation to use `PointsNavBar` for a more cohesive user experience.
- Introduced new utility functions for managing incoming points and point event records.

* update lock

* update lock and project settings

* fix line height for android

* save wip referral message fix and deeplink setup

* Fix whatsapp link (#1352)

* add 2 new lines

* use path based param instead of query string

* use staging url for now

* SELF-1089: Fix black screen on Points (#1351)

* Fix black screen on Points

* Fix: black screen on Referral Page

* fix: prevent BlurView from displaying when IdDetailsScreen loses focus

* Fix Android message share (#1355)

* Referral flow (#1354)

* SELF-1139: update getUserAddress() (#1353)

* update getUserAddress()

* rename getUserAddress to getPointsAddress

* [SELF-1098, SELF-1099] polish gratification screen post referrer update history (#1356)

* fix: mark document as registered after restoring secret (#1350)

* update lock

* create useRegisterReferral hook and test

* add referral message test

* save wip register referral flow request

* use register referral from the home screen

* fix typing and sort screens

* fix linting issues

* register poitns and update tests

* use package

* fix tests

* simplify HomeScreen with hooks

* fix tests

* address tests

* abstract points logic, fix types and linting

* add test referral flow hook

* coderabbit feedback: fix refereral logic issues, remove sensitive logs

* move test referral flow button to dev settings screen

* close modal after referring and viewing gratification screen

* fix tests, remove alert, format

---------

Co-authored-by: Seshanth.S <35675963+seshanthS@users.noreply.github.com>

* add gratification bg; use safe bottom padding hook on home screen

* prep 2.7.4 as 2.9.0

* manually bump version for custom deploy

* match version code

* fix types

* formatting

* fix tests

* SELF-1144 - use real points on home screen and improve points screen (#1361)

* fix whitespace

* move effects for fetching points and incoming points to hooks, add items to deps array so that they refresh when we expect points to change.

* cleanup

* Add events for new Points Flow (#1362)

* remove deeplinkCallback from pointsSelfApp. (#1365)

* fix pipelines

* SELF-978: wire cloudbackup with points (#1360)

* wire cloudbackup with points

* wire cloudbackup with points

* Remove redundant setSelfPoints()

* add signature and simplify POST api requests (#1367)

* add signature and simplify POST api requests

* better gitleaks ignore

* update toml

* have gitguardian ignore gitleaks

* add buffer lib

* update api with 202 success code

* update scope and contract-address (#1366)

* fix navigation test

* SELF-915: Setup and add turnkey utils (#1314)

* Setup and add turnkey utils

* update CloudBackupScreen

* fix: turnkey

* add yarn.lock

* lint

* add podfile.lock

* fix deeplink

* fix tests: mock turnkey

* yarn nice

* update .gitleaksignore

* patch react-native-svg

* fix patch-package

* fix lineHeight

* points.tsx: fix lineHeight

* fix: recover with turnkey disabled state

* fix turnkey flow

* fix: address generation

* minify animations (#1368)

* fix pipelines

* fix false positives

* fix gitguardian

---------

Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>

* enable turnkey only on success

* use prod url

* fix tests and update mocks

* update version and fastlane readme

* pointsSelfApp: update scope

* bump android version to 117

* incremenet timestamp

* abstract points css, hide explore button for now, add points guardrail

* better logic

* simplify point event list data acquisition (#1375)

* simplify point event list data acquisition

* explain

* Remove BlurView in Points.tsx

* Move Points and IncomingPoints to the Point Events Store (#1363)


* add polling for event processing.
atomically update store state

* handle failed states and use real backend api


* improve concurrency reliability of pointevents

* move points to the store


* refresh all points on pull

* add points tracking events

* fix imports

* fix headers

* fix import

* fix misspelling

* enable apps link

* remove __DEV__ logging

* remove additional referall dev mode features

* Add turnkey env

* don't allow users to refer themselves

* prettier

* trim both addresses

* fix close webview button

* fix tests and format

* lint and format

* Update point rewards in NavBar component: change earned points from 20 to 44 and from 100 to 32.

* Refactor point rewards in NavBar component: replace hardcoded values with constants for backup and notification points, and update subscription state variable names for clarity.

* Update POINT_VALUES in types.ts: adjust point rewards for disclosure, notification, and backup events to 8, 44, and 32 respectively.

* App/fix backup points (#1381)

* Enhance backup completion tracking in Points component: Introduce a ref to manage backup check flag, ensuring points are recorded only when explicitly set, preventing false triggers from other navigation flows.

* Update API endpoint in getTotalPoints function: change URL from /distribution to /points for accurate points retrieval.

* formatting

* update points url

* Clear referrer on modal dismiss in useEarnPointsFlow hook to prevent retry loop

* use points private key to sign api requests

* formatting

* save working version of referral confirmation

* fix circular dependency

* don't fetch private key if unable to fetch points key

* add url

* add debug info

* Refactor optimistic points calculation in usePointEventStore: update return value to only include incomingPoints.amount, marking the optimistic approach for future improvement.

* save clean up

* clean useReferralConfirmation logic

* fix tests

* tests pass

* standardize android compile sdk version

* fix package version

* don't log errors

* Update app/src/hooks/useReferralConfirmation.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* better test

* add turnkey entitlements

* fix linting

* remove entitlements

* prettier and fix lint

* update gradle version

* update lock file

* fix tests

* fix build failure

* bump android version to 118

* update date

* bump version for next build

* address failing pipelines due to cache issues

* Hide turnkey button (#1387)

* prep for 2.9.0 release

* fix mobile e2e test

* fix tests

* bump android version

---------

Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
Co-authored-by: Seshanth.S <35675963+seshanthS@users.noreply.github.com>
Co-authored-by: Leszek Stachowski <leszek.stachowski@self.xyz>
Co-authored-by: Aaron DeRuvo <aaron.deruvo@clabs.co>
Co-authored-by: seshanthS <seshanth@protonmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-11-11 10:37:05 -08:00
github-actions[bot]
85d73faca7 chore: bump mobile app version to 2.9.0 (#1390)
Update build numbers and deployment timestamps after successful deployment.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-11-11 10:13:05 -08:00
Justin Hernandez
c9a7b3673c bump android version (#1389) 2025-11-11 09:11:30 -08:00
github-actions[bot]
da495dede4 chore: bump mobile app version to 2.7.4 (#1385)
Update build numbers and deployment timestamps after successful deployment.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-11-10 22:17:13 -08:00
d0x471b
90ccfe4f26 feat(circuits): add GCP JWT verifier with TEE attestation claims extraction (#1317)
* chore(scripts): update Power of Tau download source URL

* fix(build): use correct node_modules paths in circom compile step

* chore(deps): add dependencies for GCP JWT verifier

* feat(circuits): add extractAndValidatePubkey utility circuit for GCP JWT

* feat(circuits): add verifyCertificateSignature utility circuit for GCP JWT

* feat(circuits): add verifyExtractedString utility circuit for GCP JWT

* feat(circuits): implement GCP JWT verifier circuit

* feat(scripts): add build script for GCP JWT verifier circuit

* chore(deps): pin crypto-circuit dependencies to exact versions

* build(circuits): bump jwt_verifier.circom version to 2.1.9

* build(scripts): improve gcp_jwt_verifier error handling

* chore(gcp_jwt_verifier): remove string verifier

* refactor: optimize and improve GCP JWT Verifier

* fix(circuits): enforce colon after JSON key name

* fix(circuits): add JSON parsing offset validation constraints

* fix: enforce JSON array structure validation in field extraction

* fix: add value_length validation to prevent partial extraction

---------

Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
2025-11-10 19:57:36 +05:30
github-actions[bot]
1282cb5520 chore: bump mobile app version to 2.7.4 (#1372)
Update build numbers and deployment timestamps after successful deployment.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-11-08 11:50:43 -08:00
Justin Hernandez
313e0455f2 match version (#1371) 2025-11-08 09:57:11 -08:00
github-actions[bot]
2652321c4b chore: bump mobile app version to 2.7.4 (#1370)
Update build numbers and deployment timestamps after successful deployment.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-11-07 17:42:03 -08:00
Justin Hernandez
77b063c5ed minify animations (#1368) 2025-11-07 14:33:18 -08:00
Justin Hernandez
ccb9e148be App polish for 2.9 rd1 (#1359)
* add useSafeBottomPadding

* add bottom padding to dev screen

* use safe bottom padding

* skip uploading if building android bundle locally

* fix tests

* cache fix script

* clean up country picker, fix font color

* sort package jsons, add watcher for mobile sdk

* formatting

* only bump versions for successfull builds

* move all css

* cleaner script

* kill watchers before starting new one
2025-11-07 10:26:08 -08:00
github-actions[bot]
394668e5df chore: bump mobile app version to 2.7.4 (#1358)
Update build numbers and deployment timestamps after successful deployment.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-11-07 00:14:14 -08:00
Seshanth.S
a2a6a0cbcb fix: mark document as registered after restoring secret (#1350) 2025-11-06 12:15:43 +05:30
github-actions[bot]
7ca75b72ff chore: bump mobile app version to 2.7.3 (#1346)
Update build numbers and deployment timestamps after successful deployment.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-11-04 22:46:31 -08:00
Justin Hernandez
337d376a05 bugfix: confirm belonging screen bottom padding (#1348)
* fix confirm belonging screen bottom padding

* simplify
2025-11-04 12:56:49 -08:00
Justin Hernandez
a2c42722bc bugfix: remove derived data caching (#1345)
* remove derived data caching

* fix workflow paht
2025-11-04 10:53:49 -08:00
Justin Hernandez
a274d065f9 bump release version (#1344) 2025-11-04 08:21:52 -08:00
Justin Hernandez
90049d03cc clean up old readme items (#1341) 2025-11-01 16:32:55 -07:00
Justin Hernandez
79940ef51a fix opening pull request logic (#1340) 2025-11-01 16:02:22 -07:00
Justin Hernandez
c1d929bcfb chore: bump android version remove title (#1339)
* bump android version

* remove spurious title
2025-10-31 14:26:17 -07:00
Justin Hernandez
2e51e268df SELF-1000: address passport data not found issue (#1329)
* update lock files

* use isUserRegisteredWithAlternativeCSCA

* update lock

* fix building release version

* aadhaar fix for public keys

* fix aadhaar check and add tess

* fix test types

* fix mocked data

* coderabbit feedback

* update tests and remove cruft

* update lock and aar file

* fix script and building aar file, add assets for recovery
2025-10-30 10:53:23 -07:00
Justin Hernandez
4c2670253f Add / update ci retry logic (#1332)
* add retry to logic to ci workflows

* simplify retry logic
2025-10-29 16:29:38 -07:00
Seshanth.S
bfa276665b SELF-883 Feat/generate second address (#1328)
* feat: generate second address

* update setting store
2025-10-29 22:59:23 +05:30
Seshanth.S
553b82b51b fix: ios symlink (#1327)
* fix: ios symlink

* replace ios symlinks with files
2025-10-29 18:18:25 +05:30
Justin Hernandez
856efb97f1 address minor mobile app linting issues (#1331)
* address lint issues

* different approach
2025-10-28 22:41:18 -07:00
Justin Hernandez
3bacfcfe4b chore(mobile-sdk): enhance type definitions and API documentation (#1330)
* chore: stop tracking docstrings report

* lint and prettier

* fix circular dependency issue and update docstrings

* add warnings
2025-10-28 22:28:33 -07:00
Evi Nova
5407127c5a Feat/upgradeable root constructor (#1326)
* feat: add constructor with _disableInitializers as per OZ best practices

https://docs.openzeppelin.com/upgrades-plugins/writing-upgradeable#initializing-the-implementation-contract

* docs: update layout and add section names

* chore: run yarn prettier
2025-10-28 15:38:09 +01:00
Paul (PJ) O'Leary Jr.
777b9178ca SelfVerificationRoot upgradeable pattern (#1318) 2025-10-28 14:58:26 +01:00
Nesopie
3c32887f5a fix: qrcode peer dependencies (#1240)
* fix: qrcode peer dependencies

* chore: yarn
2025-10-28 04:03:37 +05:30
Leszek Stachowski
7197545985 Bump up mobile-sdk-alpha version (#1324) 2025-10-27 13:25:28 +01:00
Evi Nova
8c5b90e89f Contracts cleanup (#1311)
* refactor: use singular ETHERSCAN_API_KEY in .env

Etherscan has unified all keys of associated explorers like Celoscan into a singular key rather than different keys for different networks.

* refactor: use one .env instead of separate .env.test + .env files

* refactor: deploy contracts with runs of 1000 instead of 200

Decreases gas cost of function calls on deployed contracts

* clean: remove duplicate/redundant deploy modules + scripts

* clean: cleanup empty script file

* refactor: cleanup default network of scripts

Read network from .env instead of using defaults of alfajores (outdated) or staging

* clean: remove references to Alfajores, replace with Sepolia

* chore: add default .env variables

* chore: update build-all script to include aardhaar circuit

* chore: update broken Powers of Tau download link (use iden3)

* chore: remove duplicate script

* fix: use stable version 18 for disclose circuits

* test: update test import paths to allow for .ts version of generateProof

* test: fix broken tests

* test: uncomment critical code for registration, change error names to updated names, fix broken import paths, update disclose tests for new scope generation/handling

* fix: broken import path

* test: fix Airdrop tests to use V2 logic

* docs: update docs for necessary prerequisite programs

* chore: yarn prettier formatting

* fix: CI errors occuring when deploying contracts as can't read .env

Using a dummy key for CI builds

* chore: yarn prettier

* refactor: change runs to 100000
2025-10-27 11:50:19 +01:00
Justin Hernandez
735b380d8a fix token (#1322) 2025-10-26 14:11:26 -07:00
Justin Hernandez
e0d8c56fe0 fix prod release (#1321) 2025-10-26 13:50:32 -07:00
github-actions[bot]
2efb06061f chore: bump mobile app version to 2.7.1 (#1307)
* chore: bump mobile app version to 2.7.1

* fix last deployed timestamp

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
2025-10-24 22:53:51 -07:00
Justin Hernandez
20684b1542 ignore false gitleaks (#1320) 2025-10-24 18:09:47 -07:00
Justin Hernandez
250345a337 ignore swift false positives (#1319) 2025-10-24 17:51:00 -07:00
Aaron DeRuvo
4f00dcd90e Aaronmgdr/msdk fix publish flow (#1312)
* run workflow when msdk path changes

* build deps
2025-10-24 16:02:33 +02:00
Aaron DeRuvo
3017660cea run workflow when msdk path changes (#1310) 2025-10-24 15:37:01 +02:00
Aaron DeRuvo
8863178077 SELF-701: Setup AlphaAlpha Publishing for mobile sdk (#1296)
* setup publishing

* tag it as prerelease

* Apply suggestion from @coderabbitai[bot]

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Apply suggestion from @coderabbitai[bot]

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Apply suggestion from @coderabbitai[bot]

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-10-24 15:26:10 +02:00
Aaron DeRuvo
2337eb30f1 Confirm Identification Screen + animation json dist setup (#1306)
* refactor confirm screen

* refactor

* setup animations and confirm-identification screen

* linty

* fix jest tests

* reverse attempts to fix web build. skip web build for now since its not used anyway

* dont code split in a library

* cleanup config for build based on what is actually used in sdk
2025-10-24 15:22:44 +02:00
Nesopie
905dac597a Revert "fix: update Lottie component usage in QR code SDK (#1284)" (#1309)
This reverts commit 2d2908cf68.
2025-10-24 05:29:31 +05:30
P. Raj Kumar
2d2908cf68 fix: update Lottie component usage in QR code SDK (#1284) 2025-10-24 04:56:21 +05:30
Justin Hernandez
077dcc47b4 [SELF-830] feat: demo app nfc scanning (#1236)
* save wip demo app nfc scanning

* save wip

* fix types

* Fix Android NFC scanning in demo app (#1241)

* fix tests

* fix pipelines

* fix linting

* WIP move to flows/onboarding/scan-nfc

* prettier and fix test

* fix test

* update lock

* update deps

* Feat/android prebuilt modules (#1292)

* move entire screen

* remove redundancy in components and utils

* fixes

* lint

* ignore

* remove unneeded

* fix imports

* remove unused

* Update packages/mobile-sdk-alpha/src/types/events.ts

Co-authored-by: Aaron DeRuvo <aaron.deruvo@clabs.co>

* uuid not needed for demo app

* android: update ci check

* timeout fix, image temp fix

* prettier fix

* try rebuild deps every time

* Temporarily disable cache check in CI

* Revert "try rebuild deps every time"

This reverts commit a5c97210a5.

* ignore false positive

* Revert "Revert "try rebuild deps every time""

This reverts commit 4f44615fd6.

* fix?

* sanitize error message first

* remove TODO that has been taken care of

* MSDK: add ios prebuilts (#1308)

* add ios prebuilt

* remove outdate readme

* remove duplicates

* comment out unused

* add prettier ignore

* Update .gitguardian.yml to ignore iOS frameworks and build artifacts

* update gitguardian ignore paths

* migrate config version

* add ignored-matches

---------

Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>

* remove duplicated code

* exclude mobile-sdk native modules when `E2E_TESTING` flag is set

* app: disable ios msdk auto-linking

* add E2E_TESTING flag

---------

Co-authored-by: Leszek Stachowski <leszek.stachowski@self.xyz>
Co-authored-by: seshanthS <seshanth@protonmail.com>
Co-authored-by: Seshanth.S <35675963+seshanthS@users.noreply.github.com>
Co-authored-by: Aaron DeRuvo <aaron.deruvo@clabs.co>
2025-10-23 23:14:32 +05:30
Aaron DeRuvo
6ff50ae987 SELF-928: get nav between screens happening. (#1299)
* get nav between screens happening. demo app onboaring flow now works

* fix ci

* coder  rabbit

* fix multi listern issues
2025-10-20 17:12:41 +02:00
turnoffthiscomputer
ab07edbd56 feat: implement push notification management in DevSettingsScreen (#1304)
- Added TopicToggleButton component for managing topic subscriptions.
- Integrated notification permission checks and subscription handling in DevSettingsScreen.
- Updated settingStore to manage subscribed topics.
- Enhanced notificationService with functions to check readiness and manage topic subscriptions.

This update allows users to enable or disable push notifications for specific topics, improving the app's notification management capabilities.
2025-10-19 03:20:59 +02:00
turnoffthiscomputer
cb2c5dd89f Merge branch 'dev' into staging 2025-10-19 03:03:18 +02:00
turnoffthiscomputer
732a5dcad4 Update version number to 2.7.1 in Info.plist 2025-10-19 02:53:19 +02:00
turnoffthiscomputer
edb13681cb Bump version from 2.7.0 to 2.7.1 2025-10-18 01:49:15 +02:00
turnoffthiscomputer
69cc9d9562 Update MARKETING_VERSION to 2.7.1 2025-10-18 01:04:50 +02:00
turnoffthiscomputer
e11fff01fe Increment iOS build number to 181 2025-10-18 01:01:32 +02:00