* move components to sdk and refactor a way from tamagui
* linting
* reverting since this is just a local issue for me
* lint
* simple
* yarn
* yolo
* run yarn nice
* fix pipelines
* fix tests
* fix mock
* add fonts to mobile sdk
* more feedback
---------
Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
* Add mobile SDK demo E2E workflow
* ci: build common before mobile sdk demo e2e
* Fix private pod access for mobile SDK demo e2e
* downgrade react-native-svg
* test fixing android e2e
* fix lock files
* update android e2e terst
* let's not figure out the emulator here. skip
* fix issues
* chore(app): tighten types across app workspace
* fixes
* save wip
* save wip linting
* fix any types
* fix types
* fix: import forwardRef directly from react
- Changed from React.forwardRef to forwardRef import
- Resolves linting warning about named exports
* save typing and linting updates
* cr feedback. final pass
* more cr feedback
* pipeline fixes
* wip
* move colors
* sort the dev screen menu alphabetically. for sanity
* lint
* move country hooks to sdk
* added peer dep
* add as dev dep
* remove SelfMobileSdk component before someone thinks that it should be used
* mock it like before
* Enable WebSocket connections in demo client
* save working keychain
* save wip
* save polish tweaks
* downgrade react-native-svg
* abstract components
* onSuccess alert displays only once
* sort by registered first
* add clear all documents button
* formatting and typing
* refresh register document screen after successful registration
* fix double tap on register
* coderabbit feedback
* lock NFCPassportReader to commit
* remove react native picker
* remove lock
* minor fixes
* Add LoadingUI and DevLoadingScreen components for enhanced loading experience
- Introduced LoadingUI component with customizable animation, action text, and progress indicators.
- Created DevLoadingScreen to facilitate development testing with state selection and loading feedback.
- Updated navigation to include DevLoadingScreen in the dev tools.
- Adjusted loading screen logic to improve user experience during document processing.
- Enhanced loading text management to provide clearer feedback based on current state.
- Added new SVG icon for the loading UI.
This commit improves the overall loading experience in the app, making it more user-friendly and visually appealing.
* Update navigation tests to include DevLoadingScreen for improved development experience
* create nice structure for the mobile sdk
* spv
* actually dont touch what we dont understand
* fix metro
* fix pretty
* fix types on app and imrpove names
* sneek in actually checking the types in the mobile app.
* not yet
* fix jest imports and name test better
* 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
* 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>
* 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
* Mobile SDK: move provingMachine from the app
* lint, fixes
* fix web build?
* lint
* fix metro build, add deps
* update lock files
* move the status handlers and proving machine tests
* may it be
* fix up
* yolo
---------
Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
Co-authored-by: Aaron DeRuvo <aaron.deruvo@clabs.co>
* remove lazy loading
* fix tests
* formatting
* fix imports and web ci
* fix tests
* fix building
* fix
* debug ci
* fix web ci issue
* fix
* fix
* fix ci
* remove web render test
* coderabbit feedback
* fix ci
* use import
* fix lint
* fix compiling
* update lock
* update lock
* fix: update yarn.lock hash for @selfxyz/mobile-sdk-alpha
Resolves CI error where yarn install --immutable failed due to
outdated package hash. The hash changed from b2afc4 to f9ebb9.
* fix: update yarn.lock hash after mobile-sdk-alpha changes
- Hash changed from c0e6b9 to 0d0f72 due to package modifications
- Cleaned caches and regenerated lockfile to ensure consistency
- This resolves CI cache mismatch where old artifacts had stale hash
* fix: update yarn.lock hash after building mobile-sdk-alpha
- Final hash: 89f5a6 (includes built dist artifacts)
- Built mobile-sdk-alpha to ensure package is in stable state
- This should resolve CI immutable install errors
* fix yarn lock and build