From cac965932ed310ae529475fabf47874d706ac959 Mon Sep 17 00:00:00 2001 From: Justin Hernandez Date: Mon, 29 Sep 2025 17:46:01 -0700 Subject: [PATCH 1/2] fix ios deploy workflow for v2.6.8 (#1142) * update readme * fix ios deploy pipeline * kick off during staging merge --- .github/workflows/mobile-deploy-auto.yml | 4 ++-- .github/workflows/mobile-deploy.yml | 16 ++++++---------- README.md | 15 +++++++++------ 3 files changed, 17 insertions(+), 18 deletions(-) diff --git a/.github/workflows/mobile-deploy-auto.yml b/.github/workflows/mobile-deploy-auto.yml index 3200171fc..ec1a73fad 100644 --- a/.github/workflows/mobile-deploy-auto.yml +++ b/.github/workflows/mobile-deploy-auto.yml @@ -3,7 +3,7 @@ name: Mobile Auto Deploy on: pull_request: types: [closed] - branches: [main, dev] + branches: [staging] paths: - "app/**" - "!app/**/*.md" @@ -46,7 +46,7 @@ jobs: if [[ "${{ github.base_ref }}" == "main" ]]; then echo "deployment_track=production" >> $GITHUB_OUTPUT echo "๐Ÿš€ Deployment track: production" - elif [[ "${{ github.base_ref }}" == "dev" ]]; then + elif [[ "${{ github.base_ref }}" == "staging" ]]; then echo "deployment_track=internal" >> $GITHUB_OUTPUT echo "๐Ÿงช Deployment track: internal testing" fi diff --git a/.github/workflows/mobile-deploy.yml b/.github/workflows/mobile-deploy.yml index f83171d12..8fa2787e0 100644 --- a/.github/workflows/mobile-deploy.yml +++ b/.github/workflows/mobile-deploy.yml @@ -177,11 +177,8 @@ jobs: uses: ./.github/actions/cache-bundler with: path: ${{ env.APP_PATH }}/ios/vendor/bundle - key: ${{ runner.os }}-ruby${{ env.RUBY_VERSION }}-gems-${{ env.GH_CACHE_VERSION }}-${{ env.GH_GEMS_CACHE_VERSION }}-${{ hashFiles('app/Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-ruby${{ env.RUBY_VERSION }}-gems-${{ env.GH_CACHE_VERSION }}-${{ env.GH_GEMS_CACHE_VERSION }}-${{ hashFiles('app/Gemfile.lock') }}- - ${{ runner.os }}-ruby${{ env.RUBY_VERSION }}-gems-${{ env.GH_CACHE_VERSION }}-${{ env.GH_GEMS_CACHE_VERSION }}- - ${{ runner.os }}-ruby${{ env.RUBY_VERSION }}-gems-${{ env.GH_CACHE_VERSION }}- + lock-file: app/Gemfile.lock + cache-version: ${{ env.GH_CACHE_VERSION }}-${{ env.GH_GEMS_CACHE_VERSION }}-ruby${{ env.RUBY_VERSION }} - name: Cache CocoaPods id: pods-cache @@ -451,6 +448,8 @@ jobs: - name: Build Dependencies (iOS) if: inputs.platform != 'android' + env: + SELFXYZ_INTERNAL_REPO_PAT: ${{ secrets.SELFXYZ_INTERNAL_REPO_PAT }} run: | echo "๐Ÿ—๏ธ Building SDK dependencies..." cd ${{ env.APP_PATH }} @@ -727,11 +726,8 @@ jobs: uses: ./.github/actions/cache-bundler with: path: ${{ env.APP_PATH }}/ios/vendor/bundle - key: ${{ runner.os }}-ruby${{ env.RUBY_VERSION }}-gems-${{ env.GH_CACHE_VERSION }}-${{ env.GH_GEMS_CACHE_VERSION }}-${{ hashFiles('app/Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-ruby${{ env.RUBY_VERSION }}-gems-${{ env.GH_CACHE_VERSION }}-${{ env.GH_GEMS_CACHE_VERSION }}-${{ hashFiles('app/Gemfile.lock') }}- - ${{ runner.os }}-ruby${{ env.RUBY_VERSION }}-gems-${{ env.GH_CACHE_VERSION }}-${{ env.GH_GEMS_CACHE_VERSION }}- - ${{ runner.os }}-ruby${{ env.RUBY_VERSION }}-gems-${{ env.GH_CACHE_VERSION }}- + lock-file: app/Gemfile.lock + cache-version: ${{ env.GH_CACHE_VERSION }}-${{ env.GH_GEMS_CACHE_VERSION }}-ruby${{ env.RUBY_VERSION }} - name: Cache Gradle dependencies id: gradle-cache diff --git a/README.md b/README.md index ae42dc592..b8618ecde 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Monorepo for Self. -Self is an identity wallet that lets users generate privacy-preserving proofs from government-issued IDs such as passports and ID cards. +Self is an identity wallet that lets users generate privacy-preserving proofs from government-issued IDs such as passports, ID cards, and Aadhaar cards. By scanning the NFC chip in their ID document, users can prove their validity while only revealing specific attributes such as age, nationality or simply humanity. Under the hood, Self uses zk-SNARKs to make sure personal data is redacted, but the document is verified. @@ -14,16 +14,19 @@ Use cases unlocked include: - **Wallet recovery**: Safeguard assets using IDs as recovery sources - **Compliance**: Check a user is not part of a sanctioned entity list -Currently, Self supports electronic passports and biometric ID cards following the ICAO standards. Support for new identity documents is on the way! +Currently, Self supports electronic passports, biometric ID cards following the ICAO standards, and Aadhaar cards. Support for new identity documents is on the way! [Checkout the docs](https://docs.self.xyz/) to add Self to your project. ## FAQ -#### Is my passport supported? +#### Is my document supported? -Biometric passports have the [biometric passport logo](https://en.wikipedia.org/wiki/Biometric_passport) on their front cover. -Checkout our [coverage map here](http://map.self.xyz/). +**Passports:** Biometric passports have the [biometric passport logo](https://en.wikipedia.org/wiki/Biometric_passport) on their front cover. + +**Aadhaar:** Indian [Aadhaar](https://en.wikipedia.org/wiki/Aadhaar) cards are supported for privacy-preserving identity verification. + +**Coverage:** Checkout our [coverage map here](http://map.self.xyz/) to see supported documents and countries. #### What can I request/prove with Self? @@ -54,7 +57,7 @@ The International Civil Aviation Organization (ICAO) is a specialized agency of ## Project Ideas - Combine Self with other identification mechanisms as in [Vitalik's pluralistic identity regime](https://vitalik.eth.limo/general/2025/06/28/zkid.html). -- Help adding support for other identity documents to Self, such as [Aadhaar](https://github.com/anon-aadhaar), [Japan's my number cards](https://github.com/MynaWallet/monorepo) or [Taiwan DID](https://github.com/tw-did/tw-did/). +- Help adding support for other identity documents to Self, such as [Japan's my number cards](https://github.com/MynaWallet/monorepo) or [Taiwan DID](https://github.com/tw-did/tw-did/). - Build a social network/anonymous message board for people from one specific country. - Create a sybil-resistance tool to protect social networks against spambots. - Build an airdrop farming protection tool. From 9ebb9166db168f74a9f7c10256ae0ce3d5175608 Mon Sep 17 00:00:00 2001 From: Justin Hernandez Date: Mon, 29 Sep 2025 19:02:52 -0700 Subject: [PATCH 2/2] small tweaks to bump build v2.6.8 (#1144) * small tweaks to bump build * also run mobile e2e and mobile sdk changes * run mobile demo on sdk changes --- .github/workflows/mobile-e2e.yml | 1 + .github/workflows/mobile-sdk-demo-ci.yml | 1 + packages/mobile-sdk-alpha/src/client.ts | 6 +++--- packages/mobile-sdk-alpha/src/proving/provingMachine.ts | 1 - packages/mobile-sdk-demo/android/build.gradle | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/mobile-e2e.yml b/.github/workflows/mobile-e2e.yml index d7a225eea..9b87d5c1a 100644 --- a/.github/workflows/mobile-e2e.yml +++ b/.github/workflows/mobile-e2e.yml @@ -24,6 +24,7 @@ on: - main paths: - "app/**" + - "packages/mobile-sdk-alpha/**" - ".github/workflows/mobile-e2e.yml" jobs: diff --git a/.github/workflows/mobile-sdk-demo-ci.yml b/.github/workflows/mobile-sdk-demo-ci.yml index 601622861..2bc07d764 100644 --- a/.github/workflows/mobile-sdk-demo-ci.yml +++ b/.github/workflows/mobile-sdk-demo-ci.yml @@ -3,6 +3,7 @@ name: Mobile SDK Demo CI on: pull_request: paths: + - "packages/mobile-sdk-alpha/**" - "packages/mobile-sdk-demo/**" - ".github/workflows/mobile-sdk-demo-ci.yml" - ".github/actions/**" diff --git a/packages/mobile-sdk-alpha/src/client.ts b/packages/mobile-sdk-alpha/src/client.ts index 26d954b42..a73d69ecd 100644 --- a/packages/mobile-sdk-alpha/src/client.ts +++ b/packages/mobile-sdk-alpha/src/client.ts @@ -118,11 +118,11 @@ export function createSelfClient({ return _adapters.scanner.scan(opts); } - async function trackEvent(event: string, payload?: TrackEventParams): Promise { - if (!adapters.analytics) { + function trackEvent(event: string, payload?: TrackEventParams): void { + if (!_adapters.analytics) { return; } - return adapters.analytics.trackEvent(event, payload); + _adapters.analytics.trackEvent(event, payload); } /** * Retrieves the private key via the auth adapter. diff --git a/packages/mobile-sdk-alpha/src/proving/provingMachine.ts b/packages/mobile-sdk-alpha/src/proving/provingMachine.ts index c7b1eca71..fd03f2c86 100644 --- a/packages/mobile-sdk-alpha/src/proving/provingMachine.ts +++ b/packages/mobile-sdk-alpha/src/proving/provingMachine.ts @@ -484,7 +484,6 @@ export const useProvingStore = create((set, get) => { secret: null, circuitType: null, env: null, - selfApp: null, error_code: null, reason: null, endpointType: null, diff --git a/packages/mobile-sdk-demo/android/build.gradle b/packages/mobile-sdk-demo/android/build.gradle index df682b4c5..8f600841a 100644 --- a/packages/mobile-sdk-demo/android/build.gradle +++ b/packages/mobile-sdk-demo/android/build.gradle @@ -4,7 +4,7 @@ buildscript { minSdkVersion = 24 compileSdkVersion = 35 targetSdkVersion = 35 - ndkVersion = "27.0.11718014" + ndkVersion = "27.0.12077973" kotlinVersion = "1.9.24" } repositories {