2807 Commits

Author SHA1 Message Date
Leszek Stachowski
3b14f09c30 introduce usePrepareDocumentProof in mobile SDK (#1176)
* introduce usePrepareDocumentProof in mobile SDK

* revert haptic feedback + lint
2025-10-01 15:08:48 +02:00
Aaron DeRuvo
1856c9b325 move fcm token storage (#1175)
* move fcm token from proving store to setting store for better separation of concerns.

* use analytics on adapter

* Revert "use analytics on adapter"

This reverts commit 4854d6fa87.

* prettier

* please be good

* ik heb oopsie wooopsie

* remove
2025-10-01 12:59:00 +02:00
Vishalkulkarni45
9131cd3649 ease ofac check in go-sdk similar to ts-sdk (#1174)
* fix: ofac check

* fix: isOfacValid is false by default
2025-10-01 15:31:13 +05:30
Nesopie
6468ee9cd5 fix: ofac (#1172) 2025-10-01 13:02:30 +05:30
Justin Hernandez
c55112d1e0 chore: add polish to the mobile demo app (#1135)
* Improve demo app safe area handling

* refactor: centralize mobile demo screen navigation

* update lock

* update podfile lock

* fix pipelines

* fix tests

* save wip polish

* polish app

* simplify and standardize screens

* small fixes

* fix tests

* Use SDK SelfClientProvider in demo (#1162)

* fix types

* Fix mobile SDK demo Jest mock

* force react-native-svg to 15.12.1

* fix tests

* add types script

* fix document list

* fix types and metro config

* add ignore files to speed up watchman and eslint

* save wip tweaks

* save mock doc screen wip

* use persistant document store

* save polish work in progress

* add polish to screens

* save wip secure storage

* allow cursor to examine react configs

* convert tests to vitest and fix

* fix tests

* prettier

* cr feedback

* fix tests and remove skipped
2025-10-01 00:16:34 -07:00
Justin Hernandez
871890aa0a undo retry and bump version (#1170) 2025-09-30 18:56:13 -07:00
Justin Hernandez
0e3b4e8ae6 chore: fixes for next deploy v2.6.9 (#1168)
* create pr from dev not staging

* retry upload to google play if it fails
2025-09-30 18:31:55 -07:00
Justin Hernandez
3907a046fc chore: last build bump for v268 (#1166)
* tweak pr flow

* bump versions
2025-09-30 18:04:44 -07:00
Justin Hernandez
2bcb9f46d3 bump version (#1165) 2025-09-30 16:58:30 -07:00
Justin Hernandez
50f670dd5f Justin/fix deploy workflows v268 rd2 (#1159)
* add missing key

* save wip

* update env values. remove slack support

* add enable debug logs
2025-09-30 14:56:56 -07:00
Justin Hernandez
3de7ef3469 chore merging staging into dev v268 (#1158)
* chore: incrementing android build version for version 2.6.8 [github action] (#1141)

Co-authored-by: transphorm <23852+transphorm@users.noreply.github.com>

* chore: incrementing ios build number for version 2.6.8 [github action]

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-30 12:01:05 -07:00
Justin Hernandez
8c6067a57f chore: fix version staging merge v2.6.8 (#1157)
* chore: incrementing android build version for version 2.6.8 [github action] (#1141)

Co-authored-by: transphorm <23852+transphorm@users.noreply.github.com>

* chore: incrementing ios build number for version 2.6.8 [github action]

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-30 11:58:14 -07:00
Justin Hernandez
2e5a531097 update versions. fix flows (#1155) 2025-09-30 11:55:14 -07:00
Justin Hernandez
16abf66215 disable deployment checking (#1147) 2025-09-29 20:57:46 -07:00
Justin Hernandez
e66607bff8 fix ios deploy (#1145) 2025-09-29 20:28:33 -07:00
Justin Hernandez
9ebb9166db small tweaks to bump build v2.6.8 (#1144)
* small tweaks to bump build

* also run mobile e2e and mobile sdk changes

* run mobile demo on sdk changes
2025-09-29 19:02:52 -07:00
Justin Hernandez
cac965932e fix ios deploy workflow for v2.6.8 (#1142)
* update readme

* fix ios deploy pipeline

* kick off during staging merge
2025-09-29 17:46:01 -07:00
Justin Hernandez
675c00e8ec bump version (#1139) 2025-09-29 15:49:09 -07:00
Aaron DeRuvo
a826c71f36 Redo "Mobile SDK: move provingMachine from the app (#1052)" (#1084)" (#1114)
* Redo "Mobile SDK: move provingMachine from the app (#1052)" (#1084)"

This reverts commit 3397fcf43b. which reverted merging proving machine migration

* fix build

* lint fix

* fix imports

* pr suggestions

* make sure not to create multiple instances of stores

* WIP: don't expose useSelfAppStore directly in the public API

* Update packages/mobile-sdk-alpha/src/proving/provingMachine.ts

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

* Apply suggestions from code review

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

* dont call protocol store directly

* fix protocol store tests

* fix deeplinks test

* fix web build and exports

* test fixes

* keep reactivity

* remove file name

* WIP: expose stores through SelfClient only

* move protocolStore usage behind SelfClient

* fix deeplinks tests

* lint

* fix provingMachine tests

* remove provingStore from browser exports

* lint

* lint

* fix provingMachine.generatePayload tests

* fix provingMachine.startFetchingData tests

* fix more tests

* remove not exported

* fix more tests

* remove unused

* simplify getAltCSCA signature (fix build?)

* yarn lint

* final touches

---------

Co-authored-by: Leszek Stachowski <leszek.stachowski@self.xyz>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-09-29 14:17:51 -07:00
Justin Hernandez
1c2a59f6f1 chore: rename android-passport-reader to android-passport-nfc-reader (#1137)
* rename android-passport-reader to android-passport-nfc-reader

* rename action
2025-09-28 17:12:54 -07:00
Justin Hernandez
bd8d425cc7 SELF-763: remove aesop features for now (#1132)
* clean onboarding camera screens

* remove remaining aesop artifacts. fix tests
2025-09-28 07:55:11 -07:00
Justin Hernandez
20fa5c5adc [SELF-700] feat: add mock document generator demo (#995)
* feat: add mock document generator demo

* feat: add mock document generator

* fixes

* chore: refresh workflow cache

* update lock

* build

* updates

* more fixes

* code rabbit feedback

* compiles

* save wip

* updates

* merge with dev and fixes

* fix: align hoisting and demo Jest resolver (#1003)

* chore(app): map common src paths and declare svg flag module

* ci fix

* update lock

* save wip

* chore: address yarn lock issues (#1004)

* address yarn lock issues

* fix postinstall

* fix ci

* use metro js proxy

* android build working for /app

* save wip

* fix merge

* pipeline fixes

* format

* fix pipelines

* bump limit and split

* fix pipeline issues

* chore: decouple demo app build (#1013)

* chore: decouple demo app build

* chore: move demo app to workspace

* chore: unpublish demo workspace

* fix mobile sdk tests

* updates

* remove polyfills

* update merge

* update resolutions

* update resolutions

* fix merge

* fix paths

* save wip

* save wip fixes rd2

* working android

* update lock

* save wip ios building

* fix merge

* readd public key

* fixes

* ci fixes

* fixes

* fix web building

* fix ci

* fix tests

* update lock

* fix ci rd2

* formatting and fix ci

* fix

* finalize ci fixes

* fix tests and metro config paths for building

* save wip

* install missing package for pipeline

* fix wip app building

* wip react config

* save working emulator compile

* first round of pr fixes and feedback

* clean up demo app artifacts from sdk

* Add Gradle wrapper files for mobile-sdk-demo Android build

- Added gradlew, gradlew.bat, and gradle/wrapper/ directory
- Updated .gitignore to allow committing Gradle wrapper files
- Fixes Android build error: spawn ./gradlew ENOENT

* codex feedback and fixes

* fix tests

* file renames

* revert back to dev

* add types

* coderabbit fixes

* fix tests

* fix tests

* fix test

* fixes

* fix wip coderabbit issues

* coderabbit suggestions rd 2

* fix ci pipelines and addresss warnings

* cr fixes

* convert kebab to camelCase

* save wip fixes

* update reinstall and lock files

* fixes

* remove file

* fix lint

* fix polyfill fallback issues

* ensure that mock document is not on ofac list

* prettier
2025-09-27 13:59:47 -07:00
Nesopie
0dc8b18d40 fix: contracts (#1133) 2025-09-26 22:44:57 +05:30
Evi Nova
a5797bc2e2 refactor: generate scope upon deployment instead of manual generation and using setScope (#1117)
* refactor: generate scope for SelfVerificationRoot upon deploment

Utilise Poseidon to generate the scope for the deploying contract instead of relying on utilizing the Scope Generator tool on the frontend and calling a function that inherits the _setScope function

* style: use explicit import for PoseidonT3

* fix: link Poseidon library in TestSelfVerificationRoot deployments

* fix: Use same logic in SelfVerificationRoot as in hashEndpointWithScope

* refactor: use hardcoded PoseidonT3 addresses for Celo Mainnet + Sepolia

Also allowed functionality for testing environments which have a fresh deploy each time they are spun up, and which now utilize the testSetScope function for tests relying on TestSelfVerificationRoot

* style: change setTestScope to setGenerateScope for clarity

* refactor: Move logic out of SelfVerificationRoot into util files

* chore: update version

* fix: sepolia chain id

* fmt

---------

Co-authored-by: ayman <aymanshaik1015@gmail.com>
2025-09-26 01:26:27 +05:30
Nesopie
94a462704e feat: export attestation id (#1130) 2025-09-26 00:55:50 +05:30
Nesopie
8abcb15508 Feat/export attestation ids (#1129)
* fix: ofac logic

* feat: create an attestation id object

* lint
2025-09-26 00:22:51 +05:30
Aaron DeRuvo
cd6d9ce981 fix SEL-750 system bar content color (#1097) 2025-09-25 11:07:38 -07:00
Justin Hernandez
7e47824d08 chore update feedback email address (#1125)
* update email addy

* format code
2025-09-25 09:50:45 -07:00
Nesopie
43fe425543 fix: ofac logic (#1124) 2025-09-25 13:06:12 +05:30
Justin Hernandez
85bbb0279d chore: release v2.6.7; android aadhar qr hotfix (#1122)
* fix: detect mAadhaar

* bump android version to 102; 2.6.7

---------

Co-authored-by: seshanthS <seshanth@protonmail.com>
2025-09-23 13:37:10 -07:00
Seshanth.S
cbf62fe3cb fix: detect mAadhaar (#1121) 2025-09-23 12:52:13 -07:00
Nesopie
e852005e7f add setup (#1119) 2025-09-22 20:13:50 +05:30
Nesopie
4215cb4af5 fix: readme (#1118) 2025-09-22 20:05:59 +05:30
Nesopie
c18cf43e60 Fix/sdk qrcode (#1115)
* chore: export getUniversalLink

* chore: export universal link function from the angular sdk
2025-09-22 15:26:23 +05:30
Aaron DeRuvo
dd82b3b1a6 sometimes you need https auth (#1098) 2025-09-22 10:23:42 +02:00
Vishalkulkarni45
ca7292b006 fix: aadhaar verifier abi go-sdk (#1113) 2025-09-22 12:54:56 +05:30
Nesopie
a70c06d1a2 Fix/published files (#1112)
* chore: only publish dist in angular

* fix: ci and published files

* bump: angular version
2025-09-22 11:58:08 +05:30
Nesopie
8e88361a8c Feat/qr code angular (#1111)
* feat: qrcode wrapper in angular

* chore: refactor

* feat: working qrcode

* fix: websockets

* fix: lottie animations

* chore: add readme

* ci: angular

---------

Co-authored-by: vishal <vishalkoolkarni0045@gmail.com>
2025-09-22 11:50:11 +05:30
Nesopie
c36bb2f4e5 yarn (#1110) 2025-09-22 10:11:07 +05:30
Nesopie
8c1bf0c0fd chore: use published selfxyz anon-aadhaar package (#1109) 2025-09-22 10:07:40 +05:30
Justin Hernandez
f36050ef1d chore: android studio agp assistant; 16kb pagesize fix (#1107)
* upgrade android agp

* update ndk and add manual linker for 16kb

* upgarde ndk
2025-09-20 16:04:59 -07:00
Justin Hernandez
1d9e87f9b8 chore: bump v2.6.6 (aadhaar) for release (#1103)
* bump build number and version to 2.6.6

* fix tests

* update version
2025-09-20 13:48:17 -07:00
turnoffthiscomputer
f6881bf2d9 Refactor deep link handling to simplify navigation to ProveScreen (#1104)
* Refactor deep link handling to simplify navigation to ProveScreen

- Removed the reset of the navigation stack and replaced it with a direct navigation call to 'Prove'.
- This change streamlines the deep link handling process, ensuring a more straightforward user experience when navigating to the ProveScreen.

* update lock and fix tests

---------

Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
2025-09-19 22:41:55 -07:00
turnoffthiscomputer
6063aedd02 Refactor LoadingScreen to use IDDocument type and update loading text logic (#1106)
- Changed passportData state type from PassportData to IDDocument for better type handling.
- Updated getLoadingScreenText function to accept signatureAlgorithm and curveOrExponent directly instead of PassportMetadata.
- Adjusted loading text and animation logic based on document category, improving clarity and maintainability.
2025-09-20 07:36:19 +02:00
Justin Hernandez
48a8146a4b fix aadhaar screen test (#1101)
* add iOS qrcode opener and aadhaar screen

* format

* fix test

* add Image-picker android (#1077)

* add image-picker android

* fix validation

* feat: implement Aadhaar upload success and error screens, enhance AadhaarNavBar with dynamic progress indication

- Added AadhaarUploadedSuccessScreen and AadhaarUploadErrorScreen components for handling upload outcomes.
- Updated AadhaarNavBar to reflect current upload step with dynamic progress bar.
- Integrated new screens into navigation flow for Aadhaar upload process.
- Introduced blue check and warning SVG icons for visual feedback on success and error states.

* feat: generate mock aadhar (#1083)

* feat: generate mock aadhar

* add yarn.lock

* update yarn.lock

* update protocolStore, update types, start modifying provingMachine

* Register mock aadhar (#1093)

* Register mock aadhar

* fix ofac

* temp: generate name

* fix dob

* Add Aadhaar support to ID card component and screens

- Integrated Aadhaar icon and conditional rendering in IdCardLayout.
- Updated AadhaarUploadScreen to process QR codes and store Aadhaar data.
- Modified navigation and button text in AadhaarUploadedSuccessScreen.
- Added mock data generation for Aadhaar in the mobile SDK.
- Updated ManageDocumentsScreen to include Aadhaar document type.
- Enhanced error handling and validation for Aadhaar QR code processing.
- Added utility functions for Aadhaar data extraction and commitment processing.

* aadhaar disclose - wip (#1094)

* fix: timestamp cal of extractQRDataFields

* Feat/aadhar fixes (#1099)

* Fix - android aadhar qr scanner

* fixes

* update text

* yarn nice

* run prettier

* Add mock Aadhaar certificates for development

- Introduced hardcoded Aadhaar test certificates for development purposes.
- Moved Aadhaar mock private and public keys to a dedicated file for better organization.
- Updated the mock ID document generation utility to utilize the new Aadhaar mock certificates.

* prettier write

* add 'add-aadhaar' button (#1100)

* Update .gitleaks.toml to include path for mock certificates in the common/dist directory

* yarn nice

* Enhance Aadhaar error handling with specific error types

- Updated the AadhaarUploadErrorScreen to display different messages based on the error type (general or expired).
- Modified the AadhaarUploadScreen to pass the appropriate error type when navigating to the error screen.
- Set initial parameters for the home screen to include a default error type.

* Update passport handling in proving machine to support Aadhaar document category

- Modified the handling of country code in the useProvingStore to return 'IND' for Aadhaar documents.
- Ensured that the country code is only fetched from passport metadata for non-Aadhaar documents.

* tweak layout, text, change email to support, hide help button

* fix ci, remove aadhaar logging, add aadhaar events

* remove unused aadhaar tracking events

* update globs

* fix gitguardian config

* don't track id

* fix test

---------

Co-authored-by: turnoffthiscomputer <colin.remi07@gmail.com>
Co-authored-by: Seshanth.S🐺 <35675963+seshanthS@users.noreply.github.com>
Co-authored-by: vishal <vishalkoolkarni0045@gmail.com>
2025-09-19 18:03:04 -07:00
turnoffthiscomputer
2df4dc4619 SELF-725: add iOS qrcode opener and aadhaar screen (#1038)
* add iOS qrcode opener and aadhaar screen

* format

* fix test

* add Image-picker android (#1077)

* add image-picker android

* fix validation

* feat: implement Aadhaar upload success and error screens, enhance AadhaarNavBar with dynamic progress indication

- Added AadhaarUploadedSuccessScreen and AadhaarUploadErrorScreen components for handling upload outcomes.
- Updated AadhaarNavBar to reflect current upload step with dynamic progress bar.
- Integrated new screens into navigation flow for Aadhaar upload process.
- Introduced blue check and warning SVG icons for visual feedback on success and error states.

* feat: generate mock aadhar (#1083)

* feat: generate mock aadhar

* add yarn.lock

* update yarn.lock

* update protocolStore, update types, start modifying provingMachine

* Register mock aadhar (#1093)

* Register mock aadhar

* fix ofac

* temp: generate name

* fix dob

* Add Aadhaar support to ID card component and screens

- Integrated Aadhaar icon and conditional rendering in IdCardLayout.
- Updated AadhaarUploadScreen to process QR codes and store Aadhaar data.
- Modified navigation and button text in AadhaarUploadedSuccessScreen.
- Added mock data generation for Aadhaar in the mobile SDK.
- Updated ManageDocumentsScreen to include Aadhaar document type.
- Enhanced error handling and validation for Aadhaar QR code processing.
- Added utility functions for Aadhaar data extraction and commitment processing.

* aadhaar disclose - wip (#1094)

* fix: timestamp cal of extractQRDataFields

* Feat/aadhar fixes (#1099)

* Fix - android aadhar qr scanner

* fixes

* update text

* yarn nice

* run prettier

* Add mock Aadhaar certificates for development

- Introduced hardcoded Aadhaar test certificates for development purposes.
- Moved Aadhaar mock private and public keys to a dedicated file for better organization.
- Updated the mock ID document generation utility to utilize the new Aadhaar mock certificates.

* prettier write

* add 'add-aadhaar' button (#1100)

* Update .gitleaks.toml to include path for mock certificates in the common/dist directory

* yarn nice

* Enhance Aadhaar error handling with specific error types

- Updated the AadhaarUploadErrorScreen to display different messages based on the error type (general or expired).
- Modified the AadhaarUploadScreen to pass the appropriate error type when navigating to the error screen.
- Set initial parameters for the home screen to include a default error type.

* Update passport handling in proving machine to support Aadhaar document category

- Modified the handling of country code in the useProvingStore to return 'IND' for Aadhaar documents.
- Ensured that the country code is only fetched from passport metadata for non-Aadhaar documents.

* tweak layout, text, change email to support, hide help button

* fix ci, remove aadhaar logging, add aadhaar events

* remove unused aadhaar tracking events

* update globs

* fix gitguardian config

* don't track id

---------

Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
Co-authored-by: Seshanth.S🐺 <35675963+seshanthS@users.noreply.github.com>
Co-authored-by: vishal <vishalkoolkarni0045@gmail.com>
2025-09-19 17:36:01 -07:00
Vishalkulkarni45
664be08e12 fix: go-sdk (#1090) 2025-09-19 23:27:19 +02:00
Nesopie
d0a66a11ba fix: aadhaar verifier abi (#1096)
* fix: aadhaar verifier abi

* bump: core
2025-09-19 11:56:44 +05:30
Justin Hernandez
779fea5d2a address version mismatches and package resolutions (#1081)
* fix package version mismatches and resolutions

* fixes

* update lock

* fix comma

* fixes

* fix packages

* update packages

* remove firebase analytics. not needed
2025-09-18 17:35:26 -07:00
Justin Hernandez
a005bde034 [SELF-747] feat: clone android passport reader during setup (#1080)
* chore: remove android private modules doc

* private repo pull

* skip private modules

* remove unused circuits building

* save wip

* format

* restore tsconfig

* fix package install

* fix internal repo cloning

* unify logic and fix cloning

* git clone internal repos efficiently

* formatting

* run app yarn reinstall from root

* coderabbit feedback

* coderabbit suggestions

* remove skip private modules logic

* fix: ensure PAT is passed through yarn-install action and handle missing PAT gracefully

- Update yarn-install action to pass SELFXYZ_INTERNAL_REPO_PAT to yarn install
- Make setup-private-modules.cjs skip gracefully when PAT is unavailable in CI
- Fixes issue where setup script was throwing error instead of skipping for forks

* prettier

* fix clone ci

* clone ci fixes

* fix import export sorts

* fix instructions

* fix: remove SelfAppBuilder re-export to fix duplicate export error

- Remove SelfAppBuilder import/export from @selfxyz/qrcode
- Update README to import SelfAppBuilder directly from @selfxyz/common
- Fixes CI build failure with duplicate export error

* fix: unify eslint-plugin-sort-exports version across workspaces

- Update mobile-sdk-alpha from 0.8.0 to 0.9.1 to match other workspaces
- Removes yarn.lock version conflict causing CI/local behavior mismatch
- Fixes quality-checks workflow linting failure

* fix: bust qrcode SDK build cache to resolve stale SelfAppBuilder issue

- Increment GH_SDK_CACHE_VERSION from v1 to v2
- Forces CI to rebuild artifacts from scratch instead of using cached version
- Resolves quality-checks linter error showing removed SelfAppBuilder export

* skip job

* test yarn cache

* bump cache version to try and fix the issue

* revert cache version

* refactor: use direct re-exports for cleaner qrcode package structure

- Replace import-then-export pattern with direct re-exports
- Keep SelfAppBuilder export with proper alphabetical sorting (before SelfQRcode)
- Maintain API compatibility as documented in README
- Eliminates linter sorting issues while keeping clean code structure

* fix: separate type and value imports in README examples

- Import SelfApp as type since it's an interface
- Import SelfAppBuilder as value since it's a class
- Follows TypeScript best practices and improves tree shaking
2025-09-18 14:55:25 -07:00