Skip to content

Commit 20fa5c5

Browse files
authored
[SELF-700] feat: add mock document generator demo (#995)
* feat: add mock document generator demo * feat: add mock document generator * fixes * chore: refresh workflow cache * update lock * build * updates * more fixes * code rabbit feedback * compiles * save wip * updates * merge with dev and fixes * fix: align hoisting and demo Jest resolver (#1003) * chore(app): map common src paths and declare svg flag module * ci fix * update lock * save wip * chore: address yarn lock issues (#1004) * address yarn lock issues * fix postinstall * fix ci * use metro js proxy * android build working for /app * save wip * fix merge * pipeline fixes * format * fix pipelines * bump limit and split * fix pipeline issues * chore: decouple demo app build (#1013) * chore: decouple demo app build * chore: move demo app to workspace * chore: unpublish demo workspace * fix mobile sdk tests * updates * remove polyfills * update merge * update resolutions * update resolutions * fix merge * fix paths * save wip * save wip fixes rd2 * working android * update lock * save wip ios building * fix merge * readd public key * fixes * ci fixes * fixes * fix web building * fix ci * fix tests * update lock * fix ci rd2 * formatting and fix ci * fix * finalize ci fixes * fix tests and metro config paths for building * save wip * install missing package for pipeline * fix wip app building * wip react config * save working emulator compile * first round of pr fixes and feedback * clean up demo app artifacts from sdk * Add Gradle wrapper files for mobile-sdk-demo Android build - Added gradlew, gradlew.bat, and gradle/wrapper/ directory - Updated .gitignore to allow committing Gradle wrapper files - Fixes Android build error: spawn ./gradlew ENOENT * codex feedback and fixes * fix tests * file renames * revert back to dev * add types * coderabbit fixes * fix tests * fix tests * fix test * fixes * fix wip coderabbit issues * coderabbit suggestions rd 2 * fix ci pipelines and addresss warnings * cr fixes * convert kebab to camelCase * save wip fixes * update reinstall and lock files * fixes * remove file * fix lint * fix polyfill fallback issues * ensure that mock document is not on ofac list * prettier
1 parent 0dc8b18 commit 20fa5c5

File tree

183 files changed

+4314
-1452
lines changed

Some content is hidden

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

183 files changed

+4314
-1452
lines changed

.cursorignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ app/src/assets/animations/*.json
244244
app/src/assets/fonts/
245245

246246
# Yarn configuration
247-
.yarnrc.yml
248247
**/.yarn/
249248

250249
# Certificate generation config

.github/workflows/mobile-e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
- name: Build dependencies (outside emulator)
108108
run: |
109109
echo "Building dependencies..."
110-
yarn workspace @selfxyz/mobile-app run build:deps --silent || { echo "❌ Dependency build failed"; exit 1; }
110+
yarn workspace @selfxyz/mobile-app run build:deps || { echo "❌ Dependency build failed"; exit 1; }
111111
echo "✅ Dependencies built successfully"
112112
- name: Clone android-passport-reader
113113
uses: ./.github/actions/clone-android-passport-reader
@@ -293,7 +293,7 @@ jobs:
293293
- name: Build dependencies (outside main flow)
294294
run: |
295295
echo "Building dependencies..."
296-
yarn workspace @selfxyz/mobile-app run build:deps --silent || { echo "❌ Dependency build failed"; exit 1; }
296+
yarn workspace @selfxyz/mobile-app run build:deps || { echo "❌ Dependency build failed"; exit 1; }
297297
echo "✅ Dependencies built successfully"
298298
- name: Install iOS dependencies
299299
run: |

.github/workflows/mobile-sdk-demo-ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Mobile SDK Demo CI
33
on:
44
pull_request:
55
paths:
6-
- "packages/mobile-sdk-alpha/demo-app/**"
6+
- "packages/mobile-sdk-demo/**"
77
- ".github/workflows/mobile-sdk-demo-ci.yml"
88
- ".github/actions/**"
99

@@ -18,9 +18,14 @@ jobs:
1818
node-version-file: .nvmrc
1919
- name: Install Dependencies
2020
uses: ./.github/actions/yarn-install
21+
- name: Build dependencies (topological)
22+
shell: bash
23+
run: |
24+
# Build demo app and all its transitive workspace deps in the correct order
25+
yarn workspaces foreach -R -t --from mobile-sdk-demo run build
2126
- name: Run demo app tests
2227
run: |
23-
yarn workspace demo-app test
28+
yarn workspace mobile-sdk-demo test
2429
- name: Build demo app
2530
run: |
26-
yarn workspace demo-app build
31+
yarn build:demo

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ showcase
1010
output/*
1111
*.tsbuildinfo
1212
.yarnrc.yml
13+
.giga/tasks/*
1314
package-lock.json
1415

1516
# CI-generated tarballs (don't commit these!)

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
nodeLinker: node-modules
2+
nmHoistingLimits: workspaces
23
enableGlobalCache: true
34
enableScripts: true
45
checksumBehavior: "update"

app/Gemfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ GEM
2525
artifactory (3.0.17)
2626
atomos (0.1.3)
2727
aws-eventstream (1.4.0)
28-
aws-partitions (1.1161.0)
29-
aws-sdk-core (3.232.0)
28+
aws-partitions (1.1166.0)
29+
aws-sdk-core (3.233.0)
3030
aws-eventstream (~> 1, >= 1.3.0)
3131
aws-partitions (~> 1, >= 1.992.0)
3232
aws-sigv4 (~> 1.9)
3333
base64
3434
bigdecimal
3535
jmespath (~> 1, >= 1.6.1)
3636
logger
37-
aws-sdk-kms (1.112.0)
37+
aws-sdk-kms (1.113.0)
3838
aws-sdk-core (~> 3, >= 3.231.0)
3939
aws-sigv4 (~> 1.5)
40-
aws-sdk-s3 (1.199.0)
40+
aws-sdk-s3 (1.199.1)
4141
aws-sdk-core (~> 3, >= 3.231.0)
4242
aws-sdk-kms (~> 1)
4343
aws-sigv4 (~> 1.5)
@@ -225,7 +225,7 @@ GEM
225225
i18n (1.14.7)
226226
concurrent-ruby (~> 1.0)
227227
jmespath (1.6.2)
228-
json (2.13.2)
228+
json (2.15.0)
229229
jwt (2.10.2)
230230
base64
231231
logger (1.7.0)

app/declarations.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ declare module '*.svg' {
1919
const content: React.FC<SvgProps>;
2020
export default content;
2121
}
22+
23+
declare module 'react-native-svg-circle-country-flags';

app/ios/Podfile

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ if linkage != nil
2727
end
2828

2929
def using_https_git_auth?
30-
begin
31-
# backticks run command in shell and capture stdout, 2>&1 captures stderr as well
32-
auth_data = `gh auth status 2>&1`
33-
auth_data.include?('Logged in to github.com account') &&
34-
auth_data.include?('Git operations protocol: https')
35-
rescue => e
36-
puts 'gh auth status failed, assuming no HTTPS auth -- will try SSH'
37-
false
38-
end
30+
begin
31+
# backticks run command in shell and capture stdout, 2>&1 captures stderr as well
32+
auth_data = `gh auth status 2>&1`
33+
auth_data.include?("Logged in to github.com account") &&
34+
auth_data.include?("Git operations protocol: https")
35+
rescue => e
36+
puts "gh auth status failed, assuming no HTTPS auth -- will try SSH"
37+
false
3938
end
39+
end
4040

4141
target "Self" do
4242
config = use_native_modules!
@@ -72,7 +72,7 @@ target "Self" do
7272
pod "lottie-ios"
7373
pod "SwiftQRScanner", :git => "https://github.com/vinodiOS/SwiftQRScanner"
7474
pod "Mixpanel-swift", "~> 5.0.0"
75-
pod "RNReactNativeHapticFeedback", :path => "../../node_modules/react-native-haptic-feedback", :modular_headers => true
75+
# RNReactNativeHapticFeedback is handled by autolinking
7676

7777
use_react_native!(
7878
:path => config[:reactNativePath],
@@ -85,7 +85,6 @@ target "Self" do
8585
pod "Firebase", :modular_headers => true
8686
pod "FirebaseCore", :modular_headers => true
8787
pod "FirebaseCoreInternal", :modular_headers => true
88-
pod "FirebaseAnalytics", :modular_headers => true
8988
pod "GoogleUtilities", :modular_headers => true
9089
pod "FirebaseMessaging"
9190

@@ -165,7 +164,7 @@ target "Self" do
165164
if File.exist?(qkCutoutView)
166165
# Ensure the file is writable
167166
system("chmod u+w #{qkCutoutView}")
168-
167+
169168
text = File.read(qkCutoutView)
170169
# Only modify if the line exists and is not already commented
171170
if text.include?("addBorderAroundCutout()") && !text.include?("// addBorderAroundCutout()")

0 commit comments

Comments
 (0)