mirror of
https://github.com/selfxyz/self.git
synced 2026-01-09 06:38:09 -05:00
Minor app fixes two point nine rd2 (#1462)
* better tests * lockfile naming fixes * format * fix ci issues
This commit is contained in:
2
.github/workflows/mobile-bundle-analysis.yml
vendored
2
.github/workflows/mobile-bundle-analysis.yml
vendored
@@ -112,7 +112,7 @@ jobs:
|
|||||||
uses: ./.github/actions/cache-pods
|
uses: ./.github/actions/cache-pods
|
||||||
with:
|
with:
|
||||||
path: app/ios/Pods
|
path: app/ios/Pods
|
||||||
lock-file: app/ios/Podfile.lock
|
lockfile: app/ios/Podfile.lock
|
||||||
- name: Install Mobile Dependencies
|
- name: Install Mobile Dependencies
|
||||||
uses: ./.github/actions/mobile-setup
|
uses: ./.github/actions/mobile-setup
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/mobile-ci.yml
vendored
2
.github/workflows/mobile-ci.yml
vendored
@@ -277,7 +277,7 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
app/ios/Pods
|
app/ios/Pods
|
||||||
~/Library/Caches/CocoaPods
|
~/Library/Caches/CocoaPods
|
||||||
lock-file: app/ios/Podfile.lock
|
lockfile: app/ios/Podfile.lock
|
||||||
cache-version: ${{ env.GH_CACHE_VERSION }}
|
cache-version: ${{ env.GH_CACHE_VERSION }}
|
||||||
- name: Cache Xcode build
|
- name: Cache Xcode build
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
|||||||
2
.github/workflows/mobile-deploy.yml
vendored
2
.github/workflows/mobile-deploy.yml
vendored
@@ -396,7 +396,7 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
${{ env.APP_PATH }}/ios/Pods
|
${{ env.APP_PATH }}/ios/Pods
|
||||||
~/Library/Caches/CocoaPods
|
~/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 }}
|
cache-version: ${{ env.GH_CACHE_VERSION }}-${{ env.GH_PODS_CACHE_VERSION }}
|
||||||
|
|
||||||
- name: Log cache status
|
- name: Log cache status
|
||||||
|
|||||||
2
.github/workflows/mobile-e2e.yml
vendored
2
.github/workflows/mobile-e2e.yml
vendored
@@ -336,7 +336,7 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
app/ios/Pods
|
app/ios/Pods
|
||||||
~/Library/Caches/CocoaPods
|
~/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
|
# DerivedData caching disabled - caused intermittent build failures due to stale cache
|
||||||
# Pod caching still speeds up pod install significantly
|
# Pod caching still speeds up pod install significantly
|
||||||
- name: Verify iOS Runtime
|
- name: Verify iOS Runtime
|
||||||
|
|||||||
2
.github/workflows/mobile-sdk-demo-e2e.yml
vendored
2
.github/workflows/mobile-sdk-demo-e2e.yml
vendored
@@ -293,7 +293,7 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
packages/mobile-sdk-demo/ios/Pods
|
packages/mobile-sdk-demo/ios/Pods
|
||||||
~/Library/Caches/CocoaPods
|
~/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
|
# DerivedData caching disabled - caused intermittent build failures due to stale cache
|
||||||
# Pod caching still speeds up pod install significantly
|
# Pod caching still speeds up pod install significantly
|
||||||
- name: Verify iOS Runtime
|
- name: Verify iOS Runtime
|
||||||
|
|||||||
@@ -6,3 +6,5 @@
|
|||||||
0e4555eee6589aa9cca68f451227b149277d8c90:app/tests/src/utils/points/api.test.ts:generic-api-key:34
|
0e4555eee6589aa9cca68f451227b149277d8c90:app/tests/src/utils/points/api.test.ts:generic-api-key:34
|
||||||
circuits/circuits/gcp_jwt_verifier/example_jwt.txt:jwt:1
|
circuits/circuits/gcp_jwt_verifier/example_jwt.txt:jwt:1
|
||||||
cadd7ae5b768c261230f84426eac879c1853ce70:app/ios/Podfile.lock:generic-api-key:2586
|
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
|
||||||
|
|||||||
@@ -5,6 +5,11 @@
|
|||||||
/* global jest */
|
/* global jest */
|
||||||
/** @jest-environment jsdom */
|
/** @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
|
// Mock React Native PixelRatio globally before anything else loads
|
||||||
const mockPixelRatio = {
|
const mockPixelRatio = {
|
||||||
get: jest.fn(() => 2),
|
get: jest.fn(() => 2),
|
||||||
|
|||||||
@@ -5,3 +5,6 @@
|
|||||||
import { pointsApiBaseUrl } from '@/consts/links';
|
import { pointsApiBaseUrl } from '@/consts/links';
|
||||||
|
|
||||||
export const POINTS_API_BASE_URL = pointsApiBaseUrl;
|
export const POINTS_API_BASE_URL = pointsApiBaseUrl;
|
||||||
|
|
||||||
|
export const POINTS_TOKEN_CONTRACT_ADDRESS =
|
||||||
|
'0xfa6279293dfa5b38486ee179e4ddf6806c517a49'; // gitleaks:allow
|
||||||
|
|||||||
@@ -8,7 +8,10 @@ import { SelfAppBuilder } from '@selfxyz/common/utils/appType';
|
|||||||
|
|
||||||
import { selfLogoReverseUrl } from '@/consts/links';
|
import { selfLogoReverseUrl } from '@/consts/links';
|
||||||
import { getOrGeneratePointsAddress } from '@/providers/authProvider';
|
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';
|
import type { IncomingPoints } from '@/services/points/types';
|
||||||
|
|
||||||
export type WhitelistedContract = {
|
export type WhitelistedContract = {
|
||||||
|
|||||||
@@ -4,5 +4,10 @@ path = ".gitleaks.toml"
|
|||||||
[allowlist]
|
[allowlist]
|
||||||
description = "Project-specific overrides"
|
description = "Project-specific overrides"
|
||||||
paths = [
|
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}['"]''',
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user