Skip to content
Merged
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
8fe32d8
Feat: Show error code in SDK (#500)
seshanthS Apr 15, 2025
dc5529b
Fix input generation for 521bit curves (#481)
0xturboblitz Apr 17, 2025
5904234
Feat/simpler contract sdk (#519)
remicolin Apr 17, 2025
b2a5ef0
forgot to include package update (#521)
motemotech Apr 17, 2025
7297659
Bump version to 2.5.1 (#522)
transphorm Apr 17, 2025
3522138
[SEL-154] Step 1: Scan your passport (#511)
transphorm Apr 18, 2025
91d86b6
[SEL-46] FE: Add minimum bottom padding (#510)
transphorm Apr 18, 2025
28ec407
fix: improve error handling for forbidden countries list mismatch (#494)
crStiv Apr 18, 2025
3c51fea
DX: Auto format on save (#526)
transphorm Apr 21, 2025
57cb54a
remove artefacts
remicolin Apr 21, 2025
0d7d117
SEL-187: Make bottom layout scrollable on smaller screens (#525)
transphorm Apr 24, 2025
0bf324e
Feat/extend id support (#517)
remicolin Apr 24, 2025
fdfc053
Bump build versions for 2.5.1 (#531)
transphorm Apr 25, 2025
f5e45af
display error animation on failure on loading screen (#532)
remicolin Apr 25, 2025
f0d2f6d
ci: bump actions/checkout to v4 (#529)
dizer-ti Apr 26, 2025
bb1540e
fix italy (#530)
0xturboblitz Apr 27, 2025
af44cd8
Fix/proving machine endpoint type (#538)
remicolin Apr 28, 2025
81fd3e8
fix splash screen error (#539)
remicolin Apr 28, 2025
b1b6c20
New bug fix build for v2.5.1 (#540)
transphorm Apr 28, 2025
ec6c2ca
SEL-178: Improve haptic feedback library (#535)
transphorm Apr 29, 2025
2d8c780
add delete scripts (#542)
motemotech Apr 29, 2025
f5e243c
update staging registry address (#545)
motemotech Apr 30, 2025
7e89698
feat: Add Disclose history (#533)
seshanthS May 2, 2025
5163761
allow a scale of up to 1.3 (#546)
transphorm May 6, 2025
cc16906
add common sdk (#537)
remicolin May 7, 2025
4ff4c23
better connection check (#548)
transphorm May 7, 2025
a08904b
Clean up navigation and setup Jest (#549)
transphorm May 9, 2025
2ff57e2
bump build (#552)
transphorm May 13, 2025
73f3814
Eth dublin (#554)
remicolin May 13, 2025
2bedf09
log more dsc info (#558)
remicolin May 15, 2025
3db25aa
Push notification (#536)
motemotech May 15, 2025
7ff89d5
Fix deeplink 2 (#560)
remicolin May 16, 2025
9ed51fd
feat: Use vision for MRZ scanning (SEL-47) (#557)
seshanthS May 16, 2025
3f3db3c
SEL-255: improved loading screen with estimated wait times (#550)
transphorm May 16, 2025
e059f06
Bump v2.5.1: ios 122; android 60 (#561)
transphorm May 16, 2025
5c7caea
update react native keychain to fix could not recover issue (#564)
transphorm May 19, 2025
b6da665
fix: update ocr corrections (#563)
seshanthS May 20, 2025
6c5ff79
Chore: Polish proof history to prep for release (#566)
transphorm May 20, 2025
5fa10db
Bump v2.5.1; ios 123; android 62 (#565)
transphorm May 20, 2025
5a3bd28
Feature/add prettier formatter (#568)
kevinsslin May 23, 2025
640530d
fix nationality using mock passports
remicolin May 23, 2025
c6c4b35
SEL-181 & SEL-252: Update mobile app events (#570)
transphorm May 26, 2025
2e6138f
Feature/enhance self verification root (#569)
kevinsslin May 26, 2025
4dc2acd
fix getCircuitName function (#575)
remicolin May 27, 2025
3a60cde
feat: Read ID cards (#571)
seshanthS May 27, 2025
b7a79a4
Update GitHub checkout action from v3 to v4 (#544)
leopardracer May 27, 2025
dfb009b
Bump build version 2.5.2 to test react native keychain (#572)
transphorm May 27, 2025
7800964
update app/README.md toolchain instructions (#140)
foolo May 28, 2025
eb7e64d
bump build (#580)
transphorm May 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/actions/mobile-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
sudo update-locale LANG=en_US.UTF-8

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Ruby environment
uses: ruby/setup-ruby@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
environment: development
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Circom installation from https://github.com/erhant/circomkit/blob/main/.github/workflows/tests.yml
- name: Install dependencies
Expand Down
28 changes: 17 additions & 11 deletions .github/workflows/mobile-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ on:

jobs:
build-ios:
# disable for now, will fix soon
if: false
runs-on: macos-latest
steps:
- name: Set up Xcode
Expand Down Expand Up @@ -309,41 +311,41 @@ jobs:
- name: Remove project.pbxproj updates we don't want to commit
run: |
PBXPROJ_FILE="app/ios/Self.xcodeproj/project.pbxproj"

# Create a temporary file to store version info
echo "Extracting version information..."
rm -f versions.txt
grep -E 'CURRENT_PROJECT_VERSION = [0-9]+;|MARKETING_VERSION = [0-9]+\.[0-9]+\.[0-9]+;' "${PBXPROJ_FILE}" > versions.txt

# Check if we have version information
if [ -s versions.txt ]; then
echo "Found version information. Resetting file and re-applying versions..."

# Store the version values
CURRENT_VERSION=$(grep 'CURRENT_PROJECT_VERSION' versions.txt | head -1 | sed 's/.*CURRENT_PROJECT_VERSION = \([0-9]*\);.*/\1/')
MARKETING_VERSION=$(grep 'MARKETING_VERSION' versions.txt | head -1 | sed 's/.*MARKETING_VERSION = \([0-9]*\.[0-9]*\.[0-9]*\);.*/\1/')

echo "Current version: $CURRENT_VERSION"
echo "Marketing version: $MARKETING_VERSION"

# Reset the file to HEAD
git checkout HEAD -- "${PBXPROJ_FILE}"

# Update the versions if they exist
if [ ! -z "$CURRENT_VERSION" ]; then
sed -i '' "s/\(CURRENT_PROJECT_VERSION = \)[0-9]*;/\1$CURRENT_VERSION;/g" "${PBXPROJ_FILE}"
fi

if [ ! -z "$MARKETING_VERSION" ]; then
sed -i '' "s/\(MARKETING_VERSION = \)[0-9]*\.[0-9]*\.[0-9]*;/\1$MARKETING_VERSION;/g" "${PBXPROJ_FILE}"
fi

echo "Version information successfully applied."
else
echo "No version information found. Resetting file..."
git checkout HEAD -- "${PBXPROJ_FILE}"
fi

# Clean up
rm -f versions.txt

Expand All @@ -353,13 +355,16 @@ jobs:
app_path: ${{ env.APP_PATH }}

- name: Commit updated build number
if: ${{ !env.ACT }}
# disable for now, commit doesn't work as expected
if: false #${{ !env.ACT }}
uses: ./.github/actions/push-changes
with:
commit_message: "incrementing ios build number for version ${{ env.VERSION }}"
commit_paths: "./app/ios/OpenPassport/Info.plist ./app/ios/Self.xcodeproj/project.pbxproj"

build-android:
# disable for now, will fix soon
if: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -479,7 +484,8 @@ jobs:
app_path: ${{ env.APP_PATH }}

- name: Commit updated build version
if: ${{ !env.ACT }}
# disable for now, commit doesn't work as expected
if: false #${{ !env.ACT }}
uses: ./.github/actions/push-changes
with:
commit_message: "incrementing android build version for version ${{ env.VERSION }}"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
core_changed: ${{ steps.check-version.outputs.core_changed }}
qrcode_changed: ${{ steps.check-version.outputs.qrcode_changed }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2

Expand All @@ -38,7 +38,7 @@ jobs:
if: needs.detect-changes.outputs.core_changed == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
if: needs.detect-changes.outputs.qrcode_changed == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
Expand All @@ -95,4 +95,4 @@ jobs:
cd sdk/qrcode
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"arrowParens": "avoid",
"bracketSameLine": false,
"bracketSpacing": true,
"singleQuote": true,
"trailingComma": "all",
"tabWidth": 2,
"useTabs": false,
"semi": true,
"endOfLine": "auto",
"parser": "typescript"
}
70 changes: 70 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
// Formatting & Linting
"editor.formatOnSave": false,
"editor.formatOnPaste": false,

// Path-specific formatting
"[**/app/**]": {
"editor.formatOnSave": true
},

// ESLint Configuration
"eslint.run": "onType",
"eslint.format.enable": true,
"eslint.lintTask.enable": true,
"eslint.quiet": false,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"eslint.probe": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],

// Auto-fix Actions
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always",
},

// TypeScript Specific Rules
"typescript.format.enable": false, // Disable VS Code's built-in formatter for TypeScript
"[typescript]": {
"editor.defaultFormatter": null // Let ESLint handle TypeScript formatting
},
"[typescriptreact]": {
"editor.defaultFormatter": null // Let ESLint handle TypeScript React formatting
},

// Indentation & Whitespace
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.indentSize": "tabSize",
"editor.detectIndentation": true,
"editor.useTabStops": true,
"editor.stickyTabStops": true,
"editor.trimAutoWhitespace": true,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,

// Editor Visual Aids
"editor.renderWhitespace": "selection",
"editor.renderControlCharacters": true,
"editor.rulers": [100],
"editor.wordWrap": "off",
"editor.wrappingIndent": "none",

// Editor suggestions
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": false
}
}
22 changes: 21 additions & 1 deletion app/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
module.exports = {
root: true,
extends: '@react-native',
extends: ['@react-native', 'plugin:prettier/recommended'],
plugins: ['simple-import-sort', 'prettier'],
ignorePatterns: ['ios/', 'android/', 'deployments/', 'node_modules/'],
rules: {
// Import sorting rules
'simple-import-sort/imports': 'warn',
'simple-import-sort/exports': 'warn',

// Add prettier rule to show prettier errors as ESLint errors
'prettier/prettier': [
'warn',
{
// Fix for TypeScript union types indentation
typescriptBracketSpacing: true,
typeAssertionStyle: 'as',
},
{ usePrettierrc: true },
],

// Preserve project-specific rule exemptions
'react-native/no-inline-styles': 'off',
'react-hooks/exhaustive-deps': 'off',

// Override any ESLint rules that conflict with the TypeScript union type formatting
'@typescript-eslint/indent': 'off',
},
};
11 changes: 11 additions & 0 deletions app/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"arrowParens": "avoid",
"bracketSameLine": false,
"bracketSpacing": true,
"singleQuote": true,
"trailingComma": "all",
"tabWidth": 2,
"useTabs": false,
"semi": true,
"endOfLine": "auto"
}
11 changes: 0 additions & 11 deletions app/.prettierrc.js

This file was deleted.

28 changes: 14 additions & 14 deletions app/App.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
import React from 'react';
import 'react-native-get-random-values';

import { Buffer } from 'buffer';
import React from 'react';
import { YStack } from 'tamagui';

import AppNavigation from './src/Navigation';
import ErrorBoundary from './src/components/ErrorBoundary';
import AppNavigation from './src/navigation';
import { initSentry, wrapWithSentry } from './src/Sentry';
import { AppProvider } from './src/stores/appProvider';
import { AuthProvider } from './src/stores/authProvider';
import { DatabaseProvider } from './src/stores/databaseProvider';
import { PassportProvider } from './src/stores/passportDataProvider';
import { ProofProvider } from './src/stores/proofProvider';

initSentry();

global.Buffer = Buffer;

function App(): React.JSX.Element {
return (
<YStack f={1} h="100%" w="100%">
<AuthProvider>
<PassportProvider>
<AppProvider>
<ProofProvider>
<ErrorBoundary>
<YStack f={1} h="100%" w="100%">
<AuthProvider>
<PassportProvider>
<DatabaseProvider>
<AppNavigation />
</ProofProvider>
</AppProvider>
</PassportProvider>
</AuthProvider>
</YStack>
</DatabaseProvider>
</PassportProvider>
</AuthProvider>
</YStack>
</ErrorBoundary>
);
}

Expand Down
13 changes: 7 additions & 6 deletions app/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,18 @@ GEM
artifactory (3.0.17)
atomos (0.1.3)
aws-eventstream (1.3.2)
aws-partitions (1.1069.0)
aws-sdk-core (3.220.1)
aws-partitions (1.1088.0)
aws-sdk-core (3.222.2)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.992.0)
aws-sigv4 (~> 1.9)
base64
jmespath (~> 1, >= 1.6.1)
logger
aws-sdk-kms (1.99.0)
aws-sdk-core (~> 3, >= 3.216.0)
aws-sigv4 (~> 1.5)
aws-sdk-s3 (1.182.0)
aws-sdk-s3 (1.183.0)
aws-sdk-core (~> 3, >= 3.216.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.5)
Expand Down Expand Up @@ -129,7 +130,7 @@ GEM
faraday_middleware (1.2.1)
faraday (~> 1.0)
fastimage (2.4.0)
fastlane (2.227.0)
fastlane (2.227.1)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.8, < 3.0.0)
artifactory (~> 3.0)
Expand Down Expand Up @@ -169,7 +170,7 @@ GEM
tty-spinner (>= 0.8.0, < 1.0.0)
word_wrap (~> 1.0.0)
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.4.0)
xcpretty (~> 0.4.1)
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
fastlane-plugin-increment_version_code (0.4.3)
fastlane-plugin-versioning_android (0.1.1)
Expand Down Expand Up @@ -292,7 +293,7 @@ GEM
colored2 (~> 3.1)
nanaimo (~> 0.4.0)
rexml (>= 3.3.6, < 4.0)
xcpretty (0.4.0)
xcpretty (0.4.1)
rouge (~> 3.28.0)
xcpretty-travis-formatter (1.0.1)
xcpretty (~> 0.2, >= 0.0.7)
Expand Down
2 changes: 1 addition & 1 deletion app/android/android-passport-reader/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ dependencies {
implementation 'commons-codec:commons-codec:1.13'

//Camera
implementation 'io.fotoapparat:fotoapparat:2.7.0'
implementation "com.github.RedApparat:Fotoapparat:2.7.0"

implementation 'androidx.multidex:multidex:2.0.1'

Expand Down
Loading