diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d82e574..9984ffc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: strategy: fail-fast: false matrix: - app: [tictactogether, stocksync, orderup, cowrite, outagenet, yardgate, eventfloor, agrimesh, chargecatch] + app: [tictactogether, stocksync, orderup, cowrite, outagenet, yardgate, eventfloor, agrimesh, chargecatch, surfrroll] steps: - uses: actions/checkout@v7 - uses: pnpm/action-setup@v6 @@ -62,10 +62,30 @@ jobs: distribution: temurin java-version: 17 cache: gradle + # One cache key per app — avoids matrix jobs overwriting the same Gradle + # cache while Reanimated/Worklets prefab packages are half-built. + cache-dependency-path: | + apps/${{ matrix.app }}/android/**/*.gradle* + apps/${{ matrix.app }}/android/gradle/wrapper/gradle-wrapper.properties - run: pnpm install --frozen-lockfile - name: Build debug APK working-directory: apps/${{ matrix.app }}/android - run: ./gradlew assembleDebug -PreactNativeArchitectures=x86_64 --no-daemon + run: | + GRADLE=(./gradlew -PreactNativeArchitectures=x86_64 --no-daemon) + # Prefab packages must exist before :app:configureCMakeDebug (Reanimated race). + PREFAB=( + :react-native-worklets:prefabDebugPackage + :react-native-reanimated:prefabDebugPackage + ) + for attempt in 1 2 3; do + if "${GRADLE[@]}" "${PREFAB[@]}" assembleDebug; then + exit 0 + fi + echo "::warning::assembleDebug failed (attempt $attempt), clearing app native build dirs" + rm -rf app/build app/.cxx + sleep $((attempt * 10)) + done + exit 1 ios: needs: check @@ -93,6 +113,8 @@ jobs: scheme: AgriMesh - app: chargecatch scheme: ChargeCatch + - app: surfrroll + scheme: SurfrRoll steps: - uses: actions/checkout@v7 - uses: pnpm/action-setup@v6 diff --git a/.gitignore b/.gitignore index 27e4602..7e4a0d6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules/ +.pnpm-store/ .turbo/ .DS_Store *.log diff --git a/README.md b/README.md index 8ddf87d..46bc79d 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ accounts or server, and shows a different way to keep shared state in sync. | Event Floor | [`apps/eventfloor`](./apps/eventfloor) | Live events: Flow A staff MLS dispatch + Flow B gate admission ledger and mock platform sync (`scanId` dedupe). | | AgriMesh | [`apps/agrimesh`](./apps/agrimesh) | Agriculture: field readings store-and-forward over multi-hop Bluetooth mesh, office-edge ledger, mock farm sync (`readingId` dedupe). | | ChargeCatch | [`apps/chargecatch`](./apps/chargecatch) | EV charge site: local session ledger on charge points, site hub over Bluetooth mesh, mock CMS reconciliation when head office link returns (`sessionId` dedupe). | +| SurfrRoll | [`apps/surfrroll`](./apps/surfrroll) | MitKat DataSurfr last mile: signed incident alerts and staff roll call (safe / help / SOS) over Bluetooth mesh, mock SOC upload when cloud link returns (`checkInId` dedupe). | Each app's README explains how to run it, how its sync works and what its tests cover. diff --git a/apps/surfrroll/.eslintrc.js b/apps/surfrroll/.eslintrc.js new file mode 100644 index 0000000..187894b --- /dev/null +++ b/apps/surfrroll/.eslintrc.js @@ -0,0 +1,4 @@ +module.exports = { + root: true, + extends: '@react-native', +}; diff --git a/apps/surfrroll/.gitignore b/apps/surfrroll/.gitignore new file mode 100644 index 0000000..7846bf0 --- /dev/null +++ b/apps/surfrroll/.gitignore @@ -0,0 +1,16 @@ +node_modules/ +.expo/ +dist/ +build/ +ios/Pods/ +ios/build/ +android/app/build/ +android/build/ +android/.gradle/ +**/.cxx/ +android/local.properties +*.jsbundle +.DS_Store +.env* +!.env.example +ios/.xcode.env.local diff --git a/apps/surfrroll/.prettierrc.json b/apps/surfrroll/.prettierrc.json new file mode 100644 index 0000000..0594d04 --- /dev/null +++ b/apps/surfrroll/.prettierrc.json @@ -0,0 +1 @@ +{"singleQuote":true,"trailingComma":"all","bracketSpacing":true} diff --git a/apps/surfrroll/App.tsx b/apps/surfrroll/App.tsx new file mode 100644 index 0000000..7dc4afa --- /dev/null +++ b/apps/surfrroll/App.tsx @@ -0,0 +1,194 @@ +import '@offline-app-examples/ui/global.css'; +import { Button, Text } from '@offline-app-examples/ui'; +import React, { useState } from 'react'; +import { Pressable, ScrollView, StatusBar, TextInput, View } from 'react-native'; +import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context'; +import { DEMO_CLIENT, EMPLOYEE_ROSTER, signInEmployee, type EmployeeSession } from './src/domain/roster'; +import { SurfrFlow, type SurfrRole } from './src/flows/SurfrFlow'; +import { SurfrHero } from './src/ui/illustrations'; + +type Setup = { + role: SurfrRole; + consoleName: string; + employee: EmployeeSession | null; +}; + +export default function App() { + const [setup, setSetup] = useState(null); + + if (setup) { + return ( + + + setSetup(null)} + /> + + ); + } + + return ( + + + + + ); +} + +function HomeLobby({ onStart }: { onStart: (setup: Setup) => void }) { + const [role, setRole] = useState('soc'); + const [name, setName] = useState('Mumbai SOC'); + const [employeeId, setEmployeeId] = useState(EMPLOYEE_ROSTER[0].employeeId); + const [pin, setPin] = useState(''); + + const defaults: Record = { + soc: 'Mumbai SOC', + staff: EMPLOYEE_ROSTER[0].displayName, + relay: 'Campus relay', + }; + + return ( + + + SurfrRoll + + {DEMO_CLIENT.name} — last mile for MitKat DataSurfr. Signed incident alerts and employee roll + call hop over Bluetooth mesh when cell and internet fail; check-ins reconcile to a mock SOC + when the cloud link returns (SDK 0.28). + + + + + { + const r = id as SurfrRole; + setRole(r); + setName(defaults[r]); + if (r === 'staff') { + setEmployeeId(EMPLOYEE_ROSTER[0].employeeId); + setPin(''); + } + }} + /> + {role === 'staff' ? ( + <> + + Employee (demo roster) + + + {EMPLOYEE_ROSTER.map((e) => ( + { + setEmployeeId(e.employeeId); + setName(e.displayName); + setPin(''); + }} + className={`rounded-xl border-2 px-4 py-3 ${employeeId === e.employeeId ? 'border-foreground bg-muted' : 'border-muted'}`} + > + {e.displayName} + + {e.office} · PIN on card + + + ))} + + + PIN + + + + ) : null} + + Device label + + + + + + ); +} + +function RolePick({ + options, + selected, + onSelect, +}: { + options: { id: string; title: string; hint: string }[]; + selected: string; + onSelect: (id: string) => void; +}) { + return ( + + {options.map((o) => ( + onSelect(o.id)} + className={`rounded-xl border-2 px-4 py-3 ${selected === o.id ? 'border-foreground bg-muted' : 'border-muted'}`} + > + {o.title} + {o.hint} + + ))} + + ); +} diff --git a/apps/surfrroll/Gemfile b/apps/surfrroll/Gemfile new file mode 100644 index 0000000..0263838 --- /dev/null +++ b/apps/surfrroll/Gemfile @@ -0,0 +1,17 @@ +source 'https://rubygems.org' + +# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version +ruby ">= 2.6.10" + +# Exclude problematic versions of cocoapods and activesupport that causes build failures. +gem 'cocoapods', '~> 1.16.0' +gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0' +gem 'xcodeproj', '>= 1.25.0', '< 1.28.0' +gem 'concurrent-ruby', '< 1.3.4' + +# Ruby 3.4.0 has removed some libraries from the standard library. +gem 'bigdecimal' +gem 'logger' +gem 'benchmark' +gem 'mutex_m' +gem 'nkf' diff --git a/apps/surfrroll/Gemfile.lock b/apps/surfrroll/Gemfile.lock new file mode 100644 index 0000000..0038ed2 --- /dev/null +++ b/apps/surfrroll/Gemfile.lock @@ -0,0 +1,200 @@ +GEM + remote: https://rubygems.org/ + specs: + CFPropertyList (3.0.8) + activesupport (7.2.4) + base64 + benchmark (>= 0.3) + bigdecimal + concurrent-ruby (~> 1.0, >= 1.3.1) + connection_pool (>= 2.2.5, < 3) + drb + i18n (>= 1.6, < 2) + logger (>= 1.4.2) + minitest (>= 5.1, < 6) + securerandom (>= 0.3) + tzinfo (~> 2.0, >= 2.0.5) + addressable (2.9.0) + public_suffix (>= 2.0.2, < 8.0) + algoliasearch (1.27.5) + httpclient (~> 2.8, >= 2.8.3) + json (>= 1.5.1) + atomos (0.1.3) + base64 (0.3.0) + benchmark (0.5.0) + bigdecimal (4.1.3) + claide (1.1.0) + cocoapods (1.16.2) + addressable (~> 2.8) + claide (>= 1.0.2, < 2.0) + cocoapods-core (= 1.16.2) + cocoapods-deintegrate (>= 1.0.3, < 2.0) + cocoapods-downloader (>= 2.1, < 3.0) + cocoapods-plugins (>= 1.0.0, < 2.0) + cocoapods-search (>= 1.0.0, < 2.0) + cocoapods-trunk (>= 1.6.0, < 2.0) + cocoapods-try (>= 1.1.0, < 2.0) + colored2 (~> 3.1) + escape (~> 0.0.4) + fourflusher (>= 2.3.0, < 3.0) + gh_inspector (~> 1.0) + molinillo (~> 0.8.0) + nap (~> 1.0) + ruby-macho (>= 2.3.0, < 3.0) + xcodeproj (>= 1.27.0, < 2.0) + cocoapods-core (1.16.2) + activesupport (>= 5.0, < 8) + addressable (~> 2.8) + algoliasearch (~> 1.0) + concurrent-ruby (~> 1.1) + fuzzy_match (~> 2.0.4) + nap (~> 1.0) + netrc (~> 0.11) + public_suffix (~> 4.0) + typhoeus (~> 1.0) + cocoapods-deintegrate (1.0.5) + cocoapods-downloader (2.1) + cocoapods-plugins (1.0.0) + nap + cocoapods-search (1.0.1) + cocoapods-trunk (1.6.0) + nap (>= 0.8, < 2.0) + netrc (~> 0.11) + cocoapods-try (1.2.0) + colored2 (3.1.2) + concurrent-ruby (1.3.3) + connection_pool (2.5.5) + drb (2.2.3) + escape (0.0.4) + ethon (0.18.0) + ffi (>= 1.15.0) + logger + ffi (1.17.4) + ffi (1.17.4-aarch64-linux-gnu) + ffi (1.17.4-aarch64-linux-musl) + ffi (1.17.4-arm-linux-gnu) + ffi (1.17.4-arm-linux-musl) + ffi (1.17.4-arm64-darwin) + ffi (1.17.4-x86-linux-gnu) + ffi (1.17.4-x86-linux-musl) + ffi (1.17.4-x86_64-darwin) + ffi (1.17.4-x86_64-linux-gnu) + ffi (1.17.4-x86_64-linux-musl) + fourflusher (2.3.1) + fuzzy_match (2.0.4) + gh_inspector (1.1.3) + httpclient (2.9.0) + mutex_m + i18n (1.15.2) + concurrent-ruby (~> 1.0) + json (3.1.0) + logger (1.7.0) + minitest (5.27.0) + molinillo (0.8.0) + mutex_m (0.3.0) + nanaimo (0.4.0) + nap (1.1.0) + netrc (0.11.0) + nkf (0.3.0) + public_suffix (4.0.7) + rexml (3.4.4) + ruby-macho (2.5.1) + securerandom (0.4.1) + typhoeus (1.6.0) + ethon (>= 0.18.0) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + xcodeproj (1.27.0) + CFPropertyList (>= 2.3.3, < 4.0) + atomos (~> 0.1.3) + claide (>= 1.0.2, < 2.0) + colored2 (~> 3.1) + nanaimo (~> 0.4.0) + rexml (>= 3.3.6, < 4.0) + +PLATFORMS + aarch64-linux-gnu + aarch64-linux-musl + arm-linux-gnu + arm-linux-musl + arm64-darwin + ruby + x86-linux-gnu + x86-linux-musl + x86_64-darwin + x86_64-linux-gnu + x86_64-linux-musl + +DEPENDENCIES + activesupport (>= 6.1.7.5, != 7.1.0) + benchmark + bigdecimal + cocoapods (~> 1.16.0) + concurrent-ruby (< 1.3.4) + logger + mutex_m + nkf + xcodeproj (>= 1.25.0, < 1.28.0) + +CHECKSUMS + CFPropertyList (3.0.8) sha256=2c99d0d980536d3d7ab252f7bd59ac8be50fbdd1ff487c98c949bb66bb114261 + activesupport (7.2.4) sha256=b97027b31e111675dba67b86edcd589acc25a0dddf8eecacca18d33a703a0788 + addressable (2.9.0) sha256=7fdf6ac3660f7f4e867a0838be3f6cf722ace541dd97767fa42bc6cfa980c7af + algoliasearch (1.27.5) sha256=26c1cddf3c2ec4bd60c148389e42702c98fdac862881dc6b07a4c0b89ffec853 + atomos (0.1.3) sha256=7d43b22f2454a36bace5532d30785b06de3711399cb1c6bf932573eda536789f + base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b + benchmark (0.5.0) sha256=465df122341aedcb81a2a24b4d3bd19b6c67c1530713fd533f3ff034e419236c + bigdecimal (4.1.3) sha256=61ebe1e5e559bdc3cc6f2c0ee7f427321fc838f59611c294356eb04d6e21cf66 + claide (1.1.0) sha256=6d3c5c089dde904d96aa30e73306d0d4bd444b1accb9b3125ce14a3c0183f82e + cocoapods (1.16.2) sha256=0ff1c860f32df3db8b16df09b58da1a6bb2a12fe55f6d5e8be994a74fadd1e5e + cocoapods-core (1.16.2) sha256=4bb1b5c420691e60cf36fa227dec6bc48c096c34c97bb7aa512ea7f3246fc12b + cocoapods-deintegrate (1.0.5) sha256=517c2a448ef563afe99b6e7668704c27f5de9e02715a88ee9de6974dc1b3f6a2 + cocoapods-downloader (2.1) sha256=bb6ebe1b3966dc4055de54f7a28b773485ac724fdf575d9bee2212d235e7b6d1 + cocoapods-plugins (1.0.0) sha256=725d17ce90b52f862e73476623fd91441b4430b742d8a071000831efb440ca9a + cocoapods-search (1.0.1) sha256=1b133b0e6719ed439bd840e84a1828cca46425ab73a11eff5e096c3b2df05589 + cocoapods-trunk (1.6.0) sha256=5f5bda8c172afead48fa2d43a718cf534b1313c367ba1194cebdeb9bfee9ed31 + cocoapods-try (1.2.0) sha256=145b946c6e7747ed0301d975165157951153d27469e6b2763c83e25c84b9defe + colored2 (3.1.2) sha256=b13c2bd7eeae2cf7356a62501d398e72fde78780bd26aec6a979578293c28b4a + concurrent-ruby (1.3.3) sha256=4f9cd28965c4dcf83ffd3ea7304f9323277be8525819cb18a3b61edcb56a7c6a + connection_pool (2.5.5) sha256=e54ff92855753df1fd7c59fa04a398833355f27dd14c074f8c83a05f72a716ad + drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373 + escape (0.0.4) sha256=e49f44ae2b4f47c6a3abd544ae77fe4157802794e32f19b8e773cbc4dcec4169 + ethon (0.18.0) sha256=b598afc9f30448cb068b850714b7d6948e941476095d04f90a4ac65b8d6efcb2 + ffi (1.17.4) sha256=bcd1642e06f0d16fc9e09ac6d49c3a7298b9789bcb58127302f934e437d60acf + ffi (1.17.4-aarch64-linux-gnu) sha256=b208f06f91ffd8f5e1193da3cae3d2ccfc27fc36fba577baf698d26d91c080df + ffi (1.17.4-aarch64-linux-musl) sha256=9286b7a615f2676245283aef0a0a3b475ae3aae2bb5448baace630bb77b91f39 + ffi (1.17.4-arm-linux-gnu) sha256=d6dbddf7cb77bf955411af5f187a65b8cd378cb003c15c05697f5feee1cb1564 + ffi (1.17.4-arm-linux-musl) sha256=9d4838ded0465bef6e2426935f6bcc93134b6616785a84ffd2a3d82bc3cf6f95 + ffi (1.17.4-arm64-darwin) sha256=19071aaf1419251b0a46852abf960e77330a3b334d13a4ab51d58b31a937001b + ffi (1.17.4-x86-linux-gnu) sha256=38e150df5f4ca555e25beca4090823ae09657bceded154e3c52f8631c1ed72cf + ffi (1.17.4-x86-linux-musl) sha256=fbeec0fc7c795bcf86f623bb18d31ea1820f7bd580e1703a3d3740d527437809 + ffi (1.17.4-x86_64-darwin) sha256=aa70390523cf3235096cf64962b709b4cfbd5c082a2cb2ae714eb0fe2ccda496 + ffi (1.17.4-x86_64-linux-gnu) sha256=9d3db14c2eae074b382fa9c083fe95aec6e0a1451da249eab096c34002bc752d + ffi (1.17.4-x86_64-linux-musl) sha256=3fdf9888483de005f8ef8d1cf2d3b20d86626af206cbf780f6a6a12439a9c49e + fourflusher (2.3.1) sha256=1b3de61c7c791b6a4e64f31e3719eb25203d151746bb519a0292bff1065ccaa9 + fuzzy_match (2.0.4) sha256=b5de4f95816589c5b5c3ad13770c0af539b75131c158135b3f3bbba75d0cfca5 + gh_inspector (1.1.3) sha256=04cca7171b87164e053aa43147971d3b7f500fcb58177698886b48a9fc4a1939 + httpclient (2.9.0) sha256=4b645958e494b2f86c2f8a2f304c959baa273a310e77a2931ddb986d83e498c8 + i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5 + json (3.1.0) sha256=3ce7ccf8fde58960177a3a756c31f292a4c1e1dedee884547096a5b0604e3bd8 + logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203 + minitest (5.27.0) sha256=2d3b17f8a36fe7801c1adcffdbc38233b938eb0b4966e97a6739055a45fa77d5 + molinillo (0.8.0) sha256=efbff2716324e2a30bccd3eba1ff3a735f4d5d53ffddbc6a2f32c0ca9433045d + mutex_m (0.3.0) sha256=cfcb04ac16b69c4813777022fdceda24e9f798e48092a2b817eb4c0a782b0751 + nanaimo (0.4.0) sha256=faf069551bab17f15169c1f74a1c73c220657e71b6e900919897a10d991d0723 + nap (1.1.0) sha256=949691660f9d041d75be611bb2a8d2fd559c467537deac241f4097d9b5eea576 + netrc (0.11.0) sha256=de1ce33da8c99ab1d97871726cba75151113f117146becbe45aa85cb3dabee3f + nkf (0.3.0) sha256=357a8dbeba38b727b75930f665146546076a394a1c243faf634ff176e3588895 + public_suffix (4.0.7) sha256=8be161e2421f8d45b0098c042c06486789731ea93dc3a896d30554ee38b573b8 + rexml (3.4.4) sha256=19e0a2c3425dfbf2d4fc1189747bdb2f849b6c5e74180401b15734bc97b5d142 + ruby-macho (2.5.1) sha256=9075e52e0f9270b552a90b24fcc6219ad149b0d15eae1bc364ecd0ac8984f5c9 + securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1 + typhoeus (1.6.0) sha256=bacc41c23e379547e29801dc235cd1699b70b955a1ba3d32b2b877aa844c331d + tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b + xcodeproj (1.27.0) sha256=8cc7a73b4505c227deab044dce118ede787041c702bc47636856a2e566f854d3 + +RUBY VERSION + ruby 4.0.3 + +BUNDLED WITH + 4.0.10 diff --git a/apps/surfrroll/README.md b/apps/surfrroll/README.md new file mode 100644 index 0000000..4252bcd --- /dev/null +++ b/apps/surfrroll/README.md @@ -0,0 +1,68 @@ +# SurfrRoll + +**MitKat DataSurfr “last mile” demo** for [MitKat Advisory](https://mitkatadvisory.com/): signed incident alerts and employee roll call reach staff over **Bluetooth mesh** when cell and internet fail, then reconcile to a mock **DataSurfr / SOC** ingest when the cloud link returns. Mesh SDK **0.28**. + +Built on `@offline-app-examples/mesh` and `@offline-app-examples/ui`. + +## What it demonstrates + +- **Signed alerts** — demo DataSurfr signature so spoof / rumour traffic is rejected on handsets. +- **SOC console** — pull a mock flood alert when cloud link is on; fan out via mesh snapshots. +- **Staff handsets** — **I'm safe / Need help / SOS** with idempotent `checkInId` proposals. +- **Mesh relay** — extend range when only one phone has internet (airplane-mode peers still get the alert). +- **Mock upstream sync** with visible **duplicate drop** on re-upload (same `checkInId`). + +Honest copy: this is not the production DataSurfr product; it shows how Offline Protocol could carry alerts and status when networks fail. + +## Roles + +| Role | Phones | Behavior | +| --- | --- | --- | +| SOC console | 1 | Hosts mesh ledger; cloud link toggle; receive alert; upload roll call (mock) | +| Staff handset | 2–4 | Demo employee + PIN; verify alert; check in over mesh | +| Mesh relay | 0–1 | Optional hop between SOC and distant staff | + +**Recommended:** 4 phones (SOC + 3 staff) or 5 with a relay. + +## Demo script (~5 min) + +1. **SOC:** Start console. Leave **cloud link** off — mesh works; no new alert from “DataSurfr”. +2. **Staff:** Join mesh (airplane mode + Bluetooth is fine after first snapshot). Waiting for alert. +3. **SOC:** Turn **cloud link** on → **Receive flood alert (mock DataSurfr)**. Staff see verified critical alert. +4. **Staff:** Tap **I'm safe**, **Need help**, or **SOS** on different phones. SOC roll call fills in. +5. **SOC:** **Upload roll call to DataSurfr (mock)**. Presenter strip: rows, awaiting upload, dupes dropped. +6. Tap upload again — **dupes dropped** increments, row count stable. +7. *(Optional)* **Relay** between SOC and a distant handset; repeat check-in. + +### Side stories (not built in this app) + +- Offline incident sitrep co-edit (investigations). +- Office evacuation muster with floor wardens. + +## Run + +```sh +pnpm install +cd apps/surfrroll +bundle install +cd ios && bundle exec pod install && cd ../.. +pnpm --filter @offline-app-examples/surfrroll dev +``` + +Second terminal: `cd apps/surfrroll && npx react-native run-ios --interactive` (or Android). + +Use **physical phones** with Bluetooth on. Debug builds need Metro. + +## Reset + +Clear app storage or reinstall. Demo roster PINs are in `src/domain/roster.ts`. + +## Tests + +```sh +pnpm --filter @offline-app-examples/surfrroll test +``` + +## Licensing + +MIT-0 — see repository root. diff --git a/apps/surfrroll/__tests__/alerts.test.ts b/apps/surfrroll/__tests__/alerts.test.ts new file mode 100644 index 0000000..e6c01b1 --- /dev/null +++ b/apps/surfrroll/__tests__/alerts.test.ts @@ -0,0 +1,35 @@ +import { describe, expect, it } from '@jest/globals'; +import { + createDemoFloodAlert, + signAlert, + verifyAlertSignature, + alertSigningPayload, +} from '../src/domain/alerts'; + +describe('alerts', () => { + it('signs and verifies demo flood alert', () => { + const alert = createDemoFloodAlert(1_700_000_000_000); + expect(verifyAlertSignature(alert)).toBe(true); + expect(alert.signature).toMatch(/^ds-/); + }); + + it('rejects tampered body', () => { + const alert = createDemoFloodAlert(); + const tampered = { ...alert, body: alert.body + ' spoof' }; + expect(verifyAlertSignature(tampered)).toBe(false); + }); + + it('signAlert is stable for same payload', () => { + const base = { + alertId: 'a1', + clientId: 'c1', + title: 't', + body: 'b', + severity: 'incident' as const, + affectedOffices: ['X'], + issuedAt: 100, + }; + expect(signAlert(base)).toBe(signAlert(base)); + expect(alertSigningPayload(base)).toContain('a1'); + }); +}); diff --git a/apps/surfrroll/__tests__/platform.test.ts b/apps/surfrroll/__tests__/platform.test.ts new file mode 100644 index 0000000..c1ff367 --- /dev/null +++ b/apps/surfrroll/__tests__/platform.test.ts @@ -0,0 +1,21 @@ +import { describe, expect, it } from '@jest/globals'; +import { ingestToDatasurfr, unsyncedCheckInIds } from '../src/domain/platform'; + +describe('platform', () => { + it('dedupes checkInId on re-upload', () => { + const { next, result } = ingestToDatasurfr(new Set(), ['c1', 'c2', 'c1']); + expect(result.accepted).toEqual(['c1', 'c2']); + expect(result.duplicatesDropped).toBe(1); + const again = ingestToDatasurfr(next, ['c1', 'c3']); + expect(again.result.accepted).toEqual(['c3']); + expect(again.result.duplicatesDropped).toBe(1); + }); + + it('lists unsynced ids', () => { + const ids = unsyncedCheckInIds( + [{ checkInId: 'a' }, { checkInId: 'b' }], + ['a'], + ); + expect(ids).toEqual(['b']); + }); +}); diff --git a/apps/surfrroll/__tests__/rollcall.test.ts b/apps/surfrroll/__tests__/rollcall.test.ts new file mode 100644 index 0000000..82a345f --- /dev/null +++ b/apps/surfrroll/__tests__/rollcall.test.ts @@ -0,0 +1,64 @@ +import { describe, expect, it } from '@jest/globals'; +import { createDemoFloodAlert } from '../src/domain/alerts'; +import { + buildCheckInProposal, + checkInForEmployee, + emptySoc, + socReducer, + staffReducer, + emptyStaffHandset, +} from '../src/domain/rollcall'; + +describe('rollcall', () => { + it('accepts roster check-in for active alert', () => { + const alert = createDemoFloodAlert(); + let soc = socReducer(emptySoc(), { type: 'set_alert', alert }); + const record = buildCheckInProposal({ + alertId: alert.alertId, + employeeId: 'emp-001', + displayName: 'Priya N.', + office: 'BKC Tower', + status: 'safe', + deviceId: 'd1', + now: 100, + }); + expect(record).not.toBeNull(); + soc = socReducer(soc, { type: 'propose', record: record! }); + expect(soc.checkIns).toHaveLength(1); + expect(checkInForEmployee(soc.checkIns, alert.alertId, 'emp-001')).toBeDefined(); + }); + + it('dedupes same employee on one alert', () => { + const alert = createDemoFloodAlert(); + let soc = socReducer(emptySoc(), { type: 'set_alert', alert }); + const r1 = buildCheckInProposal({ + alertId: alert.alertId, + employeeId: 'emp-002', + displayName: 'Rahul K.', + office: 'Andheri', + status: 'help', + deviceId: 'd1', + })!; + const r2 = { ...r1, checkInId: 'other-id', status: 'sos' as const }; + soc = socReducer(soc, { type: 'propose', record: r1 }); + soc = socReducer(soc, { type: 'propose', record: r2 }); + expect(soc.checkIns).toHaveLength(1); + expect(soc.checkIns[0].status).toBe('help'); + }); + + it('staff snapshot marks untrusted bad signature', () => { + const alert = createDemoFloodAlert(); + const bad = { ...alert, signature: 'ds-deadbeee' }; + const staff = staffReducer(emptyStaffHandset(), { + type: 'snapshot', + rev: 1, + activeAlert: bad, + checkIns: [], + syncedCheckInIds: [], + datasurfrDuplicatesDropped: 0, + cloudLinkOnline: true, + myEmployeeId: 'emp-001', + }); + expect(staff.alertTrusted).toBe(false); + }); +}); diff --git a/apps/surfrroll/android/app/build.gradle b/apps/surfrroll/android/app/build.gradle new file mode 100644 index 0000000..0a542ca --- /dev/null +++ b/apps/surfrroll/android/app/build.gradle @@ -0,0 +1,121 @@ +apply plugin: "com.android.application" +apply plugin: "org.jetbrains.kotlin.android" +apply plugin: "com.facebook.react" + +/** + * This is the configuration block to customize your React Native Android app. + * By default you don't need to apply any configuration, just uncomment the lines you need. + */ +react { + /* Folders */ + // The root of your project, i.e. where "package.json" lives. Default is '../..' + // root = file("../../") + // The folder where the react-native NPM package is. Default is ../../node_modules/react-native + // reactNativeDir = file("../../node_modules/react-native") + // The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen + // codegenDir = file("../../node_modules/@react-native/codegen") + // The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js + // cliFile = file("../../node_modules/react-native/cli.js") + + /* Variants */ + // The list of variants to that are debuggable. For those we're going to + // skip the bundling of the JS bundle and the assets. Default is "debug", "debugOptimized". + // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants. + // debuggableVariants = ["liteDebug", "liteDebugOptimized", "prodDebug", "prodDebugOptimized"] + + /* Bundling */ + // A list containing the node command and its flags. Default is just 'node'. + // nodeExecutableAndArgs = ["node"] + // + // The command to run when bundling. By default is 'bundle' + // bundleCommand = "ram-bundle" + // + // The path to the CLI configuration file. Default is empty. + // bundleConfig = file(../rn-cli.config.js) + // + // The name of the generated asset file containing your JS bundle + // bundleAssetName = "MyApplication.android.bundle" + // + // The entry file for bundle generation. Default is 'index.android.js' or 'index.js' + // entryFile = file("../js/MyApplication.android.js") + // + // A list of extra flags to pass to the 'bundle' commands. + // See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle + // extraPackagerArgs = [] + + /* Hermes Commands */ + // The hermes compiler command to run. By default it is 'hermesc' + // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc" + // + // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map" + // hermesFlags = ["-O", "-output-source-map"] + + /* Autolinking */ + autolinkLibrariesWithApp() +} + +/** + * Set this to true to Run Proguard on Release builds to minify the Java bytecode. + */ +def enableProguardInReleaseBuilds = false + +/** + * The preferred build flavor of JavaScriptCore (JSC) + * + * For example, to use the international variant, you can use: + * `def jscFlavor = io.github.react-native-community:jsc-android-intl:2026004.+` + * + * The international variant includes ICU i18n library and necessary data + * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that + * give correct results when using with locales other than en-US. Note that + * this variant is about 6MiB larger per architecture than default. + */ +def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+' + +android { + ndkVersion rootProject.ext.ndkVersion + buildToolsVersion rootProject.ext.buildToolsVersion + compileSdk rootProject.ext.compileSdkVersion + + namespace "com.offlineappexamples.surfrroll" + // Shared fonts (Space Grotesk, DM Serif Display) from the ui package. + sourceSets.main.res.srcDirs += "../../../../packages/ui/fonts" + defaultConfig { + applicationId "com.offlineappexamples.surfrroll" + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion + versionCode 1 + versionName "1.0" + } + signingConfigs { + debug { + storeFile file('debug.keystore') + storePassword 'android' + keyAlias 'androiddebugkey' + keyPassword 'android' + } + } + buildTypes { + debug { + signingConfig signingConfigs.debug + } + release { + // Caution! In production, you need to generate your own keystore file. + // see https://reactnative.dev/docs/signed-apk-android. + signingConfig signingConfigs.debug + minifyEnabled enableProguardInReleaseBuilds + proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" + } + } +} + +dependencies { + // The version of react-native is set by the React Native Gradle Plugin + implementation("com.facebook.react:react-android") + + if (hermesEnabled.toBoolean()) { + implementation("com.facebook.react:hermes-android") + } else { + implementation jscFlavor + } +} diff --git a/apps/surfrroll/android/app/debug.keystore b/apps/surfrroll/android/app/debug.keystore new file mode 100644 index 0000000..364e105 Binary files /dev/null and b/apps/surfrroll/android/app/debug.keystore differ diff --git a/apps/surfrroll/android/app/proguard-rules.pro b/apps/surfrroll/android/app/proguard-rules.pro new file mode 100644 index 0000000..11b0257 --- /dev/null +++ b/apps/surfrroll/android/app/proguard-rules.pro @@ -0,0 +1,10 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: diff --git a/apps/surfrroll/android/app/src/main/AndroidManifest.xml b/apps/surfrroll/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..d6e17c4 --- /dev/null +++ b/apps/surfrroll/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/surfrroll/android/app/src/main/java/com/offlineappexamples/surfrroll/MainActivity.kt b/apps/surfrroll/android/app/src/main/java/com/offlineappexamples/surfrroll/MainActivity.kt new file mode 100644 index 0000000..06cf6e2 --- /dev/null +++ b/apps/surfrroll/android/app/src/main/java/com/offlineappexamples/surfrroll/MainActivity.kt @@ -0,0 +1,22 @@ +package com.offlineappexamples.surfrroll + +import com.facebook.react.ReactActivity +import com.facebook.react.ReactActivityDelegate +import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled +import com.facebook.react.defaults.DefaultReactActivityDelegate + +class MainActivity : ReactActivity() { + + /** + * Returns the name of the main component registered from JavaScript. This is used to schedule + * rendering of the component. + */ + override fun getMainComponentName(): String = "SurfrRoll" + + /** + * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate] + * which allows you to enable New Architecture with a single boolean flags [fabricEnabled] + */ + override fun createReactActivityDelegate(): ReactActivityDelegate = + DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled) +} diff --git a/apps/surfrroll/android/app/src/main/java/com/offlineappexamples/surfrroll/MainApplication.kt b/apps/surfrroll/android/app/src/main/java/com/offlineappexamples/surfrroll/MainApplication.kt new file mode 100644 index 0000000..8272009 --- /dev/null +++ b/apps/surfrroll/android/app/src/main/java/com/offlineappexamples/surfrroll/MainApplication.kt @@ -0,0 +1,31 @@ +package com.offlineappexamples.surfrroll + +import android.app.Application +import com.facebook.react.PackageList +import com.facebook.react.ReactApplication +import com.facebook.react.ReactHost +import com.facebook.react.common.assets.ReactFontManager +import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative +import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost + +class MainApplication : Application(), ReactApplication { + + override val reactHost: ReactHost by lazy { + getDefaultReactHost( + context = applicationContext, + packageList = + PackageList(this).packages.apply { + // Packages that cannot be autolinked yet can be added manually here, for example: + // add(MyReactNativePackage()) + }, + ) + } + + override fun onCreate() { + super.onCreate() + loadReactNative(this) + // Registered as families so fontWeight picks the right file (see packages/ui/fonts). + ReactFontManager.getInstance().addCustomFont(this, "Space Grotesk", R.font.space_grotesk) + ReactFontManager.getInstance().addCustomFont(this, "DM Serif Display", R.font.dm_serif_display) + } +} diff --git a/apps/surfrroll/android/app/src/main/res/drawable/rn_edit_text_material.xml b/apps/surfrroll/android/app/src/main/res/drawable/rn_edit_text_material.xml new file mode 100644 index 0000000..5c25e72 --- /dev/null +++ b/apps/surfrroll/android/app/src/main/res/drawable/rn_edit_text_material.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + diff --git a/apps/surfrroll/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/apps/surfrroll/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..be43858 --- /dev/null +++ b/apps/surfrroll/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/apps/surfrroll/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/apps/surfrroll/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..be43858 --- /dev/null +++ b/apps/surfrroll/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/apps/surfrroll/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/apps/surfrroll/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..ed5c3f7 Binary files /dev/null and b/apps/surfrroll/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/apps/surfrroll/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/apps/surfrroll/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..e2a2cbc Binary files /dev/null and b/apps/surfrroll/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ diff --git a/apps/surfrroll/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/apps/surfrroll/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 0000000..aa967d0 Binary files /dev/null and b/apps/surfrroll/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/apps/surfrroll/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/apps/surfrroll/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..f2c0b25 Binary files /dev/null and b/apps/surfrroll/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/apps/surfrroll/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/apps/surfrroll/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..cee98cd Binary files /dev/null and b/apps/surfrroll/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ diff --git a/apps/surfrroll/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/apps/surfrroll/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 0000000..4b763b1 Binary files /dev/null and b/apps/surfrroll/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/apps/surfrroll/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/apps/surfrroll/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..56c5703 Binary files /dev/null and b/apps/surfrroll/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/apps/surfrroll/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/apps/surfrroll/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..faf495d Binary files /dev/null and b/apps/surfrroll/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ diff --git a/apps/surfrroll/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/apps/surfrroll/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 0000000..4dfc166 Binary files /dev/null and b/apps/surfrroll/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/apps/surfrroll/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/apps/surfrroll/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..6b5b623 Binary files /dev/null and b/apps/surfrroll/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/apps/surfrroll/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/apps/surfrroll/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..f88d6fc Binary files /dev/null and b/apps/surfrroll/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ diff --git a/apps/surfrroll/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/apps/surfrroll/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..b22e56b Binary files /dev/null and b/apps/surfrroll/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/apps/surfrroll/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/apps/surfrroll/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..1bfa6f4 Binary files /dev/null and b/apps/surfrroll/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/apps/surfrroll/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/apps/surfrroll/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..958474f Binary files /dev/null and b/apps/surfrroll/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ diff --git a/apps/surfrroll/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/apps/surfrroll/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..b6ab593 Binary files /dev/null and b/apps/surfrroll/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/apps/surfrroll/android/app/src/main/res/values/ic_launcher_background.xml b/apps/surfrroll/android/app/src/main/res/values/ic_launcher_background.xml new file mode 100644 index 0000000..c342fa2 --- /dev/null +++ b/apps/surfrroll/android/app/src/main/res/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #FF385C + diff --git a/apps/surfrroll/android/app/src/main/res/values/strings.xml b/apps/surfrroll/android/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..70554ff --- /dev/null +++ b/apps/surfrroll/android/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + SurfrRoll + diff --git a/apps/surfrroll/android/app/src/main/res/values/styles.xml b/apps/surfrroll/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..7ba83a2 --- /dev/null +++ b/apps/surfrroll/android/app/src/main/res/values/styles.xml @@ -0,0 +1,9 @@ + + + + + + diff --git a/apps/surfrroll/android/build.gradle b/apps/surfrroll/android/build.gradle new file mode 100644 index 0000000..dad99b0 --- /dev/null +++ b/apps/surfrroll/android/build.gradle @@ -0,0 +1,21 @@ +buildscript { + ext { + buildToolsVersion = "36.0.0" + minSdkVersion = 24 + compileSdkVersion = 36 + targetSdkVersion = 36 + ndkVersion = "27.1.12297006" + kotlinVersion = "2.1.20" + } + repositories { + google() + mavenCentral() + } + dependencies { + classpath("com.android.tools.build:gradle") + classpath("com.facebook.react:react-native-gradle-plugin") + classpath("org.jetbrains.kotlin:kotlin-gradle-plugin") + } +} + +apply plugin: "com.facebook.react.rootproject" diff --git a/apps/surfrroll/android/gradle.properties b/apps/surfrroll/android/gradle.properties new file mode 100644 index 0000000..9afe615 --- /dev/null +++ b/apps/surfrroll/android/gradle.properties @@ -0,0 +1,44 @@ +# Project-wide Gradle settings. + +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. + +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html + +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m +org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m + +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true + +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app's APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true + +# Use this property to specify which architecture you want to build. +# You can also override it from the CLI using +# ./gradlew -PreactNativeArchitectures=x86_64 +reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 + +# Use this property to enable support to the new architecture. +# This will allow you to use TurboModules and the Fabric render in +# your application. You should enable this flag either if you want +# to write custom TurboModules/Fabric components OR use libraries that +# are providing them. +newArchEnabled=true + +# Use this property to enable or disable the Hermes JS engine. +# If set to false, you will be using JSC instead. +hermesEnabled=true + +# Use this property to enable edge-to-edge display support. +# This allows your app to draw behind system bars for an immersive UI. +# Note: Only works with ReactActivity and should not be used with custom Activity. +edgeToEdgeEnabled=false diff --git a/apps/surfrroll/android/gradle/wrapper/gradle-wrapper.jar b/apps/surfrroll/android/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..61285a6 Binary files /dev/null and b/apps/surfrroll/android/gradle/wrapper/gradle-wrapper.jar differ diff --git a/apps/surfrroll/android/gradle/wrapper/gradle-wrapper.properties b/apps/surfrroll/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..37f78a6 --- /dev/null +++ b/apps/surfrroll/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/apps/surfrroll/android/gradlew b/apps/surfrroll/android/gradlew new file mode 100755 index 0000000..adff685 --- /dev/null +++ b/apps/surfrroll/android/gradlew @@ -0,0 +1,248 @@ +#!/bin/sh + +# +# Copyright © 2015 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/apps/surfrroll/android/gradlew.bat b/apps/surfrroll/android/gradlew.bat new file mode 100644 index 0000000..39baf4d --- /dev/null +++ b/apps/surfrroll/android/gradlew.bat @@ -0,0 +1,98 @@ +@REM Copyright (c) Meta Platforms, Inc. and affiliates. +@REM +@REM This source code is licensed under the MIT license found in the +@REM LICENSE file in the root directory of this source tree. + +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/apps/surfrroll/android/settings.gradle b/apps/surfrroll/android/settings.gradle new file mode 100644 index 0000000..5071e15 --- /dev/null +++ b/apps/surfrroll/android/settings.gradle @@ -0,0 +1,6 @@ +pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") } +plugins { id("com.facebook.react.settings") } +extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() } +rootProject.name = 'SurfrRoll' +include ':app' +includeBuild('../node_modules/@react-native/gradle-plugin') diff --git a/apps/surfrroll/app.json b/apps/surfrroll/app.json new file mode 100644 index 0000000..0a54af8 --- /dev/null +++ b/apps/surfrroll/app.json @@ -0,0 +1,4 @@ +{ + "name": "SurfrRoll", + "displayName": "SurfrRoll" +} diff --git a/apps/surfrroll/babel.config.js b/apps/surfrroll/babel.config.js new file mode 100644 index 0000000..61d5d89 --- /dev/null +++ b/apps/surfrroll/babel.config.js @@ -0,0 +1,3 @@ +module.exports = { + presets: ['module:@react-native/babel-preset', 'nativewind/babel'], +}; diff --git a/apps/surfrroll/index.js b/apps/surfrroll/index.js new file mode 100644 index 0000000..9b73932 --- /dev/null +++ b/apps/surfrroll/index.js @@ -0,0 +1,9 @@ +/** + * @format + */ + +import { AppRegistry } from 'react-native'; +import App from './App'; +import { name as appName } from './app.json'; + +AppRegistry.registerComponent(appName, () => App); diff --git a/apps/surfrroll/ios/.xcode.env b/apps/surfrroll/ios/.xcode.env new file mode 100644 index 0000000..3d5782c --- /dev/null +++ b/apps/surfrroll/ios/.xcode.env @@ -0,0 +1,11 @@ +# This `.xcode.env` file is versioned and is used to source the environment +# used when running script phases inside Xcode. +# To customize your local environment, you can create an `.xcode.env.local` +# file that is not versioned. + +# NODE_BINARY variable contains the PATH to the node executable. +# +# Customize the NODE_BINARY variable here. +# For example, to use nvm with brew, add the following line +# . "$(brew --prefix nvm)/nvm.sh" --no-use +export NODE_BINARY=$(command -v node) diff --git a/apps/surfrroll/ios/Podfile b/apps/surfrroll/ios/Podfile new file mode 100644 index 0000000..c2799c9 --- /dev/null +++ b/apps/surfrroll/ios/Podfile @@ -0,0 +1,67 @@ +# Resolve react_native_pods.rb with node to allow for hoisting +require Pod::Executable.execute_command('node', ['-p', + 'require.resolve( + "react-native/scripts/react_native_pods.rb", + {paths: [process.argv[1]]}, + )', __dir__]).strip + +platform :ios, min_ios_version_supported +prepare_react_native_project! + +linkage = ENV['USE_FRAMEWORKS'] +if linkage != nil + Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green + use_frameworks! :linkage => linkage.to_sym +end + +target 'SurfrRoll' do + config = use_native_modules! + + use_react_native!( + :path => config[:reactNativePath], + # An absolute path to your application root. + :app_path => "#{Pod::Config.instance.installation_root}/.." + ) + + post_install do |installer| + react_native_post_install( + installer, + config[:reactNativePath], + :mac_catalyst_enabled => false, + # :ccache_enabled => true + ) + # offline-rn-shell: fmt + modular includes for Xcode 26 / RN 0.82+ + fmt_base = File.join(installer.sandbox.root, 'fmt', 'include', 'fmt', 'base.h') + if File.exist?(fmt_base) + original = File.read(fmt_base) + patched = original.gsub('# define FMT_USE_CONSTEVAL 1', + '# define FMT_USE_CONSTEVAL 0') + if patched != original + File.write(fmt_base, patched) + Pod::UI.puts 'Patched fmt/base.h: forced FMT_USE_CONSTEVAL=0 (Xcode 26.5 / clang 21)'.yellow + end + end + + installer.pods_project.targets.each do |target| + target.build_configurations.each do |build_config| + build_config.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES' + # These settings may be arrays; join them, or "#{array}" writes Ruby syntax into the flags. + other_cflags = Array(build_config.build_settings['OTHER_CFLAGS'] || '$(inherited)').join(' ') + other_cxxflags = Array(build_config.build_settings['OTHER_CPLUSPLUSFLAGS'] || '$(inherited)').join(' ') + warning_flag = '-Wno-error=return-type' + unless other_cflags.include?(warning_flag) + build_config.build_settings['OTHER_CFLAGS'] = "#{other_cflags} #{warning_flag}" + end + unless other_cxxflags.include?(warning_flag) + build_config.build_settings['OTHER_CPLUSPLUSFLAGS'] = "#{other_cxxflags} #{warning_flag}" + end + build_config.build_settings['SWIFT_STRICT_CONCURRENCY'] ||= 'minimal' + # Xcode 27 refuses pod targets (e.g. resource bundles) below iOS 15. + if build_config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 15.1 + build_config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.1' + end + end + end + + end +end diff --git a/apps/surfrroll/ios/Podfile.lock b/apps/surfrroll/ios/Podfile.lock new file mode 100644 index 0000000..63a67f2 --- /dev/null +++ b/apps/surfrroll/ios/Podfile.lock @@ -0,0 +1,2386 @@ +PODS: + - FBLazyVector (0.85.2) + - hermes-engine (250829098.0.10): + - hermes-engine/Pre-built (= 250829098.0.10) + - hermes-engine/Pre-built (250829098.0.10) + - MeshSdk (0.28.0): + - React-Core + - RCTDeprecation (0.85.2) + - RCTRequired (0.85.2) + - RCTSwiftUI (0.85.2) + - RCTSwiftUIWrapper (0.85.2): + - RCTSwiftUI + - RCTTypeSafety (0.85.2): + - FBLazyVector (= 0.85.2) + - RCTRequired (= 0.85.2) + - React-Core (= 0.85.2) + - React (0.85.2): + - React-Core (= 0.85.2) + - React-Core/DevSupport (= 0.85.2) + - React-Core/RCTWebSocket (= 0.85.2) + - React-RCTActionSheet (= 0.85.2) + - React-RCTAnimation (= 0.85.2) + - React-RCTBlob (= 0.85.2) + - React-RCTImage (= 0.85.2) + - React-RCTLinking (= 0.85.2) + - React-RCTNetwork (= 0.85.2) + - React-RCTSettings (= 0.85.2) + - React-RCTText (= 0.85.2) + - React-RCTVibration (= 0.85.2) + - React-callinvoker (0.85.2) + - React-Core (0.85.2): + - hermes-engine + - RCTDeprecation + - React-Core-prebuilt + - React-Core/Default (= 0.85.2) + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-jsinspectorcdp + - React-jsitooling + - React-perflogger + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactNativeDependencies + - Yoga + - React-Core-prebuilt (0.85.2): + - ReactNativeDependencies + - React-Core/CoreModulesHeaders (0.85.2): + - hermes-engine + - RCTDeprecation + - React-Core-prebuilt + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-jsinspectorcdp + - React-jsitooling + - React-perflogger + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactNativeDependencies + - Yoga + - React-Core/Default (0.85.2): + - hermes-engine + - RCTDeprecation + - React-Core-prebuilt + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-jsinspectorcdp + - React-jsitooling + - React-perflogger + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactNativeDependencies + - Yoga + - React-Core/DevSupport (0.85.2): + - hermes-engine + - RCTDeprecation + - React-Core-prebuilt + - React-Core/Default (= 0.85.2) + - React-Core/RCTWebSocket (= 0.85.2) + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-jsinspectorcdp + - React-jsitooling + - React-perflogger + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactNativeDependencies + - Yoga + - React-Core/RCTActionSheetHeaders (0.85.2): + - hermes-engine + - RCTDeprecation + - React-Core-prebuilt + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-jsinspectorcdp + - React-jsitooling + - React-perflogger + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactNativeDependencies + - Yoga + - React-Core/RCTAnimationHeaders (0.85.2): + - hermes-engine + - RCTDeprecation + - React-Core-prebuilt + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-jsinspectorcdp + - React-jsitooling + - React-perflogger + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactNativeDependencies + - Yoga + - React-Core/RCTBlobHeaders (0.85.2): + - hermes-engine + - RCTDeprecation + - React-Core-prebuilt + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-jsinspectorcdp + - React-jsitooling + - React-perflogger + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactNativeDependencies + - Yoga + - React-Core/RCTImageHeaders (0.85.2): + - hermes-engine + - RCTDeprecation + - React-Core-prebuilt + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-jsinspectorcdp + - React-jsitooling + - React-perflogger + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactNativeDependencies + - Yoga + - React-Core/RCTLinkingHeaders (0.85.2): + - hermes-engine + - RCTDeprecation + - React-Core-prebuilt + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-jsinspectorcdp + - React-jsitooling + - React-perflogger + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactNativeDependencies + - Yoga + - React-Core/RCTNetworkHeaders (0.85.2): + - hermes-engine + - RCTDeprecation + - React-Core-prebuilt + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-jsinspectorcdp + - React-jsitooling + - React-perflogger + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactNativeDependencies + - Yoga + - React-Core/RCTSettingsHeaders (0.85.2): + - hermes-engine + - RCTDeprecation + - React-Core-prebuilt + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-jsinspectorcdp + - React-jsitooling + - React-perflogger + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactNativeDependencies + - Yoga + - React-Core/RCTTextHeaders (0.85.2): + - hermes-engine + - RCTDeprecation + - React-Core-prebuilt + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-jsinspectorcdp + - React-jsitooling + - React-perflogger + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactNativeDependencies + - Yoga + - React-Core/RCTVibrationHeaders (0.85.2): + - hermes-engine + - RCTDeprecation + - React-Core-prebuilt + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-jsinspectorcdp + - React-jsitooling + - React-perflogger + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactNativeDependencies + - Yoga + - React-Core/RCTWebSocket (0.85.2): + - hermes-engine + - RCTDeprecation + - React-Core-prebuilt + - React-Core/Default (= 0.85.2) + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-jsinspectorcdp + - React-jsitooling + - React-perflogger + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactNativeDependencies + - Yoga + - React-CoreModules (0.85.2): + - RCTTypeSafety (= 0.85.2) + - React-Core-prebuilt + - React-Core/CoreModulesHeaders (= 0.85.2) + - React-debug + - React-jsi (= 0.85.2) + - React-jsinspector + - React-jsinspectorcdp + - React-jsinspectortracing + - React-NativeModulesApple + - React-RCTBlob + - React-RCTFBReactNativeSpec + - React-RCTImage (= 0.85.2) + - React-runtimeexecutor + - React-utils + - ReactCommon + - ReactNativeDependencies + - React-cxxreact (0.85.2): + - hermes-engine + - React-callinvoker (= 0.85.2) + - React-Core-prebuilt + - React-debug (= 0.85.2) + - React-jsi (= 0.85.2) + - React-jsinspector + - React-jsinspectorcdp + - React-jsinspectortracing + - React-logger (= 0.85.2) + - React-perflogger (= 0.85.2) + - React-runtimeexecutor + - React-timing (= 0.85.2) + - React-utils + - ReactNativeDependencies + - React-debug (0.85.2) + - React-defaultsnativemodule (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-domnativemodule + - React-Fabric/animated + - React-featureflags + - React-featureflagsnativemodule + - React-idlecallbacksnativemodule + - React-intersectionobservernativemodule + - React-jsi + - React-jsiexecutor + - React-microtasksnativemodule + - React-RCTFBReactNativeSpec + - React-webperformancenativemodule + - ReactNativeDependencies + - Yoga + - React-domnativemodule (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-Fabric + - React-Fabric/bridging + - React-FabricComponents + - React-graphics + - React-jsi + - React-jsiexecutor + - React-RCTFBReactNativeSpec + - React-runtimeexecutor + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - React-Fabric (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric/animated (= 0.85.2) + - React-Fabric/animationbackend (= 0.85.2) + - React-Fabric/animations (= 0.85.2) + - React-Fabric/attributedstring (= 0.85.2) + - React-Fabric/bridging (= 0.85.2) + - React-Fabric/componentregistry (= 0.85.2) + - React-Fabric/componentregistrynative (= 0.85.2) + - React-Fabric/components (= 0.85.2) + - React-Fabric/consistency (= 0.85.2) + - React-Fabric/core (= 0.85.2) + - React-Fabric/dom (= 0.85.2) + - React-Fabric/imagemanager (= 0.85.2) + - React-Fabric/leakchecker (= 0.85.2) + - React-Fabric/mounting (= 0.85.2) + - React-Fabric/observers (= 0.85.2) + - React-Fabric/scheduler (= 0.85.2) + - React-Fabric/telemetry (= 0.85.2) + - React-Fabric/uimanager (= 0.85.2) + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/animated (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric/animationbackend + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/animationbackend (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/animations (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/attributedstring (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/bridging (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/componentregistry (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/componentregistrynative (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/components (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric/components/legacyviewmanagerinterop (= 0.85.2) + - React-Fabric/components/root (= 0.85.2) + - React-Fabric/components/scrollview (= 0.85.2) + - React-Fabric/components/view (= 0.85.2) + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/components/legacyviewmanagerinterop (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/components/root (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/components/scrollview (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/components/view (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-renderercss + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - React-Fabric/consistency (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/core (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/dom (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/imagemanager (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/leakchecker (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/mounting (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/observers (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric/observers/events (= 0.85.2) + - React-Fabric/observers/intersection (= 0.85.2) + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/observers/events (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/observers/intersection (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/scheduler (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric/animationbackend + - React-Fabric/observers/events + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-performancecdpmetrics + - React-performancetimeline + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/telemetry (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/uimanager (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric/uimanager/consistency (= 0.85.2) + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererconsistency + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-Fabric/uimanager/consistency (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererconsistency + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-FabricComponents (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric + - React-FabricComponents/components (= 0.85.2) + - React-FabricComponents/textlayoutmanager (= 0.85.2) + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-RCTFBReactNativeSpec + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - React-FabricComponents/components (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric + - React-FabricComponents/components/inputaccessory (= 0.85.2) + - React-FabricComponents/components/iostextinput (= 0.85.2) + - React-FabricComponents/components/modal (= 0.85.2) + - React-FabricComponents/components/rncore (= 0.85.2) + - React-FabricComponents/components/safeareaview (= 0.85.2) + - React-FabricComponents/components/scrollview (= 0.85.2) + - React-FabricComponents/components/switch (= 0.85.2) + - React-FabricComponents/components/text (= 0.85.2) + - React-FabricComponents/components/textinput (= 0.85.2) + - React-FabricComponents/components/unimplementedview (= 0.85.2) + - React-FabricComponents/components/virtualview (= 0.85.2) + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-RCTFBReactNativeSpec + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - React-FabricComponents/components/inputaccessory (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-RCTFBReactNativeSpec + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - React-FabricComponents/components/iostextinput (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-RCTFBReactNativeSpec + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - React-FabricComponents/components/modal (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-RCTFBReactNativeSpec + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - React-FabricComponents/components/rncore (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-RCTFBReactNativeSpec + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - React-FabricComponents/components/safeareaview (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-RCTFBReactNativeSpec + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - React-FabricComponents/components/scrollview (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-RCTFBReactNativeSpec + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - React-FabricComponents/components/switch (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-RCTFBReactNativeSpec + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - React-FabricComponents/components/text (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-RCTFBReactNativeSpec + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - React-FabricComponents/components/textinput (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-RCTFBReactNativeSpec + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - React-FabricComponents/components/unimplementedview (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-RCTFBReactNativeSpec + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - React-FabricComponents/components/virtualview (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-RCTFBReactNativeSpec + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - React-FabricComponents/textlayoutmanager (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-RCTFBReactNativeSpec + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - React-FabricImage (0.85.2): + - hermes-engine + - RCTRequired (= 0.85.2) + - RCTTypeSafety (= 0.85.2) + - React-Core-prebuilt + - React-Fabric + - React-featureflags + - React-graphics + - React-ImageManager + - React-jsi + - React-jsiexecutor (= 0.85.2) + - React-logger + - React-rendererdebug + - React-utils + - ReactCommon + - ReactNativeDependencies + - Yoga + - React-featureflags (0.85.2): + - React-Core-prebuilt + - ReactNativeDependencies + - React-featureflagsnativemodule (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-featureflags + - React-jsi + - React-jsiexecutor + - React-RCTFBReactNativeSpec + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-graphics (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-featureflags + - React-jsi + - React-jsiexecutor + - React-utils + - ReactNativeDependencies + - React-hermes (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-cxxreact (= 0.85.2) + - React-jsi + - React-jsiexecutor (= 0.85.2) + - React-jsinspector + - React-jsinspectorcdp + - React-jsinspectortracing + - React-jsitooling + - React-oscompat + - React-perflogger (= 0.85.2) + - React-runtimeexecutor + - ReactNativeDependencies + - React-idlecallbacksnativemodule (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-jsi + - React-jsiexecutor + - React-RCTFBReactNativeSpec + - React-runtimeexecutor + - React-runtimescheduler + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-ImageManager (0.85.2): + - React-Core-prebuilt + - React-Core/Default + - React-debug + - React-Fabric + - React-graphics + - React-rendererdebug + - React-utils + - ReactNativeDependencies + - React-intersectionobservernativemodule (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-cxxreact + - React-Fabric + - React-Fabric/bridging + - React-graphics + - React-jsi + - React-jsiexecutor + - React-RCTFBReactNativeSpec + - React-runtimeexecutor + - React-runtimescheduler + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - React-jserrorhandler (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-jsi + - ReactCommon/turbomodule/bridging + - ReactNativeDependencies + - React-jsi (0.85.2): + - hermes-engine + - React-Core-prebuilt + - ReactNativeDependencies + - React-jsiexecutor (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-jserrorhandler + - React-jsi + - React-jsinspector + - React-jsinspectorcdp + - React-jsinspectortracing + - React-jsitooling + - React-perflogger + - React-runtimeexecutor + - React-utils + - ReactNativeDependencies + - React-jsinspector (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-featureflags + - React-jsi + - React-jsinspectorcdp + - React-jsinspectornetwork + - React-jsinspectortracing + - React-oscompat + - React-perflogger (= 0.85.2) + - React-runtimeexecutor + - React-utils + - ReactNativeDependencies + - React-jsinspectorcdp (0.85.2): + - React-Core-prebuilt + - ReactNativeDependencies + - React-jsinspectornetwork (0.85.2): + - React-Core-prebuilt + - React-jsinspectorcdp + - ReactNativeDependencies + - React-jsinspectortracing (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-jsi + - React-jsinspectornetwork + - React-oscompat + - React-timing + - ReactNativeDependencies + - React-jsitooling (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-cxxreact (= 0.85.2) + - React-debug + - React-jsi (= 0.85.2) + - React-jsinspector + - React-jsinspectorcdp + - React-jsinspectortracing + - React-runtimeexecutor + - React-utils + - ReactNativeDependencies + - React-jsitracing (0.85.2): + - React-jsi + - React-logger (0.85.2): + - React-Core-prebuilt + - ReactNativeDependencies + - React-Mapbuffer (0.85.2): + - React-Core-prebuilt + - React-debug + - ReactNativeDependencies + - React-microtasksnativemodule (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-jsi + - React-jsiexecutor + - React-RCTFBReactNativeSpec + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - react-native-safe-area-context (5.9.1): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-ImageManager + - React-jsi + - react-native-safe-area-context/common (= 5.9.1) + - react-native-safe-area-context/fabric (= 5.9.1) + - React-NativeModulesApple + - React-RCTFabric + - React-renderercss + - React-rendererdebug + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - react-native-safe-area-context/common (5.9.1): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-ImageManager + - React-jsi + - React-NativeModulesApple + - React-RCTFabric + - React-renderercss + - React-rendererdebug + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - react-native-safe-area-context/fabric (5.9.1): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-ImageManager + - React-jsi + - react-native-safe-area-context/common + - React-NativeModulesApple + - React-RCTFabric + - React-renderercss + - React-rendererdebug + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - React-NativeModulesApple (0.85.2): + - hermes-engine + - React-callinvoker + - React-Core + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-jsi + - React-jsinspector + - React-jsinspectorcdp + - React-runtimeexecutor + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - React-networking (0.85.2): + - React-Core-prebuilt + - React-jsinspectornetwork + - React-jsinspectortracing + - React-performancetimeline + - React-timing + - ReactNativeDependencies + - React-oscompat (0.85.2) + - React-perflogger (0.85.2): + - React-Core-prebuilt + - ReactNativeDependencies + - React-performancecdpmetrics (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-jsi + - React-performancetimeline + - React-runtimeexecutor + - React-timing + - ReactNativeDependencies + - React-performancetimeline (0.85.2): + - React-Core-prebuilt + - React-featureflags + - React-jsinspector + - React-jsinspectortracing + - React-perflogger + - React-timing + - ReactNativeDependencies + - React-RCTActionSheet (0.85.2): + - React-Core/RCTActionSheetHeaders (= 0.85.2) + - React-RCTAnimation (0.85.2): + - RCTTypeSafety + - React-Core-prebuilt + - React-Core/RCTAnimationHeaders + - React-debug + - React-featureflags + - React-jsi + - React-NativeModulesApple + - React-RCTFBReactNativeSpec + - ReactCommon + - ReactNativeDependencies + - React-RCTAppDelegate (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-CoreModules + - React-debug + - React-defaultsnativemodule + - React-Fabric + - React-featureflags + - React-graphics + - React-hermes + - React-jsitooling + - React-NativeModulesApple + - React-RCTFabric + - React-RCTFBReactNativeSpec + - React-RCTImage + - React-RCTNetwork + - React-RCTRuntime + - React-rendererdebug + - React-RuntimeApple + - React-RuntimeCore + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactCommon + - ReactNativeDependencies + - React-RCTBlob (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-Core/RCTBlobHeaders + - React-Core/RCTWebSocket + - React-jsi + - React-jsinspector + - React-jsinspectorcdp + - React-NativeModulesApple + - React-RCTFBReactNativeSpec + - React-RCTNetwork + - ReactCommon + - ReactNativeDependencies + - React-RCTFabric (0.85.2): + - hermes-engine + - RCTSwiftUIWrapper + - React-Core + - React-Core-prebuilt + - React-debug + - React-Fabric + - React-FabricComponents + - React-FabricImage + - React-featureflags + - React-graphics + - React-ImageManager + - React-jsi + - React-jsinspector + - React-jsinspectorcdp + - React-jsinspectortracing + - React-networking + - React-performancecdpmetrics + - React-performancetimeline + - React-RCTAnimation + - React-RCTFBReactNativeSpec + - React-RCTImage + - React-RCTText + - React-rendererconsistency + - React-renderercss + - React-rendererdebug + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactNativeDependencies + - Yoga + - React-RCTFBReactNativeSpec (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-jsi + - React-NativeModulesApple + - React-RCTFBReactNativeSpec/components (= 0.85.2) + - ReactCommon + - ReactNativeDependencies + - React-RCTFBReactNativeSpec/components (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-NativeModulesApple + - React-rendererdebug + - React-utils + - ReactCommon + - ReactNativeDependencies + - Yoga + - React-RCTImage (0.85.2): + - RCTTypeSafety + - React-Core-prebuilt + - React-Core/RCTImageHeaders + - React-jsi + - React-NativeModulesApple + - React-RCTFBReactNativeSpec + - React-RCTNetwork + - ReactCommon + - ReactNativeDependencies + - React-RCTLinking (0.85.2): + - React-Core/RCTLinkingHeaders (= 0.85.2) + - React-jsi (= 0.85.2) + - React-NativeModulesApple + - React-RCTFBReactNativeSpec + - ReactCommon + - ReactCommon/turbomodule/core (= 0.85.2) + - React-RCTNetwork (0.85.2): + - RCTTypeSafety + - React-Core-prebuilt + - React-Core/RCTNetworkHeaders + - React-debug + - React-featureflags + - React-jsi + - React-jsinspectorcdp + - React-jsinspectornetwork + - React-NativeModulesApple + - React-networking + - React-RCTFBReactNativeSpec + - ReactCommon + - ReactNativeDependencies + - React-RCTRuntime (0.85.2): + - hermes-engine + - React-Core + - React-Core-prebuilt + - React-debug + - React-jsi + - React-jsinspector + - React-jsinspectorcdp + - React-jsinspectortracing + - React-jsitooling + - React-RuntimeApple + - React-RuntimeCore + - React-runtimeexecutor + - React-RuntimeHermes + - React-utils + - ReactNativeDependencies + - React-RCTSettings (0.85.2): + - RCTTypeSafety + - React-Core-prebuilt + - React-Core/RCTSettingsHeaders + - React-jsi + - React-NativeModulesApple + - React-RCTFBReactNativeSpec + - ReactCommon + - ReactNativeDependencies + - React-RCTText (0.85.2): + - React-Core/RCTTextHeaders (= 0.85.2) + - Yoga + - React-RCTVibration (0.85.2): + - React-Core-prebuilt + - React-Core/RCTVibrationHeaders + - React-jsi + - React-NativeModulesApple + - React-RCTFBReactNativeSpec + - ReactCommon + - ReactNativeDependencies + - React-rendererconsistency (0.85.2) + - React-renderercss (0.85.2): + - React-debug + - React-utils + - React-rendererdebug (0.85.2): + - React-Core-prebuilt + - React-debug + - ReactNativeDependencies + - React-RuntimeApple (0.85.2): + - hermes-engine + - React-callinvoker + - React-Core-prebuilt + - React-Core/Default + - React-CoreModules + - React-cxxreact + - React-featureflags + - React-jserrorhandler + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-jsitooling + - React-Mapbuffer + - React-NativeModulesApple + - React-RCTFabric + - React-RCTFBReactNativeSpec + - React-RuntimeCore + - React-runtimeexecutor + - React-RuntimeHermes + - React-runtimescheduler + - React-utils + - ReactNativeDependencies + - React-RuntimeCore (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-cxxreact + - React-Fabric + - React-featureflags + - React-jserrorhandler + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-jsitooling + - React-performancetimeline + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - ReactNativeDependencies + - React-runtimeexecutor (0.85.2): + - React-Core-prebuilt + - React-debug + - React-featureflags + - React-jsi (= 0.85.2) + - React-utils + - ReactNativeDependencies + - React-RuntimeHermes (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-featureflags + - React-hermes + - React-jsi + - React-jsinspector + - React-jsinspectorcdp + - React-jsinspectortracing + - React-jsitooling + - React-jsitracing + - React-RuntimeCore + - React-runtimeexecutor + - React-utils + - ReactNativeDependencies + - React-runtimescheduler (0.85.2): + - hermes-engine + - React-callinvoker + - React-Core-prebuilt + - React-cxxreact + - React-debug + - React-featureflags + - React-jsi + - React-jsinspectortracing + - React-performancetimeline + - React-rendererconsistency + - React-rendererdebug + - React-runtimeexecutor + - React-timing + - React-utils + - ReactNativeDependencies + - React-timing (0.85.2): + - React-debug + - React-utils (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-debug + - React-jsi (= 0.85.2) + - ReactNativeDependencies + - React-webperformancenativemodule (0.85.2): + - hermes-engine + - React-Core-prebuilt + - React-cxxreact + - React-jsi + - React-jsiexecutor + - React-performancetimeline + - React-RCTFBReactNativeSpec + - React-runtimeexecutor + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - ReactAppDependencyProvider (0.85.2): + - ReactCodegen + - ReactCodegen (0.85.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-debug + - React-Fabric + - React-FabricImage + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-NativeModulesApple + - React-RCTAppDelegate + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - ReactCommon (0.85.2): + - React-Core-prebuilt + - ReactCommon/turbomodule (= 0.85.2) + - ReactNativeDependencies + - ReactCommon/turbomodule (0.85.2): + - hermes-engine + - React-callinvoker (= 0.85.2) + - React-Core-prebuilt + - React-cxxreact (= 0.85.2) + - React-jsi (= 0.85.2) + - React-logger (= 0.85.2) + - React-perflogger (= 0.85.2) + - ReactCommon/turbomodule/bridging (= 0.85.2) + - ReactCommon/turbomodule/core (= 0.85.2) + - ReactNativeDependencies + - ReactCommon/turbomodule/bridging (0.85.2): + - hermes-engine + - React-callinvoker (= 0.85.2) + - React-Core-prebuilt + - React-cxxreact (= 0.85.2) + - React-jsi (= 0.85.2) + - React-logger (= 0.85.2) + - React-perflogger (= 0.85.2) + - ReactNativeDependencies + - ReactCommon/turbomodule/core (0.85.2): + - hermes-engine + - React-callinvoker (= 0.85.2) + - React-Core-prebuilt + - React-cxxreact (= 0.85.2) + - React-debug (= 0.85.2) + - React-featureflags (= 0.85.2) + - React-jsi (= 0.85.2) + - React-logger (= 0.85.2) + - React-perflogger (= 0.85.2) + - React-utils (= 0.85.2) + - ReactNativeDependencies + - ReactNativeDependencies (0.85.2) + - RNCAsyncStorage (2.2.0): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-ImageManager + - React-jsi + - React-NativeModulesApple + - React-RCTFabric + - React-renderercss + - React-rendererdebug + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - RNReanimated (4.6.0): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-hermes + - React-ImageManager + - React-jsi + - React-NativeModulesApple + - React-RCTFabric + - React-renderercss + - React-rendererdebug + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - RNReanimated/apple (= 4.6.0) + - RNReanimated/common (= 4.6.0) + - RNReanimated/view (= 4.6.0) + - RNWorklets + - Yoga + - RNReanimated/apple (4.6.0): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-hermes + - React-ImageManager + - React-jsi + - React-NativeModulesApple + - React-RCTFabric + - React-renderercss + - React-rendererdebug + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - RNWorklets + - Yoga + - RNReanimated/common (4.6.0): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-hermes + - React-ImageManager + - React-jsi + - React-NativeModulesApple + - React-RCTFabric + - React-renderercss + - React-rendererdebug + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - RNWorklets + - Yoga + - RNReanimated/view (4.6.0): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-hermes + - React-ImageManager + - React-jsi + - React-NativeModulesApple + - React-RCTFabric + - React-renderercss + - React-rendererdebug + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - RNWorklets + - Yoga + - RNSVG (15.15.5): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-ImageManager + - React-jsi + - React-NativeModulesApple + - React-RCTFabric + - React-renderercss + - React-rendererdebug + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - RNSVG/common (= 15.15.5) + - Yoga + - RNSVG/common (15.15.5): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-ImageManager + - React-jsi + - React-NativeModulesApple + - React-RCTFabric + - React-renderercss + - React-rendererdebug + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - RNWorklets (0.12.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-hermes + - React-ImageManager + - React-jsi + - React-NativeModulesApple + - React-RCTFabric + - React-renderercss + - React-rendererdebug + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - RNWorklets/apple (= 0.12.2) + - RNWorklets/common (= 0.12.2) + - Yoga + - RNWorklets/apple (0.12.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-hermes + - React-ImageManager + - React-jsi + - React-NativeModulesApple + - React-RCTFabric + - React-renderercss + - React-rendererdebug + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - RNWorklets/common (0.12.2): + - hermes-engine + - RCTRequired + - RCTTypeSafety + - React-Core + - React-Core-prebuilt + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-hermes + - React-ImageManager + - React-jsi + - React-NativeModulesApple + - React-RCTFabric + - React-renderercss + - React-rendererdebug + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - ReactNativeDependencies + - Yoga + - Yoga (0.0.0) + +DEPENDENCIES: + - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) + - hermes-engine (from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`) + - "MeshSdk (from `../node_modules/@offline-protocol/mesh-sdk`)" + - RCTDeprecation (from `../node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation`) + - RCTRequired (from `../node_modules/react-native/Libraries/Required`) + - RCTSwiftUI (from `../node_modules/react-native/ReactApple/RCTSwiftUI`) + - RCTSwiftUIWrapper (from `../node_modules/react-native/ReactApple/RCTSwiftUIWrapper`) + - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) + - React (from `../node_modules/react-native/`) + - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) + - React-Core (from `../node_modules/react-native/`) + - React-Core-prebuilt (from `../node_modules/react-native/React-Core-prebuilt.podspec`) + - React-Core/RCTWebSocket (from `../node_modules/react-native/`) + - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) + - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) + - React-debug (from `../node_modules/react-native/ReactCommon/react/debug`) + - React-defaultsnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/defaults`) + - React-domnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/dom`) + - React-Fabric (from `../node_modules/react-native/ReactCommon`) + - React-FabricComponents (from `../node_modules/react-native/ReactCommon`) + - React-FabricImage (from `../node_modules/react-native/ReactCommon`) + - React-featureflags (from `../node_modules/react-native/ReactCommon/react/featureflags`) + - React-featureflagsnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/featureflags`) + - React-graphics (from `../node_modules/react-native/ReactCommon/react/renderer/graphics`) + - React-hermes (from `../node_modules/react-native/ReactCommon/hermes`) + - React-idlecallbacksnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/idlecallbacks`) + - React-ImageManager (from `../node_modules/react-native/ReactCommon/react/renderer/imagemanager/platform/ios`) + - React-intersectionobservernativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/intersectionobserver`) + - React-jserrorhandler (from `../node_modules/react-native/ReactCommon/jserrorhandler`) + - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) + - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) + - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector-modern`) + - React-jsinspectorcdp (from `../node_modules/react-native/ReactCommon/jsinspector-modern/cdp`) + - React-jsinspectornetwork (from `../node_modules/react-native/ReactCommon/jsinspector-modern/network`) + - React-jsinspectortracing (from `../node_modules/react-native/ReactCommon/jsinspector-modern/tracing`) + - React-jsitooling (from `../node_modules/react-native/ReactCommon/jsitooling`) + - React-jsitracing (from `../node_modules/react-native/ReactCommon/hermes/executor/`) + - React-logger (from `../node_modules/react-native/ReactCommon/logger`) + - React-Mapbuffer (from `../node_modules/react-native/ReactCommon`) + - React-microtasksnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/microtasks`) + - react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`) + - React-NativeModulesApple (from `../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`) + - React-networking (from `../node_modules/react-native/ReactCommon/react/networking`) + - React-oscompat (from `../node_modules/react-native/ReactCommon/oscompat`) + - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) + - React-performancecdpmetrics (from `../node_modules/react-native/ReactCommon/react/performance/cdpmetrics`) + - React-performancetimeline (from `../node_modules/react-native/ReactCommon/react/performance/timeline`) + - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) + - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) + - React-RCTAppDelegate (from `../node_modules/react-native/Libraries/AppDelegate`) + - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) + - React-RCTFabric (from `../node_modules/react-native/React`) + - React-RCTFBReactNativeSpec (from `../node_modules/react-native/React`) + - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) + - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) + - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) + - React-RCTRuntime (from `../node_modules/react-native/React/Runtime`) + - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) + - React-RCTText (from `../node_modules/react-native/Libraries/Text`) + - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) + - React-rendererconsistency (from `../node_modules/react-native/ReactCommon/react/renderer/consistency`) + - React-renderercss (from `../node_modules/react-native/ReactCommon/react/renderer/css`) + - React-rendererdebug (from `../node_modules/react-native/ReactCommon/react/renderer/debug`) + - React-RuntimeApple (from `../node_modules/react-native/ReactCommon/react/runtime/platform/ios`) + - React-RuntimeCore (from `../node_modules/react-native/ReactCommon/react/runtime`) + - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) + - React-RuntimeHermes (from `../node_modules/react-native/ReactCommon/react/runtime`) + - React-runtimescheduler (from `../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler`) + - React-timing (from `../node_modules/react-native/ReactCommon/react/timing`) + - React-utils (from `../node_modules/react-native/ReactCommon/react/utils`) + - React-webperformancenativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/webperformance`) + - ReactAppDependencyProvider (from `build/generated/ios/ReactAppDependencyProvider`) + - ReactCodegen (from `build/generated/ios/ReactCodegen`) + - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) + - ReactNativeDependencies (from `../node_modules/react-native/third-party-podspecs/ReactNativeDependencies.podspec`) + - "RNCAsyncStorage (from `../node_modules/@react-native-async-storage/async-storage`)" + - RNReanimated (from `../node_modules/react-native-reanimated`) + - RNSVG (from `../node_modules/react-native-svg`) + - RNWorklets (from `../node_modules/react-native-worklets`) + - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) + +EXTERNAL SOURCES: + FBLazyVector: + :path: "../node_modules/react-native/Libraries/FBLazyVector" + hermes-engine: + :podspec: "../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec" + :tag: hermes-v250829098.0.10 + MeshSdk: + :path: "../node_modules/@offline-protocol/mesh-sdk" + RCTDeprecation: + :path: "../node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation" + RCTRequired: + :path: "../node_modules/react-native/Libraries/Required" + RCTSwiftUI: + :path: "../node_modules/react-native/ReactApple/RCTSwiftUI" + RCTSwiftUIWrapper: + :path: "../node_modules/react-native/ReactApple/RCTSwiftUIWrapper" + RCTTypeSafety: + :path: "../node_modules/react-native/Libraries/TypeSafety" + React: + :path: "../node_modules/react-native/" + React-callinvoker: + :path: "../node_modules/react-native/ReactCommon/callinvoker" + React-Core: + :path: "../node_modules/react-native/" + React-Core-prebuilt: + :podspec: "../node_modules/react-native/React-Core-prebuilt.podspec" + React-CoreModules: + :path: "../node_modules/react-native/React/CoreModules" + React-cxxreact: + :path: "../node_modules/react-native/ReactCommon/cxxreact" + React-debug: + :path: "../node_modules/react-native/ReactCommon/react/debug" + React-defaultsnativemodule: + :path: "../node_modules/react-native/ReactCommon/react/nativemodule/defaults" + React-domnativemodule: + :path: "../node_modules/react-native/ReactCommon/react/nativemodule/dom" + React-Fabric: + :path: "../node_modules/react-native/ReactCommon" + React-FabricComponents: + :path: "../node_modules/react-native/ReactCommon" + React-FabricImage: + :path: "../node_modules/react-native/ReactCommon" + React-featureflags: + :path: "../node_modules/react-native/ReactCommon/react/featureflags" + React-featureflagsnativemodule: + :path: "../node_modules/react-native/ReactCommon/react/nativemodule/featureflags" + React-graphics: + :path: "../node_modules/react-native/ReactCommon/react/renderer/graphics" + React-hermes: + :path: "../node_modules/react-native/ReactCommon/hermes" + React-idlecallbacksnativemodule: + :path: "../node_modules/react-native/ReactCommon/react/nativemodule/idlecallbacks" + React-ImageManager: + :path: "../node_modules/react-native/ReactCommon/react/renderer/imagemanager/platform/ios" + React-intersectionobservernativemodule: + :path: "../node_modules/react-native/ReactCommon/react/nativemodule/intersectionobserver" + React-jserrorhandler: + :path: "../node_modules/react-native/ReactCommon/jserrorhandler" + React-jsi: + :path: "../node_modules/react-native/ReactCommon/jsi" + React-jsiexecutor: + :path: "../node_modules/react-native/ReactCommon/jsiexecutor" + React-jsinspector: + :path: "../node_modules/react-native/ReactCommon/jsinspector-modern" + React-jsinspectorcdp: + :path: "../node_modules/react-native/ReactCommon/jsinspector-modern/cdp" + React-jsinspectornetwork: + :path: "../node_modules/react-native/ReactCommon/jsinspector-modern/network" + React-jsinspectortracing: + :path: "../node_modules/react-native/ReactCommon/jsinspector-modern/tracing" + React-jsitooling: + :path: "../node_modules/react-native/ReactCommon/jsitooling" + React-jsitracing: + :path: "../node_modules/react-native/ReactCommon/hermes/executor/" + React-logger: + :path: "../node_modules/react-native/ReactCommon/logger" + React-Mapbuffer: + :path: "../node_modules/react-native/ReactCommon" + React-microtasksnativemodule: + :path: "../node_modules/react-native/ReactCommon/react/nativemodule/microtasks" + react-native-safe-area-context: + :path: "../node_modules/react-native-safe-area-context" + React-NativeModulesApple: + :path: "../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios" + React-networking: + :path: "../node_modules/react-native/ReactCommon/react/networking" + React-oscompat: + :path: "../node_modules/react-native/ReactCommon/oscompat" + React-perflogger: + :path: "../node_modules/react-native/ReactCommon/reactperflogger" + React-performancecdpmetrics: + :path: "../node_modules/react-native/ReactCommon/react/performance/cdpmetrics" + React-performancetimeline: + :path: "../node_modules/react-native/ReactCommon/react/performance/timeline" + React-RCTActionSheet: + :path: "../node_modules/react-native/Libraries/ActionSheetIOS" + React-RCTAnimation: + :path: "../node_modules/react-native/Libraries/NativeAnimation" + React-RCTAppDelegate: + :path: "../node_modules/react-native/Libraries/AppDelegate" + React-RCTBlob: + :path: "../node_modules/react-native/Libraries/Blob" + React-RCTFabric: + :path: "../node_modules/react-native/React" + React-RCTFBReactNativeSpec: + :path: "../node_modules/react-native/React" + React-RCTImage: + :path: "../node_modules/react-native/Libraries/Image" + React-RCTLinking: + :path: "../node_modules/react-native/Libraries/LinkingIOS" + React-RCTNetwork: + :path: "../node_modules/react-native/Libraries/Network" + React-RCTRuntime: + :path: "../node_modules/react-native/React/Runtime" + React-RCTSettings: + :path: "../node_modules/react-native/Libraries/Settings" + React-RCTText: + :path: "../node_modules/react-native/Libraries/Text" + React-RCTVibration: + :path: "../node_modules/react-native/Libraries/Vibration" + React-rendererconsistency: + :path: "../node_modules/react-native/ReactCommon/react/renderer/consistency" + React-renderercss: + :path: "../node_modules/react-native/ReactCommon/react/renderer/css" + React-rendererdebug: + :path: "../node_modules/react-native/ReactCommon/react/renderer/debug" + React-RuntimeApple: + :path: "../node_modules/react-native/ReactCommon/react/runtime/platform/ios" + React-RuntimeCore: + :path: "../node_modules/react-native/ReactCommon/react/runtime" + React-runtimeexecutor: + :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" + React-RuntimeHermes: + :path: "../node_modules/react-native/ReactCommon/react/runtime" + React-runtimescheduler: + :path: "../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler" + React-timing: + :path: "../node_modules/react-native/ReactCommon/react/timing" + React-utils: + :path: "../node_modules/react-native/ReactCommon/react/utils" + React-webperformancenativemodule: + :path: "../node_modules/react-native/ReactCommon/react/nativemodule/webperformance" + ReactAppDependencyProvider: + :path: build/generated/ios/ReactAppDependencyProvider + ReactCodegen: + :path: build/generated/ios/ReactCodegen + ReactCommon: + :path: "../node_modules/react-native/ReactCommon" + ReactNativeDependencies: + :podspec: "../node_modules/react-native/third-party-podspecs/ReactNativeDependencies.podspec" + RNCAsyncStorage: + :path: "../node_modules/@react-native-async-storage/async-storage" + RNReanimated: + :path: "../node_modules/react-native-reanimated" + RNSVG: + :path: "../node_modules/react-native-svg" + RNWorklets: + :path: "../node_modules/react-native-worklets" + Yoga: + :path: "../node_modules/react-native/ReactCommon/yoga" + +SPEC CHECKSUMS: + FBLazyVector: 26fd21c75314e101f280d401e97f27d54f3f7064 + hermes-engine: 3a002838bb4972a0235545718ba18f497305aa5d + MeshSdk: d4a40ad67dd577e5b41da02576c04f9519545545 + RCTDeprecation: c7a2768f905d76ca6d2cfefb26e4349eacbdfca3 + RCTRequired: 5e502c3553cfbed090a991c444448da452fb752e + RCTSwiftUI: 5ce3ccbdc58b78cc4ebbaace01709ec22d58e131 + RCTSwiftUIWrapper: a8317a87bb70ef8a07dcecaf4977db7f60cf04c1 + RCTTypeSafety: 5826cf1f2269e44caee5e7c8d64e2a43af8cf0ef + React: 13cf8451582adb1bb324306e1893b91d1cba28c6 + React-callinvoker: 91e6a605826b684ad2e623811253b4d0c4196bef + React-Core: 46818de5f211b2a2759ac823b591af8a0a95c2c1 + React-Core-prebuilt: 71c3d132febe11fa261c775162a3da5e413193ad + React-CoreModules: a6a37afee48d4a31ab398640b0795462647d5c67 + React-cxxreact: 2ec3e2f7a8ae9303460d4ba94cde183ea90d64cd + React-debug: 0d21117b897ce0359c9d2c9dfe952f237476a14a + React-defaultsnativemodule: d39e708d4da6badf4ecca767da448da50b67c7c9 + React-domnativemodule: 100e502f718502d0f9c22071339e690f911aabc6 + React-Fabric: 8595b459278e6c6bf9757f3df9c6d1bfbbf00e9f + React-FabricComponents: 7da0ce24bcf163d2e447876b249aa2bd81689165 + React-FabricImage: 87d397fe918e2725633211c121457b5aa3ddc437 + React-featureflags: 2302476d727ad40a684724e3e137ebfa21640386 + React-featureflagsnativemodule: dbb8429313c66b48d9bcdf0f446ee095ef28f16a + React-graphics: 086f042572c2b957c505bc3e3138ee8e1c6415c1 + React-hermes: 540a5f1f008eb04fe59b931112b10854ee6c7061 + React-idlecallbacksnativemodule: 0dcf39e4842a8255ce48f834e82524b394c016d2 + React-ImageManager: 367a9979094651c157a35f7cb0e0f7b072451035 + React-intersectionobservernativemodule: 6b695a44eec274569a438d690e468a9e4a74a3dd + React-jserrorhandler: b23306d6d8309693189a89efdd0cf25a5c35b17d + React-jsi: 533b0f879f5e60d6c4047d429d9ba1b6c2a7e113 + React-jsiexecutor: e4380339286988d17dd1bf1b0f31e4e6ac5ef1a0 + React-jsinspector: 6360a071b0c8bd3c77f519e8836ea57bab2456d4 + React-jsinspectorcdp: 7a33cd5cfd16ca10a9b7eff7462456b18daf5d14 + React-jsinspectornetwork: dd8dbb9f54308408e4483c3160aebccb6f03780d + React-jsinspectortracing: 90f7ad9acafd2de4bc56ed5f0b13aca5d221ce4b + React-jsitooling: 713feac6b772e11c9bf2a5d75570bb74d9bfe15f + React-jsitracing: cacd0f0ef50ea61e7035c8ba3a4dc5b38c4da834 + React-logger: 2c87840a9f6322a1226d0df337d9662f44ea6094 + React-Mapbuffer: 1fc10d873f00aa895836c316a9737ce7d43875ce + React-microtasksnativemodule: 85ac7286ff84e8fc8e1956233748b8d4b2a6dcea + react-native-safe-area-context: 8368d1052ccc8fe8725adfb6a83498c8bdb48250 + React-NativeModulesApple: 993744f42aab769eb02bf5d256b6767c546d0bb5 + React-networking: 251bfddc651caca5e3039d1afa1d2eca890d0c56 + React-oscompat: ed8fa636665935e962d4091180ba6f07dcad7ea9 + React-perflogger: 2c9c7a2cb14c78d12803609d289a1bb8761d4ac3 + React-performancecdpmetrics: 613cb5ee8ac9ef50e9511e7b82aeed4d81b57b81 + React-performancetimeline: 1dde052682d06f61b1472ab79d26598ba0c883f1 + React-RCTActionSheet: f498102098d724dcf921224e213f946368cd482b + React-RCTAnimation: 9b42153018cc5f998ec911736a586cb885e33ccf + React-RCTAppDelegate: daf9f6f1fb452fbe13c81df1a8175378de7ac203 + React-RCTBlob: 8d165c9942d1a591cacadb1f073e3d9f5234d1ea + React-RCTFabric: 8071a9ca7628518420a6634c6457ecde8460e6a3 + React-RCTFBReactNativeSpec: e8eb38cca9abecf12d10a0787e413c84dc2a630f + React-RCTImage: f36bd87ac6e4aa27860518d221fd3860569a57fc + React-RCTLinking: af169ba3619e9fd02e4a0666ac01349ee642a446 + React-RCTNetwork: e31b7555e1c2c4dff1e1c594d8dac0f1a9b22fe5 + React-RCTRuntime: 397c81200ce8c2bf0d2b52b689241ed6463087a3 + React-RCTSettings: f71c195191839901491b5b2e9301514b014fbe8b + React-RCTText: 6b0cac11ad4ea9153f526a80aeecdcb0315a2039 + React-RCTVibration: 46b9020e5aab8c0c986bc4005bc2b05e1698c77d + React-rendererconsistency: fba5adaef458215b81f62459f3b1cdcc629348b8 + React-renderercss: d3bb39665d1c2f59e96fb8a04ae5bfd2baf05ca9 + React-rendererdebug: 2634d95dd3fc09f2cf2f0d2664c46a560fb57778 + React-RuntimeApple: 0f8f09f8d8031bb906ab52c683bbd6f18789faf4 + React-RuntimeCore: d4728c58d2143f503391b1389082e3044e8b0f23 + React-runtimeexecutor: a21a37ce38ff623c5f51b41d7a0f05de8e1fb01f + React-RuntimeHermes: 0e7833979b1b14e64cbda469104f48d1d12a573a + React-runtimescheduler: 13582d42d9d9ff6bd2d59c25576b1c13eb62308c + React-timing: 9f1af3753eef091257c424d3856cd6cbedcad01e + React-utils: 862e61256698fe3841aec1af476abf924a6737c3 + React-webperformancenativemodule: e745e43264767cb8f4334fc11bf3fbff880050d0 + ReactAppDependencyProvider: 22e2265d86a4e871e5e858f4e7ef1c8d01103680 + ReactCodegen: ff525841ad04271ac014124551cc27fe2504e966 + ReactCommon: a804bb8d1dcf3ecdec3a77eb8bba19b7863bbbdb + ReactNativeDependencies: 834496dcedd22c43c72d0bbfcf6de4bd0017149c + RNCAsyncStorage: 2ad919e88b8bc2cd80e8697ce66d04d006743283 + RNReanimated: f194a821533c12bd52284f5f7cbc39f44f5e70b8 + RNSVG: 0e52210d4d43165e7e2cf9c890a9848b27e513ac + RNWorklets: 6df88df4d498668192571738b0492db7bc6463da + Yoga: 04bb4bfeb02c0000b940c1e6e89e856cd8de5a71 + +PODFILE CHECKSUM: f524835496b2c230a15f0d1014c6e0422e53ef1e + +COCOAPODS: 1.16.2 diff --git a/apps/surfrroll/ios/SurfrRoll.xcodeproj/project.pbxproj b/apps/surfrroll/ios/SurfrRoll.xcodeproj/project.pbxproj new file mode 100644 index 0000000..2e16f3f --- /dev/null +++ b/apps/surfrroll/ios/SurfrRoll.xcodeproj/project.pbxproj @@ -0,0 +1,528 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 0C80B921A6F3F58F76C31292 /* libPods-SurfrRoll.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DCACB8F33CDC322A6C60F78 /* libPods-SurfrRoll.a */; }; + 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; + 4204E37E1345127821B1D61D /* space_grotesk_medium.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7D7566AB5B03E0DD2AE8D975 /* space_grotesk_medium.ttf */; }; + 4DADA4D9FCF7ACF7CD308512 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */; }; + 59FA85C7DABD4C424CC92A6D /* dm_serif_display_regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0DDFFF2E5319DC6CB07FB356 /* dm_serif_display_regular.ttf */; }; + 761780ED2CA45674006654EE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 761780EC2CA45674006654EE /* AppDelegate.swift */; }; + 77425900FDE6A239FBDE1587 /* space_grotesk_semibold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 16DDDA6F0AE168DD28C46529 /* space_grotesk_semibold.ttf */; }; + 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; + ACF648FCD514FC7967494DCF /* space_grotesk_regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8077B93F1BA98961C21AE16E /* space_grotesk_regular.ttf */; }; + B2E8F1A12CA45701006654EE /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B2E8F1A02CA45701006654EE /* SceneDelegate.swift */; }; + C79EC88C8F01E8069AAC7EB9 /* space_grotesk_bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A7E51F5E996CDBEB4D2962DC /* space_grotesk_bold.ttf */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 0DDFFF2E5319DC6CB07FB356 /* dm_serif_display_regular.ttf */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file; name = dm_serif_display_regular.ttf; path = ../../../packages/ui/fonts/font/dm_serif_display_regular.ttf; sourceTree = SOURCE_ROOT; }; + 13B07F961A680F5B00A75B9A /* SurfrRoll.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SurfrRoll.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = SurfrRoll/Images.xcassets; sourceTree = ""; }; + 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = SurfrRoll/Info.plist; sourceTree = ""; }; + 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = PrivacyInfo.xcprivacy; path = SurfrRoll/PrivacyInfo.xcprivacy; sourceTree = ""; }; + 16DDDA6F0AE168DD28C46529 /* space_grotesk_semibold.ttf */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file; name = space_grotesk_semibold.ttf; path = ../../../packages/ui/fonts/font/space_grotesk_semibold.ttf; sourceTree = SOURCE_ROOT; }; + 3B4392A12AC88292D35C810B /* Pods-SurfrRoll.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SurfrRoll.debug.xcconfig"; path = "Target Support Files/Pods-SurfrRoll/Pods-SurfrRoll.debug.xcconfig"; sourceTree = ""; }; + 5709B34CF0A7D63546082F79 /* Pods-SurfrRoll.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SurfrRoll.release.xcconfig"; path = "Target Support Files/Pods-SurfrRoll/Pods-SurfrRoll.release.xcconfig"; sourceTree = ""; }; + 5DCACB8F33CDC322A6C60F78 /* libPods-SurfrRoll.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-SurfrRoll.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 761780EC2CA45674006654EE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = SurfrRoll/AppDelegate.swift; sourceTree = ""; }; + 7D7566AB5B03E0DD2AE8D975 /* space_grotesk_medium.ttf */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file; name = space_grotesk_medium.ttf; path = ../../../packages/ui/fonts/font/space_grotesk_medium.ttf; sourceTree = SOURCE_ROOT; }; + 8077B93F1BA98961C21AE16E /* space_grotesk_regular.ttf */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file; name = space_grotesk_regular.ttf; path = ../../../packages/ui/fonts/font/space_grotesk_regular.ttf; sourceTree = SOURCE_ROOT; }; + 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = SurfrRoll/LaunchScreen.storyboard; sourceTree = ""; }; + A7E51F5E996CDBEB4D2962DC /* space_grotesk_bold.ttf */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file; name = space_grotesk_bold.ttf; path = ../../../packages/ui/fonts/font/space_grotesk_bold.ttf; sourceTree = SOURCE_ROOT; }; + B2E8F1A02CA45701006654EE /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = SceneDelegate.swift; path = SurfrRoll/SceneDelegate.swift; sourceTree = ""; }; + ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 0C80B921A6F3F58F76C31292 /* libPods-SurfrRoll.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 13B07FAE1A68108700A75B9A /* SurfrRoll */ = { + isa = PBXGroup; + children = ( + 13B07FB51A68108700A75B9A /* Images.xcassets */, + 761780EC2CA45674006654EE /* AppDelegate.swift */, + B2E8F1A02CA45701006654EE /* SceneDelegate.swift */, + 13B07FB61A68108700A75B9A /* Info.plist */, + 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, + 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */, + ); + name = SurfrRoll; + sourceTree = ""; + }; + 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { + isa = PBXGroup; + children = ( + ED297162215061F000B7C4FE /* JavaScriptCore.framework */, + 5DCACB8F33CDC322A6C60F78 /* libPods-SurfrRoll.a */, + ); + name = Frameworks; + sourceTree = ""; + }; + 4EAC6312E6044F5B6A468D1D /* Fonts */ = { + isa = PBXGroup; + children = ( + 0DDFFF2E5319DC6CB07FB356 /* dm_serif_display_regular.ttf */, + A7E51F5E996CDBEB4D2962DC /* space_grotesk_bold.ttf */, + 7D7566AB5B03E0DD2AE8D975 /* space_grotesk_medium.ttf */, + 8077B93F1BA98961C21AE16E /* space_grotesk_regular.ttf */, + 16DDDA6F0AE168DD28C46529 /* space_grotesk_semibold.ttf */, + ); + name = Fonts; + sourceTree = ""; + }; + 832341AE1AAA6A7D00B99B32 /* Libraries */ = { + isa = PBXGroup; + children = ( + ); + name = Libraries; + sourceTree = ""; + }; + 83CBB9F61A601CBA00E9B192 = { + isa = PBXGroup; + children = ( + 13B07FAE1A68108700A75B9A /* SurfrRoll */, + 832341AE1AAA6A7D00B99B32 /* Libraries */, + 83CBBA001A601CBA00E9B192 /* Products */, + 2D16E6871FA4F8E400B85C8A /* Frameworks */, + BBD78D7AC51CEA395F1C20DB /* Pods */, + 4EAC6312E6044F5B6A468D1D /* Fonts */, + ); + indentWidth = 2; + sourceTree = ""; + tabWidth = 2; + usesTabs = 0; + }; + 83CBBA001A601CBA00E9B192 /* Products */ = { + isa = PBXGroup; + children = ( + 13B07F961A680F5B00A75B9A /* SurfrRoll.app */, + ); + name = Products; + sourceTree = ""; + }; + BBD78D7AC51CEA395F1C20DB /* Pods */ = { + isa = PBXGroup; + children = ( + 3B4392A12AC88292D35C810B /* Pods-SurfrRoll.debug.xcconfig */, + 5709B34CF0A7D63546082F79 /* Pods-SurfrRoll.release.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 13B07F861A680F5B00A75B9A /* SurfrRoll */ = { + isa = PBXNativeTarget; + buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "SurfrRoll" */; + buildPhases = ( + C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */, + 13B07F871A680F5B00A75B9A /* Sources */, + 13B07F8C1A680F5B00A75B9A /* Frameworks */, + 13B07F8E1A680F5B00A75B9A /* Resources */, + 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, + 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */, + E235C05ADACE081382539298 /* [CP] Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SurfrRoll; + productName = SurfrRoll; + productReference = 13B07F961A680F5B00A75B9A /* SurfrRoll.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 83CBB9F71A601CBA00E9B192 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1210; + TargetAttributes = { + 13B07F861A680F5B00A75B9A = { + LastSwiftMigration = 1120; + }; + }; + }; + buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "SurfrRoll" */; + compatibilityVersion = "Xcode 12.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 83CBB9F61A601CBA00E9B192; + productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 13B07F861A680F5B00A75B9A /* SurfrRoll */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 13B07F8E1A680F5B00A75B9A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, + 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, + 4DADA4D9FCF7ACF7CD308512 /* PrivacyInfo.xcprivacy in Resources */, + 59FA85C7DABD4C424CC92A6D /* dm_serif_display_regular.ttf in Resources */, + C79EC88C8F01E8069AAC7EB9 /* space_grotesk_bold.ttf in Resources */, + 4204E37E1345127821B1D61D /* space_grotesk_medium.ttf in Resources */, + ACF648FCD514FC7967494DCF /* space_grotesk_regular.ttf in Resources */, + 77425900FDE6A239FBDE1587 /* space_grotesk_semibold.ttf in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "$(SRCROOT)/.xcode.env.local", + "$(SRCROOT)/.xcode.env", + ); + name = "Bundle React Native code and images"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "set -e\n\nWITH_ENVIRONMENT=\"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"$REACT_NATIVE_PATH/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"\\\"$WITH_ENVIRONMENT\\\" \\\"$REACT_NATIVE_XCODE\\\"\"\n"; + }; + 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-SurfrRoll/Pods-SurfrRoll-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-SurfrRoll/Pods-SurfrRoll-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-SurfrRoll/Pods-SurfrRoll-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-SurfrRoll-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + E235C05ADACE081382539298 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-SurfrRoll/Pods-SurfrRoll-resources-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Copy Pods Resources"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-SurfrRoll/Pods-SurfrRoll-resources-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-SurfrRoll/Pods-SurfrRoll-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 13B07F871A680F5B00A75B9A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 761780ED2CA45674006654EE /* AppDelegate.swift in Sources */, + B2E8F1A12CA45701006654EE /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 13B07F941A680F5B00A75B9A /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 3B4392A12AC88292D35C810B /* Pods-SurfrRoll.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 4NZGXQRKBG; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = SurfrRoll/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 15.1; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-lc++", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.offlineappexamples.surfrroll; + PRODUCT_NAME = SurfrRoll; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 13B07F951A680F5B00A75B9A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5709B34CF0A7D63546082F79 /* Pods-SurfrRoll.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 4NZGXQRKBG; + INFOPLIST_FILE = SurfrRoll/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 15.1; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-lc++", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.offlineappexamples.surfrroll; + PRODUCT_NAME = SurfrRoll; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; + 83CBBA201A601CBA00E9B192 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + CLANG_CXX_LANGUAGE_STANDARD = "c++20"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = ""; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.1; + LD_RUNPATH_SEARCH_PATHS = ( + /usr/lib/swift, + "$(inherited)", + ); + LIBRARY_SEARCH_PATHS = ( + "\"$(SDKROOT)/usr/lib/swift\"", + "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", + "\"$(inherited)\"", + ); + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + OTHER_CFLAGS = ( + "$(inherited)", + "-DRCT_REMOVE_LEGACY_ARCH=1", + ); + OTHER_CPLUSPLUSFLAGS = ( + "$(OTHER_CFLAGS)", + "-DFOLLY_NO_CONFIG", + "-DFOLLY_MOBILE=1", + "-DFOLLY_USE_LIBCPP=1", + "-DFOLLY_CFG_NO_COROUTINES=1", + "-DFOLLY_HAVE_CLOCK_GETTIME=1", + "-DRCT_REMOVE_LEGACY_ARCH=1", + ); + REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG"; + SWIFT_ENABLE_EXPLICIT_MODULES = NO; + USE_HERMES = true; + }; + name = Debug; + }; + 83CBBA211A601CBA00E9B192 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + CLANG_CXX_LANGUAGE_STANDARD = "c++20"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = ""; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.1; + LD_RUNPATH_SEARCH_PATHS = ( + /usr/lib/swift, + "$(inherited)", + ); + LIBRARY_SEARCH_PATHS = ( + "\"$(SDKROOT)/usr/lib/swift\"", + "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", + "\"$(inherited)\"", + ); + MTL_ENABLE_DEBUG_INFO = NO; + OTHER_CFLAGS = ( + "$(inherited)", + "-DRCT_REMOVE_LEGACY_ARCH=1", + ); + OTHER_CPLUSPLUSFLAGS = ( + "$(OTHER_CFLAGS)", + "-DFOLLY_NO_CONFIG", + "-DFOLLY_MOBILE=1", + "-DFOLLY_USE_LIBCPP=1", + "-DFOLLY_CFG_NO_COROUTINES=1", + "-DFOLLY_HAVE_CLOCK_GETTIME=1", + "-DRCT_REMOVE_LEGACY_ARCH=1", + ); + REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; + SDKROOT = iphoneos; + SWIFT_ENABLE_EXPLICIT_MODULES = NO; + USE_HERMES = true; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "SurfrRoll" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 13B07F941A680F5B00A75B9A /* Debug */, + 13B07F951A680F5B00A75B9A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "SurfrRoll" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 83CBBA201A601CBA00E9B192 /* Debug */, + 83CBBA211A601CBA00E9B192 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; +} diff --git a/apps/surfrroll/ios/SurfrRoll.xcodeproj/xcshareddata/xcschemes/SurfrRoll.xcscheme b/apps/surfrroll/ios/SurfrRoll.xcodeproj/xcshareddata/xcschemes/SurfrRoll.xcscheme new file mode 100644 index 0000000..dc2bed2 --- /dev/null +++ b/apps/surfrroll/ios/SurfrRoll.xcodeproj/xcshareddata/xcschemes/SurfrRoll.xcscheme @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/surfrroll/ios/SurfrRoll.xcworkspace/contents.xcworkspacedata b/apps/surfrroll/ios/SurfrRoll.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..03d8382 --- /dev/null +++ b/apps/surfrroll/ios/SurfrRoll.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/apps/surfrroll/ios/SurfrRoll/AppDelegate.swift b/apps/surfrroll/ios/SurfrRoll/AppDelegate.swift new file mode 100644 index 0000000..fbfffcd --- /dev/null +++ b/apps/surfrroll/ios/SurfrRoll/AppDelegate.swift @@ -0,0 +1,79 @@ +import UIKit +import React +import React_RCTAppDelegate +import ReactAppDependencyProvider +#if DEBUG +import Network +#endif + +@main +class AppDelegate: UIResponder, UIApplicationDelegate { + var window: UIWindow? + + var reactNativeDelegate: ReactNativeDelegate? + var reactNativeFactory: RCTReactNativeFactory? + + #if DEBUG + /// Keeps a Bonjour browser alive so iOS shows Local Network permission (needed for Metro on device). + private static var localNetworkBrowser: NWBrowser? + #endif + + func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil + ) -> Bool { + #if DEBUG + triggerLocalNetworkPermissionIfNeeded() + #endif + + let delegate = ReactNativeDelegate() + let factory = RCTReactNativeFactory(delegate: delegate) + delegate.dependencyProvider = RCTAppDependencyProvider() + + reactNativeDelegate = delegate + reactNativeFactory = factory + + window = UIWindow(frame: UIScreen.main.bounds) + + factory.startReactNative( + withModuleName: "SurfrRoll", + in: window, + launchOptions: launchOptions + ) + + return true + } + + #if DEBUG + private func triggerLocalNetworkPermissionIfNeeded() { + let params = NWParameters() + params.includePeerToPeer = true + let browser = NWBrowser(for: .bonjour(type: "_http._tcp", domain: nil), using: params) + browser.start(queue: .main) + AppDelegate.localNetworkBrowser = browser + } + #endif +} + +class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate { + override func sourceURL(for bridge: RCTBridge) -> URL? { + self.bundleURL() + } + + override func bundleURL() -> URL? { +#if DEBUG + #if targetEnvironment(simulator) + return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index") + #else + // Device Debug builds embed main.jsbundle at compile time; prefer it so the app + // opens when Metro / Local Network is unavailable (see react-native-xcode.sh). + if let embedded = Bundle.main.url(forResource: "main", withExtension: "jsbundle") { + return embedded + } + return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index") + #endif +#else + return Bundle.main.url(forResource: "main", withExtension: "jsbundle") +#endif + } +} diff --git a/apps/surfrroll/ios/SurfrRoll/Images.xcassets/AppIcon.appiconset/Contents.json b/apps/surfrroll/ios/SurfrRoll/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..b2ee29e --- /dev/null +++ b/apps/surfrroll/ios/SurfrRoll/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,6 @@ +{ + "images" : [ + { "filename" : "Icon.png", "idiom" : "universal", "platform" : "ios", "size" : "1024x1024" } + ], + "info" : { "author" : "xcode", "version" : 1 } +} diff --git a/apps/surfrroll/ios/SurfrRoll/Images.xcassets/AppIcon.appiconset/Icon.png b/apps/surfrroll/ios/SurfrRoll/Images.xcassets/AppIcon.appiconset/Icon.png new file mode 100644 index 0000000..fddcd5c Binary files /dev/null and b/apps/surfrroll/ios/SurfrRoll/Images.xcassets/AppIcon.appiconset/Icon.png differ diff --git a/apps/surfrroll/ios/SurfrRoll/Images.xcassets/Contents.json b/apps/surfrroll/ios/SurfrRoll/Images.xcassets/Contents.json new file mode 100644 index 0000000..2d92bd5 --- /dev/null +++ b/apps/surfrroll/ios/SurfrRoll/Images.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/apps/surfrroll/ios/SurfrRoll/Info.plist b/apps/surfrroll/ios/SurfrRoll/Info.plist new file mode 100644 index 0000000..581e192 --- /dev/null +++ b/apps/surfrroll/ios/SurfrRoll/Info.plist @@ -0,0 +1,98 @@ + + + + + CADisableMinimumFrameDurationOnPhone + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + SurfrRoll + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(MARKETING_VERSION) + CFBundleSignature + ???? + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + LSRequiresIPhoneOS + + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + NSAllowsLocalNetworking + + + NSBluetoothAlwaysUsageDescription + Coordinate field teams over Bluetooth mesh when towers are down. + NSBluetoothPeripheralUsageDescription + Coordinate field teams over Bluetooth mesh when towers are down. + NSBonjourServices + + _http._tcp + + NSLocalNetworkUsageDescription + SurfrRoll connects to the development server on your Wi‑Fi while you test debug builds. + RCTNewArchEnabled + + UIAppFonts + + dm_serif_display_regular.ttf + space_grotesk_bold.ttf + space_grotesk_medium.ttf + space_grotesk_regular.ttf + space_grotesk_semibold.ttf + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + + + + + UIBackgroundModes + + bluetooth-central + bluetooth-peripheral + + UILaunchStoryboardName + LaunchScreen + UIRequiredDeviceCapabilities + + arm64 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + + UIViewControllerBasedStatusBarAppearance + + + diff --git a/apps/surfrroll/ios/SurfrRoll/LaunchScreen.storyboard b/apps/surfrroll/ios/SurfrRoll/LaunchScreen.storyboard new file mode 100644 index 0000000..483539a --- /dev/null +++ b/apps/surfrroll/ios/SurfrRoll/LaunchScreen.storyboard @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/surfrroll/ios/SurfrRoll/PrivacyInfo.xcprivacy b/apps/surfrroll/ios/SurfrRoll/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..bad3276 --- /dev/null +++ b/apps/surfrroll/ios/SurfrRoll/PrivacyInfo.xcprivacy @@ -0,0 +1,37 @@ + + + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + NSPrivacyAccessedAPITypeReasons + + C617.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategorySystemBootTime + NSPrivacyAccessedAPITypeReasons + + 35F9.1 + + + + NSPrivacyCollectedDataTypes + + NSPrivacyTracking + + + diff --git a/apps/surfrroll/ios/SurfrRoll/SceneDelegate.swift b/apps/surfrroll/ios/SurfrRoll/SceneDelegate.swift new file mode 100644 index 0000000..e10d231 --- /dev/null +++ b/apps/surfrroll/ios/SurfrRoll/SceneDelegate.swift @@ -0,0 +1,24 @@ +import UIKit + +/// iOS 27+ requires UIScene lifecycle when built with Xcode 27 (see TN3187). +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + var window: UIWindow? + + func scene( + _ scene: UIScene, + willConnectTo session: UISceneSession, + options connectionOptions: UIScene.ConnectionOptions + ) { + guard + let windowScene = scene as? UIWindowScene, + let appDelegate = UIApplication.shared.delegate as? AppDelegate, + let appWindow = appDelegate.window + else { + return + } + + appWindow.windowScene = windowScene + window = appWindow + window?.makeKeyAndVisible() + } +} diff --git a/apps/surfrroll/metro.config.js b/apps/surfrroll/metro.config.js new file mode 100644 index 0000000..36527b3 --- /dev/null +++ b/apps/surfrroll/metro.config.js @@ -0,0 +1,21 @@ +const path = require('path'); +const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config'); +const { withNativeWind } = require('nativewind/metro'); + +const monorepoRoot = path.resolve(__dirname, '../..'); + +/** @type {import('@react-native/metro-config').MetroConfig} */ +const config = { + watchFolders: [monorepoRoot], + resolver: { + nodeModulesPaths: [ + path.resolve(__dirname, 'node_modules'), + path.resolve(monorepoRoot, 'node_modules'), + ], + }, +}; + +// The theme lives in the shared ui package; App.tsx imports the same file. +module.exports = withNativeWind(mergeConfig(getDefaultConfig(__dirname), config), { + input: require.resolve('@offline-app-examples/ui/global.css'), +}); diff --git a/apps/surfrroll/nativewind-env.d.ts b/apps/surfrroll/nativewind-env.d.ts new file mode 100644 index 0000000..a13e313 --- /dev/null +++ b/apps/surfrroll/nativewind-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/apps/surfrroll/package.json b/apps/surfrroll/package.json new file mode 100644 index 0000000..e0bc779 --- /dev/null +++ b/apps/surfrroll/package.json @@ -0,0 +1,76 @@ +{ + "name": "@offline-app-examples/surfrroll", + "version": "0.1.0", + "private": true, + "license": "MIT-0", + "scripts": { + "android": "react-native run-android", + "ios": "react-native run-ios", + "start": "react-native start", + "dev": "react-native start", + "start:fresh": "react-native start --reset-cache", + "test": "jest --runInBand --passWithNoTests", + "lint": "eslint .", + "typecheck": "tsc --noEmit", + "format": "prettier --write App.tsx src __tests__", + "format:check": "prettier --check App.tsx src __tests__" + }, + "dependencies": { + "@offline-app-examples/mesh": "workspace:*", + "@offline-app-examples/ui": "workspace:*", + "@offline-protocol/mesh-sdk": "^0.28.0", + "@react-native-async-storage/async-storage": "^2.2.0", + "lucide-react-native": "^1.48.0", + "nativewind": "^4.2.7", + "react": "19.2.3", + "react-native": "0.85.2", + "react-native-css-interop": "^0.2.7", + "react-native-reanimated": "~4.6.0", + "react-native-safe-area-context": "^5.5.2", + "react-native-svg": "^15.15.5", + "react-native-worklets": "~0.12.2" + }, + "devDependencies": { + "@babel/core": "^7.25.2", + "@babel/plugin-transform-react-jsx": "^7.27.1", + "@babel/preset-env": "^7.25.3", + "@babel/runtime": "^7.25.0", + "@jest/globals": "^29.6.3", + "@react-native-community/cli": "20.1.0", + "@react-native-community/cli-platform-android": "20.1.0", + "@react-native-community/cli-platform-ios": "20.1.0", + "@react-native/babel-preset": "0.85.2", + "@react-native/codegen": "0.85.2", + "@react-native/eslint-config": "0.85.2", + "@react-native/gradle-plugin": "0.85.2", + "@react-native/jest-preset": "0.85.2", + "@react-native/metro-config": "0.85.2", + "@react-native/typescript-config": "0.85.2", + "@types/react": "^19.2.0", + "babel-jest": "^29.6.3", + "eslint": "^8.19.0", + "hermes-compiler": "250829098.0.10", + "jest": "^29.6.3", + "prettier": "^3.9.6", + "react-test-renderer": "19.2.3", + "tailwindcss": "^3.4.19", + "typescript": "^5.8.3" + }, + "engines": { + "node": ">=20" + }, + "jest": { + "testMatch": [ + "**/__tests__/**/*.test.ts" + ], + "transform": { + "^.+\\.(ts|tsx)$": "babel-jest" + }, + "moduleFileExtensions": [ + "ts", + "tsx", + "js", + "json" + ] + } +} diff --git a/apps/surfrroll/src/domain/alerts.ts b/apps/surfrroll/src/domain/alerts.ts new file mode 100644 index 0000000..b3e6c98 --- /dev/null +++ b/apps/surfrroll/src/domain/alerts.ts @@ -0,0 +1,75 @@ +import { DEMO_CLIENT } from './roster'; + +/** Demo DataSurfr signing secret — production would use platform keys + OfflineID. */ +export const DATASURFR_SIGNING_SALT = 'mitkat-datasurfr-demo-v1'; + +export type IncidentSeverity = 'advisory' | 'incident' | 'critical'; + +export type IncidentAlert = { + alertId: string; + clientId: string; + title: string; + body: string; + severity: IncidentSeverity; + affectedOffices: string[]; + issuedAt: number; + signature: string; +}; + +export function alertSigningPayload(alert: Omit): string { + return [ + alert.alertId, + alert.clientId, + alert.title, + alert.body, + alert.severity, + alert.affectedOffices.join('|'), + String(alert.issuedAt), + DATASURFR_SIGNING_SALT, + ].join('\n'); +} + +/** Deterministic demo signature (not cryptographic — shows verify/reject UX). */ +export function signAlert(alert: Omit): string { + const payload = alertSigningPayload(alert); + let hash = 2166136261; + for (let i = 0; i < payload.length; i += 1) { + hash ^= payload.charCodeAt(i); + hash = Math.imul(hash, 16777619); + } + return `ds-${(hash >>> 0).toString(16).padStart(8, '0')}`; +} + +export function verifyAlertSignature(alert: IncidentAlert): boolean { + if (!alert.signature.startsWith('ds-')) return false; + const expected = signAlert({ + alertId: alert.alertId, + clientId: alert.clientId, + title: alert.title, + body: alert.body, + severity: alert.severity, + affectedOffices: alert.affectedOffices, + issuedAt: alert.issuedAt, + }); + return alert.signature === expected; +} + +export function newAlertId(): string { + return `alert-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 7)}`; +} + +/** Mock ingest from DataSurfr when the SOC cloud link is up. */ +export function createDemoFloodAlert(now = Date.now()): IncidentAlert { + const base = { + alertId: newAlertId(), + clientId: DEMO_CLIENT.clientId, + title: 'Urban flood — Mumbai western suburbs', + body: + 'IMD red alert: intense rainfall and localised flooding. Avoid BKC–Andheri corridor; ' + + 'activate travel hold for field staff. DataSurfr linked 3 offices and 12 travel segments.', + severity: 'critical' as const, + affectedOffices: ['BKC Tower', 'Andheri campus', 'Travel — Navi Mumbai'], + issuedAt: now, + }; + return { ...base, signature: signAlert(base) }; +} diff --git a/apps/surfrroll/src/domain/platform.ts b/apps/surfrroll/src/domain/platform.ts new file mode 100644 index 0000000..cb63386 --- /dev/null +++ b/apps/surfrroll/src/domain/platform.ts @@ -0,0 +1,32 @@ +/** Mock DataSurfr roll-call ingest — idempotent on checkInId. */ + +export type DatasurfrIngestResult = { + accepted: string[]; + duplicatesDropped: number; +}; + +export function ingestToDatasurfr( + alreadyStored: Set, + checkInIds: string[], +): { next: Set; result: DatasurfrIngestResult } { + const accepted: string[] = []; + let duplicatesDropped = 0; + const next = new Set(alreadyStored); + for (const id of checkInIds) { + if (next.has(id)) { + duplicatesDropped += 1; + continue; + } + next.add(id); + accepted.push(id); + } + return { next, result: { accepted, duplicatesDropped } }; +} + +export function unsyncedCheckInIds( + checkIns: { checkInId: string }[], + syncedIds: string[], +): string[] { + const synced = new Set(syncedIds); + return checkIns.map((c) => c.checkInId).filter((id) => !synced.has(id)); +} diff --git a/apps/surfrroll/src/domain/rollcall.ts b/apps/surfrroll/src/domain/rollcall.ts new file mode 100644 index 0000000..cce6bd2 --- /dev/null +++ b/apps/surfrroll/src/domain/rollcall.ts @@ -0,0 +1,301 @@ +import { verifyAlertSignature, type IncidentAlert } from './alerts'; +import { isRosterEmployee } from './roster'; + +export type CheckInStatus = 'safe' | 'help' | 'sos'; + +export type CheckInRecord = { + checkInId: string; + alertId: string; + employeeId: string; + displayName: string; + office: string; + status: CheckInStatus; + deviceId: string; + at: number; +}; + +export type RollcallMessage = + | { type: 'propose'; record: CheckInRecord } + | { + type: 'snapshot'; + rev: number; + activeAlert: IncidentAlert | null; + checkIns: CheckInRecord[]; + syncedCheckInIds: string[]; + datasurfrDuplicatesDropped: number; + cloudLinkOnline: boolean; + }; + +export const SNAPSHOT_CHECKINS = 48; + +let checkInSeq = 0; + +function checkInIdSuffix(): string { + checkInSeq += 1; + const mix = (Date.now() * 31 + checkInSeq * 997) >>> 0; + return mix.toString(16).padStart(8, '0'); +} + +export function newCheckInId(): string { + return `checkin-${Date.now().toString(36)}-${checkInIdSuffix()}`; +} + +export type SocState = { + rev: number; + activeAlert: IncidentAlert | null; + checkIns: CheckInRecord[]; + syncedCheckInIds: string[]; + datasurfrDuplicatesDropped: number; + cloudLinkOnline: boolean; +}; + +export type StaffHandsetState = { + rev: number; + activeAlert: IncidentAlert | null; + alertTrusted: boolean; + checkIns: CheckInRecord[]; + syncedCheckInIds: string[]; + datasurfrDuplicatesDropped: number; + cloudLinkOnline: boolean; + pendingCheckInIds: string[]; + lastSubmitted: CheckInRecord | null; + myCheckIn: CheckInRecord | null; +}; + +export const emptySoc = (): SocState => ({ + rev: 0, + activeAlert: null, + checkIns: [], + syncedCheckInIds: [], + datasurfrDuplicatesDropped: 0, + cloudLinkOnline: false, +}); + +export const emptyStaffHandset = (): StaffHandsetState => ({ + rev: -1, + activeAlert: null, + alertTrusted: false, + checkIns: [], + syncedCheckInIds: [], + datasurfrDuplicatesDropped: 0, + cloudLinkOnline: false, + pendingCheckInIds: [], + lastSubmitted: null, + myCheckIn: null, +}); + +export function snapshotOf(state: SocState): RollcallMessage { + return { + type: 'snapshot', + rev: state.rev, + activeAlert: state.activeAlert, + checkIns: state.checkIns.slice(-SNAPSHOT_CHECKINS), + syncedCheckInIds: state.syncedCheckInIds, + datasurfrDuplicatesDropped: state.datasurfrDuplicatesDropped, + cloudLinkOnline: state.cloudLinkOnline, + }; +} + +export function checkInForEmployee( + checkIns: CheckInRecord[], + alertId: string, + employeeId: string, +): CheckInRecord | undefined { + return checkIns.find((c) => c.alertId === alertId && c.employeeId === employeeId); +} + +export type SocAction = + | { type: 'set_alert'; alert: IncidentAlert | null } + | { type: 'propose'; record: CheckInRecord } + | { + type: 'mark_synced'; + checkInIds: string[]; + duplicatesDropped: number; + } + | { type: 'set_cloud_link'; online: boolean }; + +export function socReducer(state: SocState, action: SocAction): SocState { + switch (action.type) { + case 'set_cloud_link': + return { ...state, cloudLinkOnline: action.online }; + case 'set_alert': + if (action.alert && !verifyAlertSignature(action.alert)) return state; + return { ...state, rev: state.rev + 1, activeAlert: action.alert }; + case 'propose': { + const { record } = action; + if (!state.activeAlert || record.alertId !== state.activeAlert.alertId) return state; + if (!isRosterEmployee(record.employeeId)) return state; + if (state.checkIns.some((c) => c.checkInId === record.checkInId)) return state; + if (checkInForEmployee(state.checkIns, record.alertId, record.employeeId)) return state; + return { + ...state, + rev: state.rev + 1, + checkIns: [...state.checkIns, record], + }; + } + case 'mark_synced': + return { + ...state, + syncedCheckInIds: [...new Set([...state.syncedCheckInIds, ...action.checkInIds])], + datasurfrDuplicatesDropped: state.datasurfrDuplicatesDropped + action.duplicatesDropped, + }; + default: + return state; + } +} + +export type StaffAction = + | { type: 'queue'; checkInId: string } + | { + type: 'snapshot'; + rev: number; + activeAlert: IncidentAlert | null; + checkIns: CheckInRecord[]; + syncedCheckInIds: string[]; + datasurfrDuplicatesDropped: number; + cloudLinkOnline: boolean; + myEmployeeId: string; + } + | { type: 'submitted'; record: CheckInRecord }; + +export function staffReducer(state: StaffHandsetState, action: StaffAction): StaffHandsetState { + switch (action.type) { + case 'queue': + if (state.pendingCheckInIds.includes(action.checkInId)) return state; + return { ...state, pendingCheckInIds: [...state.pendingCheckInIds, action.checkInId] }; + case 'submitted': + return { + ...state, + lastSubmitted: action.record, + myCheckIn: action.record, + pendingCheckInIds: state.pendingCheckInIds.filter((id) => id !== action.record.checkInId), + }; + case 'snapshot': { + const trusted = action.activeAlert ? verifyAlertSignature(action.activeAlert) : false; + const myCheckIn = + action.activeAlert && action.myEmployeeId + ? checkInForEmployee(action.checkIns, action.activeAlert.alertId, action.myEmployeeId) ?? + state.myCheckIn + : null; + const pending = state.pendingCheckInIds.filter( + (id) => !action.checkIns.some((c) => c.checkInId === id), + ); + return { + ...state, + rev: action.rev, + activeAlert: action.activeAlert, + alertTrusted: trusted, + checkIns: action.checkIns, + syncedCheckInIds: action.syncedCheckInIds, + datasurfrDuplicatesDropped: action.datasurfrDuplicatesDropped, + cloudLinkOnline: action.cloudLinkOnline, + pendingCheckInIds: pending, + myCheckIn: myCheckIn?.alertId === action.activeAlert?.alertId ? myCheckIn : null, + }; + } + default: + return state; + } +} + +export function pendingResend(state: StaffHandsetState): string[] { + return state.pendingCheckInIds; +} + +export function parseRollcallMessage(data: unknown): RollcallMessage | null { + if (!data || typeof data !== 'object') return null; + const m = data as Partial; + if (m.type === 'propose') { + const r = m.record as Partial | undefined; + if ( + !r || + typeof r.checkInId !== 'string' || + typeof r.alertId !== 'string' || + typeof r.employeeId !== 'string' || + typeof r.displayName !== 'string' || + typeof r.office !== 'string' || + (r.status !== 'safe' && r.status !== 'help' && r.status !== 'sos') || + typeof r.deviceId !== 'string' || + typeof r.at !== 'number' + ) { + return null; + } + if (!isRosterEmployee(r.employeeId)) return null; + return { + type: 'propose', + record: { + checkInId: r.checkInId.slice(0, 64), + alertId: r.alertId.slice(0, 64), + employeeId: r.employeeId, + displayName: r.displayName.slice(0, 40), + office: r.office.slice(0, 60), + status: r.status, + deviceId: r.deviceId.slice(0, 64), + at: r.at, + }, + }; + } + if (m.type === 'snapshot') { + if (typeof m.rev !== 'number' || !Array.isArray(m.checkIns) || !Array.isArray(m.syncedCheckInIds)) { + return null; + } + let activeAlert: IncidentAlert | null = null; + if (m.activeAlert && typeof m.activeAlert === 'object') { + const a = m.activeAlert as Partial; + if ( + typeof a.alertId === 'string' && + typeof a.clientId === 'string' && + typeof a.title === 'string' && + typeof a.body === 'string' && + (a.severity === 'advisory' || a.severity === 'incident' || a.severity === 'critical') && + Array.isArray(a.affectedOffices) && + typeof a.issuedAt === 'number' && + typeof a.signature === 'string' + ) { + activeAlert = { + alertId: a.alertId.slice(0, 64), + clientId: a.clientId.slice(0, 40), + title: a.title.slice(0, 120), + body: a.body.slice(0, 480), + severity: a.severity, + affectedOffices: a.affectedOffices.map((o) => String(o).slice(0, 60)).slice(0, 12), + issuedAt: a.issuedAt, + signature: a.signature.slice(0, 32), + }; + } + } + return { + type: 'snapshot', + rev: m.rev, + activeAlert, + checkIns: m.checkIns as CheckInRecord[], + syncedCheckInIds: m.syncedCheckInIds as string[], + datasurfrDuplicatesDropped: + typeof m.datasurfrDuplicatesDropped === 'number' ? m.datasurfrDuplicatesDropped : 0, + cloudLinkOnline: Boolean(m.cloudLinkOnline), + }; + } + return null; +} + +export function buildCheckInProposal(input: { + alertId: string; + employeeId: string; + displayName: string; + office: string; + status: CheckInStatus; + deviceId: string; + now?: number; +}): CheckInRecord | null { + if (!isRosterEmployee(input.employeeId)) return null; + return { + checkInId: newCheckInId(), + alertId: input.alertId, + employeeId: input.employeeId, + displayName: input.displayName, + office: input.office, + status: input.status, + deviceId: input.deviceId, + at: input.now ?? Date.now(), + }; +} diff --git a/apps/surfrroll/src/domain/roster.ts b/apps/surfrroll/src/domain/roster.ts new file mode 100644 index 0000000..a29f61b --- /dev/null +++ b/apps/surfrroll/src/domain/roster.ts @@ -0,0 +1,68 @@ +/** Demo employee roster (OfflineID / HR stand-in: employee id + PIN). */ + +export type EmployeeProfile = { + employeeId: string; + displayName: string; + pin: string; + office: string; + role: string; +}; + +export const DEMO_CLIENT = { + clientId: 'client-demo-bank', + name: 'Demo Global Bank', + region: 'Mumbai metro', +} as const; + +export const EMPLOYEE_ROSTER: EmployeeProfile[] = [ + { + employeeId: 'emp-001', + displayName: 'Priya N.', + pin: '4101', + office: 'BKC Tower', + role: 'Branch ops', + }, + { + employeeId: 'emp-002', + displayName: 'Rahul K.', + pin: '4102', + office: 'Andheri campus', + role: 'Facilities', + }, + { + employeeId: 'emp-003', + displayName: 'Anita S.', + pin: '4103', + office: 'Travel — Navi Mumbai', + role: 'Field sales', + }, + { + employeeId: 'emp-004', + displayName: 'Vikram M.', + pin: '4104', + office: 'BKC Tower', + role: 'Security', + }, +]; + +export type EmployeeSession = { + employeeId: string; + displayName: string; + office: string; + role: string; +}; + +export function signInEmployee(employeeId: string, pin: string): EmployeeSession | null { + const profile = EMPLOYEE_ROSTER.find((e) => e.employeeId === employeeId); + if (!profile || profile.pin !== pin.trim()) return null; + return { + employeeId: profile.employeeId, + displayName: profile.displayName, + office: profile.office, + role: profile.role, + }; +} + +export function isRosterEmployee(employeeId: string): boolean { + return EMPLOYEE_ROSTER.some((e) => e.employeeId === employeeId); +} diff --git a/apps/surfrroll/src/flows/SurfrFlow.tsx b/apps/surfrroll/src/flows/SurfrFlow.tsx new file mode 100644 index 0000000..a6259c9 --- /dev/null +++ b/apps/surfrroll/src/flows/SurfrFlow.tsx @@ -0,0 +1,317 @@ +import { useMeshRelay, useNearbyRoom } from '@offline-app-examples/mesh'; +import React, { useCallback, useEffect, useRef, useState } from 'react'; +import { createDemoFloodAlert } from '../domain/alerts'; +import { ingestToDatasurfr, unsyncedCheckInIds } from '../domain/platform'; +import type { EmployeeSession } from '../domain/roster'; +import { + buildCheckInProposal, + checkInForEmployee, + emptySoc, + emptyStaffHandset, + parseRollcallMessage, + pendingResend, + snapshotOf, + socReducer, + staffReducer, + type CheckInRecord, + type CheckInStatus, +} from '../domain/rollcall'; +import { loadPersisted, savePersisted, sanitizeSoc, sanitizeStaff } from '../services/persist'; +import { ConnectingScreen } from '../ui/common'; +import { RelayScreen } from '../ui/RelayScreen'; +import { SocConsoleScreen } from '../ui/SocConsoleScreen'; +import { StaffHandsetScreen } from '../ui/StaffHandsetScreen'; + +const APP_ID = 'surfrroll'; +const RESEND_MS = 8_000; + +export type SurfrRole = 'soc' | 'staff' | 'relay'; + +export function SurfrFlow({ + role, + consoleName, + employee, + onLeave, +}: { + role: SurfrRole; + consoleName: string; + employee: EmployeeSession | null; + onLeave: () => void; +}) { + const [soc, setSoc] = useState(emptySoc); + const [staff, setStaff] = useState(emptyStaffHandset); + const [datasurfrStored, setDatasurfrStored] = useState>(new Set()); + + const socRef = useRef(soc); + const staffRef = useRef(staff); + const datasurfrRef = useRef(datasurfrStored); + const pendingRecords = useRef>(new Map()); + + socRef.current = soc; + staffRef.current = staff; + datasurfrRef.current = datasurfrStored; + + useEffect(() => { + loadPersisted().then((p) => { + if (p.soc) setSoc(sanitizeSoc(p.soc)); + if (p.staff) setStaff(sanitizeStaff(p.staff)); + if (p.datasurfrStoredCheckInIds) setDatasurfrStored(new Set(p.datasurfrStoredCheckInIds)); + }); + }, []); + + const persist = useCallback(() => { + savePersisted({ + soc: socRef.current, + staff: staffRef.current, + datasurfrStoredCheckInIds: [...datasurfrRef.current], + }); + }, []); + + const relay = useMeshRelay(APP_ID); + + const room = useNearbyRoom({ + appId: APP_ID, + onMessage: (_from, data) => { + const msg = parseRollcallMessage(data); + if (!msg) return; + + if (room.role === 'host') { + if (msg.type === 'propose') { + const next = socReducer(socRef.current, { type: 'propose', record: msg.record }); + if (next !== socRef.current) { + socRef.current = next; + setSoc(next); + broadcast(snapshotOf(next)); + persist(); + } + } + } else if (msg.type === 'snapshot') { + staffRef.current = staffReducer(staffRef.current, { + type: 'snapshot', + rev: msg.rev, + activeAlert: msg.activeAlert, + checkIns: msg.checkIns, + syncedCheckInIds: msg.syncedCheckInIds, + datasurfrDuplicatesDropped: msg.datasurfrDuplicatesDropped, + cloudLinkOnline: msg.cloudLinkOnline, + myEmployeeId: employee?.employeeId ?? '', + }); + for (const [checkInId] of pendingRecords.current.entries()) { + const confirmed = msg.checkIns.find((c) => c.checkInId === checkInId); + if (confirmed) { + staffRef.current = staffReducer(staffRef.current, { + type: 'submitted', + record: confirmed, + }); + pendingRecords.current.delete(checkInId); + } + } + setStaff(staffRef.current); + persist(); + } + }, + onPeerJoined: (peer) => { + if (room.role === 'host') send(peer.id, snapshotOf(socRef.current)); + else resend(); + }, + }); + + const send = (peerId: string, data: unknown) => + room.send(peerId, data).catch((e) => console.warn('send failed', e)); + const broadcast = (data: unknown) => + room.broadcast(data).catch((e) => console.warn('broadcast failed', e)); + + function resend() { + for (const id of pendingResend(staffRef.current)) { + const record = pendingRecords.current.get(id); + if (record) broadcast({ type: 'propose', record }); + } + } + + useEffect(() => { + if (role === 'relay') { + void relay.start(consoleName || 'Mesh relay'); + return () => { + void relay.leave(); + }; + } + if (role === 'soc') { + void room.host(consoleName || 'SOC console'); + } else if (role === 'staff') { + void room.discover(); + } + return () => { + void room.leave(); + }; + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [role]); + + useEffect(() => { + if (role !== 'staff' || room.status !== 'discovering') return; + const lead = room.hosts[0]; + if (lead) void room.join(lead.id, consoleName || 'Staff'); + }, [role, room.status, room.hosts, consoleName, room]); + + useEffect(() => { + if (role !== 'staff' || room.status !== 'connected') return; + const timer = setInterval(resend, RESEND_MS); + return () => clearInterval(timer); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [role, room.status]); + + function setCloudLink(online: boolean) { + const next = socReducer(socRef.current, { type: 'set_cloud_link', online }); + socRef.current = next; + setSoc(next); + broadcast(snapshotOf(next)); + persist(); + } + + function publishDemoAlert() { + if (!socRef.current.cloudLinkOnline) return; + const alert = createDemoFloodAlert(); + const next = socReducer(socRef.current, { type: 'set_alert', alert }); + socRef.current = next; + setSoc(next); + broadcast(snapshotOf(next)); + persist(); + } + + function syncDatasurfr() { + const ids = unsyncedCheckInIds(socRef.current.checkIns, socRef.current.syncedCheckInIds); + const batch = ids.length > 0 ? ids : socRef.current.checkIns.map((c) => c.checkInId); + const { next, result } = ingestToDatasurfr(datasurfrRef.current, batch); + datasurfrRef.current = next; + setDatasurfrStored(next); + const socNext = socReducer(socRef.current, { + type: 'mark_synced', + checkInIds: result.accepted, + duplicatesDropped: result.duplicatesDropped, + }); + socRef.current = socNext; + setSoc(socNext); + broadcast(snapshotOf(socNext)); + persist(); + } + + function submitCheckIn(status: CheckInStatus) { + if (!employee) return; + const alert = staffRef.current.activeAlert; + if (!alert || !staffRef.current.alertTrusted) return; + + const existing = checkInForEmployee(staffRef.current.checkIns, alert.alertId, employee.employeeId); + if (existing) { + staffRef.current = staffReducer(staffRef.current, { type: 'submitted', record: existing }); + setStaff(staffRef.current); + return; + } + + const record = buildCheckInProposal({ + alertId: alert.alertId, + employeeId: employee.employeeId, + displayName: employee.displayName, + office: employee.office, + status, + deviceId: room.localId || 'staff', + }); + if (!record) return; + + if (room.role === 'host') { + const next = socReducer(socRef.current, { type: 'propose', record }); + socRef.current = next; + setSoc(next); + broadcast(snapshotOf(next)); + staffRef.current = staffReducer(staffRef.current, { type: 'submitted', record }); + setStaff(staffRef.current); + persist(); + return; + } + + pendingRecords.current.set(record.checkInId, record); + staffRef.current = staffReducer(staffRef.current, { type: 'queue', checkInId: record.checkInId }); + setStaff(staffRef.current); + broadcast({ type: 'propose', record }); + persist(); + } + + const me = { + id: room.localId || relay.localId || 'me', + name: role === 'staff' ? employee?.displayName ?? consoleName : consoleName, + }; + + if (role === 'relay') { + return ( + { + void relay.leave(); + onLeave(); + }} + /> + ); + } + + if (role === 'soc' && room.status === 'hosting') { + return ( + { + void room.leave(); + onLeave(); + }} + /> + ); + } + + if (role === 'staff' && employee && (room.status === 'connected' || room.status === 'joining')) { + return ( + { + void room.leave(); + onLeave(); + }} + /> + ); + } + + const leaveSession = () => { + void room.leave(); + onLeave(); + }; + + let message = 'Turn on Bluetooth and keep devices in range.'; + if (role === 'soc') { + message = 'Starting the SOC console and advertising over Bluetooth…'; + } else if (role === 'staff') { + if (!employee) { + message = 'Staff sign-in required.'; + } else if (room.status === 'discovering' && room.hosts.length === 0) { + message = 'Looking for the SOC console nearby. Start the SOC on another phone first.'; + } else if (room.status === 'joining') { + message = 'Joining the SOC mesh…'; + } else { + message = 'Connecting to the SOC console…'; + } + } + + return ( + + ); +} diff --git a/apps/surfrroll/src/services/persist.ts b/apps/surfrroll/src/services/persist.ts new file mode 100644 index 0000000..0206e9c --- /dev/null +++ b/apps/surfrroll/src/services/persist.ts @@ -0,0 +1,73 @@ +import AsyncStorage from '@react-native-async-storage/async-storage'; +import type { SocState, StaffHandsetState } from '../domain/rollcall'; +import { emptySoc, emptyStaffHandset } from '../domain/rollcall'; +import { verifyAlertSignature, type IncidentAlert } from '../domain/alerts'; + +const KEY = '@surfrroll/persist/v1'; + +export type Persisted = { + soc?: SocState; + staff?: StaffHandsetState; + datasurfrStoredCheckInIds?: string[]; +}; + +export async function loadPersisted(): Promise { + try { + const raw = await AsyncStorage.getItem(KEY); + if (!raw) return {}; + return (JSON.parse(raw) as Persisted) ?? {}; + } catch { + return {}; + } +} + +export async function savePersisted(data: Persisted): Promise { + try { + await AsyncStorage.setItem(KEY, JSON.stringify(data)); + } catch (e) { + console.warn('[surfrroll] persist failed', e); + } +} + +function sanitizeAlert(raw: unknown): IncidentAlert | null { + if (!raw || typeof raw !== 'object') return null; + const a = raw as IncidentAlert; + if (typeof a.alertId !== 'string' || typeof a.signature !== 'string') return null; + if (!verifyAlertSignature(a)) return null; + return a; +} + +export function sanitizeSoc(state: unknown): SocState { + if (!state || typeof state !== 'object') return emptySoc(); + const s = state as SocState; + if (!Array.isArray(s.checkIns) || !Array.isArray(s.syncedCheckInIds)) return emptySoc(); + return { + rev: typeof s.rev === 'number' ? s.rev : 0, + activeAlert: sanitizeAlert(s.activeAlert), + checkIns: s.checkIns, + syncedCheckInIds: s.syncedCheckInIds, + datasurfrDuplicatesDropped: + typeof s.datasurfrDuplicatesDropped === 'number' ? s.datasurfrDuplicatesDropped : 0, + cloudLinkOnline: Boolean(s.cloudLinkOnline), + }; +} + +export function sanitizeStaff(state: unknown): StaffHandsetState { + if (!state || typeof state !== 'object') return emptyStaffHandset(); + const s = state as StaffHandsetState; + if (!Array.isArray(s.checkIns) || !Array.isArray(s.pendingCheckInIds)) return emptyStaffHandset(); + const activeAlert = sanitizeAlert(s.activeAlert); + return { + rev: typeof s.rev === 'number' ? s.rev : -1, + activeAlert, + alertTrusted: activeAlert ? verifyAlertSignature(activeAlert) : false, + checkIns: s.checkIns, + syncedCheckInIds: Array.isArray(s.syncedCheckInIds) ? s.syncedCheckInIds : [], + datasurfrDuplicatesDropped: + typeof s.datasurfrDuplicatesDropped === 'number' ? s.datasurfrDuplicatesDropped : 0, + cloudLinkOnline: Boolean(s.cloudLinkOnline), + pendingCheckInIds: s.pendingCheckInIds, + lastSubmitted: s.lastSubmitted ?? null, + myCheckIn: s.myCheckIn ?? null, + }; +} diff --git a/apps/surfrroll/src/ui/RelayScreen.tsx b/apps/surfrroll/src/ui/RelayScreen.tsx new file mode 100644 index 0000000..1115f2e --- /dev/null +++ b/apps/surfrroll/src/ui/RelayScreen.tsx @@ -0,0 +1,34 @@ +import { Text } from '@offline-app-examples/ui'; +import React from 'react'; +import { View } from 'react-native'; +import { SafeAreaView } from 'react-native-safe-area-context'; +import { DebugStrip, TopBar } from './common'; + +export function RelayScreen({ + relayName, + neighbors, + me, + onLeave, +}: { + relayName: string; + neighbors: number; + me: { id: string; name: string }; + onLeave: () => void; +}) { + return ( + + + + Relay active + + Place between the SOC console and staff handsets when only one phone has internet — alert + and roll-call packets hop across floors or campus blocks without showing message bodies here. + + + {neighbors} BLE neighbor{neighbors === 1 ? '' : 's'} + + + + + ); +} diff --git a/apps/surfrroll/src/ui/SocConsoleScreen.tsx b/apps/surfrroll/src/ui/SocConsoleScreen.tsx new file mode 100644 index 0000000..e7ade85 --- /dev/null +++ b/apps/surfrroll/src/ui/SocConsoleScreen.tsx @@ -0,0 +1,131 @@ +import { Button, Text } from '@offline-app-examples/ui'; +import React from 'react'; +import { FlatList, Pressable, View } from 'react-native'; +import { SafeAreaView } from 'react-native-safe-area-context'; +import { DEMO_CLIENT } from '../domain/roster'; +import type { CheckInRecord, SocState } from '../domain/rollcall'; +import { DebugStrip, TopBar, useNow } from './common'; + +function statusLabel(status: CheckInRecord['status']): string { + if (status === 'safe') return 'Safe'; + if (status === 'help') return 'Need help'; + return 'SOS'; +} + +export function SocConsoleScreen({ + consoleName, + soc, + datasurfrTotal, + people, + onToggleCloudLink, + onPullAlert, + onSyncDatasurfr, + onLeave, +}: { + consoleName: string; + soc: SocState; + datasurfrTotal: number; + people: { id: string; name: string }[]; + onToggleCloudLink: (online: boolean) => void; + onPullAlert: () => void; + onSyncDatasurfr: () => void; + onLeave: () => void; +}) { + const now = useNow(); + const me = { id: 'soc', name: consoleName }; + const awaiting = soc.checkIns.filter((c) => !soc.syncedCheckInIds.includes(c.checkInId)).length; + + return ( + + + c.checkInId} + ListHeaderComponent={ + + + {DEMO_CLIENT.name} — last mile for DataSurfr. Roll call ledger hops over Bluetooth mesh + when field phones lose cell data; check-ins reconcile when any link to DataSurfr is back. + + + + Cloud link (DataSurfr) + + {soc.cloudLinkOnline ? 'Online on this console' : 'Offline — mesh only'} + + + onToggleCloudLink(!soc.cloudLinkOnline)} + className={`rounded-full px-4 py-2 ${soc.cloudLinkOnline ? 'bg-green-600' : 'bg-muted'}`} + > + + {soc.cloudLinkOnline ? 'ON' : 'OFF'} + + + + + {soc.activeAlert ? ( + + + Active · {soc.activeAlert.severity} + + {soc.activeAlert.title} + {soc.activeAlert.body} + + {soc.activeAlert.signature} · broadcast signed + + + ) : ( + + Turn cloud link on, then pull the demo flood alert to fan out over mesh. + + )} + + + } + ListEmptyComponent={ + + No check-ins yet. Staff handsets join this mesh and respond to the signed alert. + + } + renderItem={({ item }: { item: CheckInRecord }) => ( + + + {item.displayName} + + {statusLabel(item.status)} + + + + {item.office} · {item.employeeId} + + + {item.checkInId} · {Math.round((now - item.at) / 1000)}s ago + + + )} + /> + + + ); +} diff --git a/apps/surfrroll/src/ui/StaffHandsetScreen.tsx b/apps/surfrroll/src/ui/StaffHandsetScreen.tsx new file mode 100644 index 0000000..1b8345d --- /dev/null +++ b/apps/surfrroll/src/ui/StaffHandsetScreen.tsx @@ -0,0 +1,103 @@ +import { Button, Text } from '@offline-app-examples/ui'; +import React from 'react'; +import { View } from 'react-native'; +import { SafeAreaView } from 'react-native-safe-area-context'; +import type { EmployeeSession } from '../domain/roster'; +import type { CheckInStatus, StaffHandsetState } from '../domain/rollcall'; +import { DebugStrip, TopBar } from './common'; + +export function StaffHandsetScreen({ + employee, + staff, + people, + me, + onCheckIn, + onLeave, +}: { + employee: EmployeeSession; + staff: StaffHandsetState; + people: { id: string; name: string }[]; + me: { id: string; name: string }; + onCheckIn: (status: CheckInStatus) => void; + onLeave: () => void; +}) { + const alert = staff.activeAlert; + const responded = Boolean(staff.myCheckIn); + + return ( + + + + + {employee.office} · {employee.role}. Works in airplane mode once the signed alert reaches this + device over mesh. + + + {!alert ? ( + + Waiting for alert + + SOC must publish a signed DataSurfr alert. Stay on this mesh session. + + + ) : !staff.alertTrusted ? ( + + Unverified alert blocked + + Signature check failed — rumour and spoof alerts cannot pass as official DataSurfr traffic + in this demo. + + + ) : ( + <> + + + Verified · {alert.severity} + + {alert.title} + {alert.body} + {alert.signature} + + + {responded && staff.myCheckIn ? ( + + Response recorded + + {staff.myCheckIn.status === 'safe' + ? 'Marked safe' + : staff.myCheckIn.status === 'help' + ? 'Need help — SOC notified via mesh' + : 'SOS — priority roll call'} + + {staff.pendingCheckInIds.length > 0 ? ( + Syncing to SOC… + ) : null} + + ) : ( + + Check in + + + + + )} + + )} + + + + ); +} diff --git a/apps/surfrroll/src/ui/common.tsx b/apps/surfrroll/src/ui/common.tsx new file mode 100644 index 0000000..6ed8420 --- /dev/null +++ b/apps/surfrroll/src/ui/common.tsx @@ -0,0 +1,93 @@ +import { Button, cn, Icon, PersonAvatar, Text } from '@offline-app-examples/ui'; +import { LogOut } from 'lucide-react-native'; +import React, { useEffect, useState } from 'react'; +import { View } from 'react-native'; +import { SafeAreaView } from 'react-native-safe-area-context'; + +type Person = { id: string; name: string }; + +export function TopBar({ + eyebrow, + title, + people, + onLeave, +}: { + eyebrow: string; + title: string; + people: Person[]; + onLeave: () => void; +}) { + return ( + + + + {eyebrow} + + + {title} + + + p.name).join(', ')}> + {people.slice(0, 4).map((person, i) => ( + 0 && '-ml-2')} + /> + ))} + + + + ); +} + +export function ConnectingScreen({ + title = 'Connecting…', + message, + error, + onLeave, +}: { + title?: string; + message?: string; + error?: string; + onLeave: () => void; +}) { + return ( + + + + + + {error ? 'Could not connect' : title} + + {error ?? message ?? 'Turn on Bluetooth and keep devices in range.'} + + + + ); +} + +export function DebugStrip({ lines }: { lines: string[] }) { + return ( + + + Presenter + + {lines.join(' · ')} + + ); +} + +export function useNow(ms = 15_000) { + const [now, setNow] = useState(Date.now); + useEffect(() => { + const id = setInterval(() => setNow(Date.now()), ms); + return () => clearInterval(id); + }, [ms]); + return now; +} diff --git a/apps/surfrroll/src/ui/illustrations.tsx b/apps/surfrroll/src/ui/illustrations.tsx new file mode 100644 index 0000000..a72e131 --- /dev/null +++ b/apps/surfrroll/src/ui/illustrations.tsx @@ -0,0 +1,27 @@ +import React from 'react'; +import Svg, { Circle, Path, Rect } from 'react-native-svg'; + +export function SurfrHero({ size = 160 }: { size?: number }) { + return ( + + + + + + + + + ); +} diff --git a/apps/surfrroll/tailwind.config.js b/apps/surfrroll/tailwind.config.js new file mode 100644 index 0000000..a76801d --- /dev/null +++ b/apps/surfrroll/tailwind.config.js @@ -0,0 +1,6 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + // Include the shared ui package so its component classes are generated. + content: ['./App.tsx', './src/**/*.{ts,tsx}', '../../packages/ui/src/**/*.{ts,tsx}'], + presets: [require('@offline-app-examples/ui/tailwind-preset')], +}; diff --git a/apps/surfrroll/tsconfig.json b/apps/surfrroll/tsconfig.json new file mode 100644 index 0000000..e56fffa --- /dev/null +++ b/apps/surfrroll/tsconfig.json @@ -0,0 +1,15 @@ +{ + "extends": "@react-native/typescript-config", + "compilerOptions": { + "skipLibCheck": true + }, + "include": [ + "**/*.ts", + "**/*.tsx", + "nativewind-env.d.ts" + ], + "exclude": [ + "**/node_modules", + "**/Pods" + ] +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 06ece84..d8f7343 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1007,6 +1007,121 @@ importers: specifier: ^5.8.3 version: 5.9.3 + apps/surfrroll: + dependencies: + '@offline-app-examples/mesh': + specifier: workspace:* + version: link:../../packages/mesh + '@offline-app-examples/ui': + specifier: workspace:* + version: link:../../packages/ui + '@offline-protocol/mesh-sdk': + specifier: ^0.28.0 + version: 0.28.0(react-native@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(@react-native-community/cli@20.1.0(supports-color@8.1.1)(typescript@5.9.3))(@react-native/jest-preset@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(react@19.2.3)(supports-color@8.1.1))(@react-native/metro-config@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(supports-color@8.1.1))(@types/react@19.3.0)(react@19.2.3)(supports-color@8.1.1))(react@19.2.3) + '@react-native-async-storage/async-storage': + specifier: ^2.2.0 + version: 2.2.0(react-native@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(@react-native-community/cli@20.1.0(supports-color@8.1.1)(typescript@5.9.3))(@react-native/jest-preset@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(react@19.2.3)(supports-color@8.1.1))(@react-native/metro-config@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(supports-color@8.1.1))(@types/react@19.3.0)(react@19.2.3)(supports-color@8.1.1)) + lucide-react-native: + specifier: ^1.48.0 + version: 1.48.0(react-native-svg@15.15.5(react-native@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(@react-native-community/cli@20.1.0(supports-color@8.1.1)(typescript@5.9.3))(@react-native/jest-preset@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(react@19.2.3)(supports-color@8.1.1))(@react-native/metro-config@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(supports-color@8.1.1))(@types/react@19.3.0)(react@19.2.3)(supports-color@8.1.1))(react@19.2.3))(react-native@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(@react-native-community/cli@20.1.0(supports-color@8.1.1)(typescript@5.9.3))(@react-native/jest-preset@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(react@19.2.3)(supports-color@8.1.1))(@react-native/metro-config@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(supports-color@8.1.1))(@types/react@19.3.0)(react@19.2.3)(supports-color@8.1.1))(react@19.2.3) + nativewind: + specifier: ^4.2.7 + version: 4.2.7(6af35d6757d3fd7944cdf994ae66f9a7) + react: + specifier: 19.2.3 + version: 19.2.3 + react-native: + specifier: 0.85.2 + version: 0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(@react-native-community/cli@20.1.0(supports-color@8.1.1)(typescript@5.9.3))(@react-native/jest-preset@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(react@19.2.3)(supports-color@8.1.1))(@react-native/metro-config@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(supports-color@8.1.1))(@types/react@19.3.0)(react@19.2.3)(supports-color@8.1.1) + react-native-css-interop: + specifier: ^0.2.7 + version: 0.2.7(6af35d6757d3fd7944cdf994ae66f9a7) + react-native-reanimated: + specifier: ~4.6.0 + version: 4.6.0(46d81d4174c4966f579d17df97e5129d) + react-native-safe-area-context: + specifier: ^5.5.2 + version: 5.9.1(react-native@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(@react-native-community/cli@20.1.0(supports-color@8.1.1)(typescript@5.9.3))(@react-native/jest-preset@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(react@19.2.3)(supports-color@8.1.1))(@react-native/metro-config@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(supports-color@8.1.1))(@types/react@19.3.0)(react@19.2.3)(supports-color@8.1.1))(react@19.2.3) + react-native-svg: + specifier: ^15.15.5 + version: 15.15.5(react-native@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(@react-native-community/cli@20.1.0(supports-color@8.1.1)(typescript@5.9.3))(@react-native/jest-preset@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(react@19.2.3)(supports-color@8.1.1))(@react-native/metro-config@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(supports-color@8.1.1))(@types/react@19.3.0)(react@19.2.3)(supports-color@8.1.1))(react@19.2.3) + react-native-worklets: + specifier: ~0.12.2 + version: 0.12.2(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(supports-color@8.1.1))(react-native@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(@react-native-community/cli@20.1.0(supports-color@8.1.1)(typescript@5.9.3))(@react-native/jest-preset@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(react@19.2.3)(supports-color@8.1.1))(@react-native/metro-config@0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(supports-color@8.1.1))(@types/react@19.3.0)(react@19.2.3)(supports-color@8.1.1))(react@19.2.3)(supports-color@8.1.1) + devDependencies: + '@babel/core': + specifier: ^7.25.2 + version: 7.29.7(supports-color@8.1.1) + '@babel/plugin-transform-react-jsx': + specifier: ^7.27.1 + version: 7.29.7(@babel/core@7.29.7(supports-color@8.1.1))(supports-color@8.1.1) + '@babel/preset-env': + specifier: ^7.25.3 + version: 7.29.7(@babel/core@7.29.7(supports-color@8.1.1))(supports-color@8.1.1) + '@babel/runtime': + specifier: ^7.25.0 + version: 7.29.7 + '@jest/globals': + specifier: ^29.6.3 + version: 29.7.0(supports-color@8.1.1) + '@react-native-community/cli': + specifier: 20.1.0 + version: 20.1.0(supports-color@8.1.1)(typescript@5.9.3) + '@react-native-community/cli-platform-android': + specifier: 20.1.0 + version: 20.1.0 + '@react-native-community/cli-platform-ios': + specifier: 20.1.0 + version: 20.1.0 + '@react-native/babel-preset': + specifier: 0.85.2 + version: 0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(supports-color@8.1.1) + '@react-native/codegen': + specifier: 0.85.2 + version: 0.85.2(@babel/core@7.29.7(supports-color@8.1.1)) + '@react-native/eslint-config': + specifier: 0.85.2 + version: 0.85.2(eslint@8.57.1(supports-color@8.1.1))(jest@29.7.0(@types/node@26.5.1)(supports-color@8.1.1))(prettier@3.9.6)(supports-color@8.1.1)(typescript@5.9.3) + '@react-native/gradle-plugin': + specifier: 0.85.2 + version: 0.85.2 + '@react-native/jest-preset': + specifier: 0.85.2 + version: 0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(react@19.2.3)(supports-color@8.1.1) + '@react-native/metro-config': + specifier: 0.85.2 + version: 0.85.2(@babel/core@7.29.7(supports-color@8.1.1))(supports-color@8.1.1) + '@react-native/typescript-config': + specifier: 0.85.2 + version: 0.85.2 + '@types/react': + specifier: ^19.2.0 + version: 19.3.0 + babel-jest: + specifier: ^29.6.3 + version: 29.7.0(@babel/core@7.29.7(supports-color@8.1.1))(supports-color@8.1.1) + eslint: + specifier: ^8.19.0 + version: 8.57.1(supports-color@8.1.1) + hermes-compiler: + specifier: 250829098.0.10 + version: 250829098.0.10 + jest: + specifier: ^29.6.3 + version: 29.7.0(@types/node@26.5.1)(supports-color@8.1.1) + prettier: + specifier: ^3.9.6 + version: 3.9.6 + react-test-renderer: + specifier: 19.2.3 + version: 19.2.3(react@19.2.3) + tailwindcss: + specifier: ^3.4.19 + version: 3.4.19(yaml@2.9.1) + typescript: + specifier: ^5.8.3 + version: 5.9.3 + apps/tictactogether: dependencies: '@offline-app-examples/mesh':