Minor app fixes two point nine rd2 (#1462)

* better tests

* lockfile naming fixes

* format

* fix ci issues
This commit is contained in:
Justin Hernandez
2025-12-02 22:20:17 -08:00
committed by GitHub
parent 569c606776
commit 64ab5fc91c
10 changed files with 25 additions and 7 deletions

View File

@@ -112,7 +112,7 @@ jobs:
uses: ./.github/actions/cache-pods
with:
path: app/ios/Pods
lock-file: app/ios/Podfile.lock
lockfile: app/ios/Podfile.lock
- name: Install Mobile Dependencies
uses: ./.github/actions/mobile-setup
with:

View File

@@ -277,7 +277,7 @@ jobs:
path: |
app/ios/Pods
~/Library/Caches/CocoaPods
lock-file: app/ios/Podfile.lock
lockfile: app/ios/Podfile.lock
cache-version: ${{ env.GH_CACHE_VERSION }}
- name: Cache Xcode build
uses: actions/cache@v4

View File

@@ -396,7 +396,7 @@ jobs:
path: |
${{ env.APP_PATH }}/ios/Pods
~/Library/Caches/CocoaPods
lock-file: app/ios/Podfile.lock
lockfile: app/ios/Podfile.lock
cache-version: ${{ env.GH_CACHE_VERSION }}-${{ env.GH_PODS_CACHE_VERSION }}
- name: Log cache status

View File

@@ -336,7 +336,7 @@ jobs:
path: |
app/ios/Pods
~/Library/Caches/CocoaPods
lock-file: app/ios/Podfile.lock
lockfile: app/ios/Podfile.lock
# DerivedData caching disabled - caused intermittent build failures due to stale cache
# Pod caching still speeds up pod install significantly
- name: Verify iOS Runtime

View File

@@ -293,7 +293,7 @@ jobs:
path: |
packages/mobile-sdk-demo/ios/Pods
~/Library/Caches/CocoaPods
lock-file: packages/mobile-sdk-demo/ios/Podfile.lock
lockfile: packages/mobile-sdk-demo/ios/Podfile.lock
# DerivedData caching disabled - caused intermittent build failures due to stale cache
# Pod caching still speeds up pod install significantly
- name: Verify iOS Runtime

View File

@@ -6,3 +6,5 @@
0e4555eee6589aa9cca68f451227b149277d8c90:app/tests/src/utils/points/api.test.ts:generic-api-key:34
circuits/circuits/gcp_jwt_verifier/example_jwt.txt:jwt:1
cadd7ae5b768c261230f84426eac879c1853ce70:app/ios/Podfile.lock:generic-api-key:2586
aeb8287078f088ecd8e9430e3f6a9f2c593ef1fc:app/src/utils/points/constants.ts:generic-api-key:7
app/src/services/points/constants.ts:generic-api-key:10

View File

@@ -5,6 +5,11 @@
/* global jest */
/** @jest-environment jsdom */
// Set up Buffer globally for tests that need it
const { Buffer } = require('buffer');
global.Buffer = Buffer;
// Mock React Native PixelRatio globally before anything else loads
const mockPixelRatio = {
get: jest.fn(() => 2),

View File

@@ -5,3 +5,6 @@
import { pointsApiBaseUrl } from '@/consts/links';
export const POINTS_API_BASE_URL = pointsApiBaseUrl;
export const POINTS_TOKEN_CONTRACT_ADDRESS =
'0xfa6279293dfa5b38486ee179e4ddf6806c517a49'; // gitleaks:allow

View File

@@ -8,7 +8,10 @@ import { SelfAppBuilder } from '@selfxyz/common/utils/appType';
import { selfLogoReverseUrl } from '@/consts/links';
import { getOrGeneratePointsAddress } from '@/providers/authProvider';
import { POINTS_API_BASE_URL } from '@/services/points/constants';
import {
POINTS_API_BASE_URL,
POINTS_TOKEN_CONTRACT_ADDRESS,
} from '@/services/points/constants';
import type { IncomingPoints } from '@/services/points/types';
export type WhitelistedContract = {

View File

@@ -4,5 +4,10 @@ path = ".gitleaks.toml"
[allowlist]
description = "Project-specific overrides"
paths = [
'''(?:^|/)Podfile\.lock$'''
'''(?:^|/)Podfile\.lock$''',
'''(?:^|/)app/src/services/points/constants\.ts$''',
]
regexes = [
'''(?i)(?:token|key|address)[\w\s]*contract[\w\s]*=\s*['"]0x[a-f0-9]{40}['"]''',
'''POINTS_TOKEN_CONTRACT_ADDRESS\s*=\s*['"]0x[a-f0-9]{40}['"]''',
]