Skip to content

Commit 3d0e1b4

Browse files
remicolintransphormseshanthSshazarreaaronmgdr
authored
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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> Co-authored-by: Seshanth.S <[email protected]> Co-authored-by: Leszek Stachowski <[email protected]> Co-authored-by: Aaron DeRuvo <[email protected]> Co-authored-by: seshanthS <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 85d73fa commit 3d0e1b4

File tree

143 files changed

+13031
-2747
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+13031
-2747
lines changed

.gitguardian.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
# This file configures which files and secrets to ignore during scanning
33

44
# Ignore specific file patterns
5-
paths-ignore:
5+
paths_ignore:
6+
# Gitleaks configuration file (contains example secrets/patterns for detection)
7+
- ".gitleaks.toml"
8+
69
# Mock certificates for testing (these are intentionally committed test data)
710
- "**/mock_certificates/**/*.key"
811
- "**/mock_certificates/**/*.crt"
@@ -46,7 +49,7 @@ paths-ignore:
4649
- "**/packages/mobile-sdk-alpha/ios/Frameworks/**"
4750
- "**/packages/mobile-sdk-alpha/ios/SelfSDK/**"
4851
# Ignore specific secret types for mock files
49-
secrets-ignore:
52+
secrets_ignore:
5053
- "Generic Private Key" # For mock certificate keys
5154
- "Generic Certificate" # For mock certificates
5255
- "RSA Private Key" # For mock RSA keys
@@ -57,6 +60,7 @@ secret:
5760
- match: 2036b4e50ad3042969b290e354d9864465107a14de6f5a36d49f81ea8290def8
5861
name: prebuilt-ios-arm64-apple-ios.private.swiftinterface
5962
ignored_paths:
63+
- ".gitleaks.toml"
6064
- "**/*.swiftinterface"
6165
- "**/*.xcframework/**"
6266
- "**/packages/mobile-sdk-alpha/ios/Frameworks/**"

.github/workflows/mobile-ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
WORKSPACE: ${{ github.workspace }}
1111
APP_PATH: ${{ github.workspace }}/app
1212
# Cache versions
13-
GH_CACHE_VERSION: v1 # Global cache version
13+
GH_CACHE_VERSION: v2 # Global cache version - bumped to invalidate caches
1414
GH_GEMS_CACHE_VERSION: v1 # Ruby gems cache version
1515
# Performance optimizations
1616
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.workers.max=4 -Dorg.gradle.parallel=true -Dorg.gradle.configureondemand=true -Dorg.gradle.caching=true
@@ -147,10 +147,11 @@ jobs:
147147
ls -la common/dist/ || echo "❌ common dist not found"
148148
ls -la common/dist/cjs/ || echo "❌ common dist/cjs not found"
149149
ls -la common/dist/cjs/index.cjs || echo "❌ common dist/cjs/index.cjs not found"
150-
- name: Build dependencies (cache miss)
151-
if: steps.built-deps.outputs.cache-hit != 'true'
150+
- name: Build dependencies (always - debugging CI)
151+
# Temporarily always build to debug CI issues
152+
# TODO: Re-enable cache after fixing: if: steps.built-deps.outputs.cache-hit != 'true'
152153
run: |
153-
echo "Cache miss for built dependencies. Building now..."
154+
echo "Building dependencies (cache temporarily disabled for debugging)..."
154155
yarn workspace @selfxyz/mobile-app run build:deps
155156
# Verify build completed successfully
156157
if [ ! -f "packages/mobile-sdk-alpha/dist/cjs/index.cjs" ] || [ ! -f "common/dist/cjs/index.cjs" ]; then
@@ -183,6 +184,9 @@ jobs:
183184
echo "✅ All required dependency files exist"
184185
fi
185186
- name: App Tests
187+
env:
188+
# Increase Node.js memory to prevent hermes-parser WASM memory errors
189+
NODE_OPTIONS: --max-old-space-size=4096
186190
run: |
187191
# Final verification from app directory perspective
188192
echo "Final verification before running tests (from app directory)..."

.github/workflows/mobile-deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,9 @@ jobs:
681681
SEGMENT_KEY: ${{ secrets.SEGMENT_KEY }}
682682
SELFXYZ_INTERNAL_REPO_PAT: ${{ secrets.SELFXYZ_INTERNAL_REPO_PAT }}
683683
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
684+
TURNKEY_AUTH_PROXY_CONFIG_ID: ${{ secrets.TURNKEY_AUTH_PROXY_CONFIG_ID }}
685+
TURNKEY_GOOGLE_CLIENT_ID: ${{ secrets.TURNKEY_GOOGLE_CLIENT_ID }}
686+
TURNKEY_ORGANIZATION_ID: ${{ secrets.TURNKEY_ORGANIZATION_ID }}
684687
timeout-minutes: 90
685688
run: |
686689
cd ${{ env.APP_PATH }}
@@ -1121,6 +1124,9 @@ jobs:
11211124
NODE_OPTIONS: "--max-old-space-size=6144"
11221125
SEGMENT_KEY: ${{ secrets.SEGMENT_KEY }}
11231126
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
1127+
TURNKEY_AUTH_PROXY_CONFIG_ID: ${{ secrets.TURNKEY_AUTH_PROXY_CONFIG_ID }}
1128+
TURNKEY_GOOGLE_CLIENT_ID: ${{ secrets.TURNKEY_GOOGLE_CLIENT_ID }}
1129+
TURNKEY_ORGANIZATION_ID: ${{ secrets.TURNKEY_ORGANIZATION_ID }}
11241130
run: |
11251131
cd ${{ env.APP_PATH }}
11261132

.github/workflows/mobile-e2e.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ env:
77
ANDROID_NDK_VERSION: 27.0.12077973
88
XCODE_VERSION: 16.4
99
# Cache versions
10-
GH_CACHE_VERSION: v1 # Global cache version
10+
GH_CACHE_VERSION: v2 # Global cache version - bumped to invalidate caches
1111
GH_GEMS_CACHE_VERSION: v1 # Ruby gems cache version
1212
# Performance optimizations
1313
GRADLE_OPTS: -Dorg.gradle.workers.max=4 -Dorg.gradle.parallel=true -Dorg.gradle.caching=true
@@ -296,12 +296,13 @@ jobs:
296296
xcodebuild -version
297297
echo "Xcode path:"
298298
xcode-select -p
299-
- name: Setup ccache
300-
uses: hendrikmuhs/[email protected]
301-
with:
302-
key: ${{ github.job }}-${{ runner.os }}
303-
- name: Add ccache to PATH
304-
run: echo "/usr/local/opt/ccache/libexec" >> $GITHUB_PATH
299+
# Temporarily disabled ccache to debug CI issues
300+
# - name: Setup ccache
301+
# uses: hendrikmuhs/[email protected]
302+
# with:
303+
# key: ${{ github.job }}-${{ runner.os }}
304+
# - name: Add ccache to PATH
305+
# run: echo "/usr/local/opt/ccache/libexec" >> $GITHUB_PATH
305306
- name: Set up Ruby
306307
uses: ruby/setup-ruby@v1
307308
with:

0 commit comments

Comments
 (0)