Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Implement Auth For Testing #2237

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
7 changes: 7 additions & 0 deletions .github/workflows/e2e-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ jobs:
with:
node-version: 20

- name: Configure npm authentication
run: |
echo "" >> .yarnrc.yml
echo "npmScopes:" >> .yarnrc.yml
echo " synonymdev:" >> .yarnrc.yml
echo ' npmAuthToken: "${{ secrets.NPMJS_READ_RN_PUBKY }}"' >> .yarnrc.yml
- name: Use gradle caches
uses: actions/cache@v4
with:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/e2e-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ jobs:
- name: Activate enviroment variables
run: cp .env.test.template .env

- name: Configure npm authentication
run: |
echo "" >> .yarnrc.yml
echo "npmScopes:" >> .yarnrc.yml
echo " synonymdev:" >> .yarnrc.yml
echo ' npmAuthToken: "${{ secrets.NPMJS_READ_RN_PUBKY }}"' >> .yarnrc.yml
- name: Yarn Install
run: yarn --no-audit --prefer-offline || yarn --no-audit --prefer-offline || yarn
env:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/jest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'

- name: Configure npm authentication
run: |
echo "" >> .yarnrc.yml
echo "npmScopes:" >> .yarnrc.yml
echo " synonymdev:" >> .yarnrc.yml
echo ' npmAuthToken: "${{ secrets.NPMJS_READ_RN_PUBKY }}"' >> .yarnrc.yml

- name: Install Node.js dependencies
run: yarn install || yarn install
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/lint-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'

- name: Configure npm authentication
run: |
echo "" >> .yarnrc.yml
echo "npmScopes:" >> .yarnrc.yml
echo " synonymdev:" >> .yarnrc.yml
echo ' npmAuthToken: "${{ secrets.NPMJS_READ_RN_PUBKY }}"' >> .yarnrc.yml

- name: Install Node.js dependencies
run: yarn install
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'

- name: Configure npm authentication
run: |
echo "" >> .yarnrc.yml
echo "npmScopes:" >> .yarnrc.yml
echo " synonymdev:" >> .yarnrc.yml
echo ' npmAuthToken: "${{ secrets.NPMJS_READ_RN_PUBKY }}"' >> .yarnrc.yml

- name: Install Node.js dependencies
run: yarn install || yarn install
Expand Down
27 changes: 26 additions & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,27 @@ PODS:
- Yoga
- react-native-netinfo (11.3.1):
- React-Core
- react-native-pubky (0.3.0):
- DoubleConversion
- glog
- hermes-engine
- RCT-Folly (= 2024.01.01.00)
- RCTRequired
- RCTTypeSafety
- React-Core
- React-debug
- React-Fabric
- React-featureflags
- React-graphics
- React-ImageManager
- React-NativeModulesApple
- React-RCTFabric
- React-rendererdebug
- React-utils
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- react-native-quick-base64 (2.1.2):
- DoubleConversion
- glog
Expand Down Expand Up @@ -1910,6 +1931,7 @@ DEPENDENCIES:
- "react-native-ldk (from `../node_modules/@synonymdev/react-native-ldk`)"
- react-native-mmkv (from `../node_modules/react-native-mmkv`)
- "react-native-netinfo (from `../node_modules/@react-native-community/netinfo`)"
- "react-native-pubky (from `../node_modules/@synonymdev/react-native-pubky`)"
- react-native-quick-base64 (from `../node_modules/react-native-quick-base64`)
- react-native-quick-crypto (from `../node_modules/react-native-quick-crypto`)
- react-native-restart (from `../node_modules/react-native-restart`)
Expand Down Expand Up @@ -2061,6 +2083,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-mmkv"
react-native-netinfo:
:path: "../node_modules/@react-native-community/netinfo"
react-native-pubky:
:path: "../node_modules/@synonymdev/react-native-pubky"
react-native-quick-base64:
:path: "../node_modules/react-native-quick-base64"
react-native-quick-crypto:
Expand Down Expand Up @@ -2213,6 +2237,7 @@ SPEC CHECKSUMS:
react-native-ldk: 1d25080cfadac349eab355725da66de140fbc7a8
react-native-mmkv: 7d0b6c2a79e73100b933f2947a9c8741d664e18b
react-native-netinfo: bdb108d340cdb41875c9ced535977cac6d2ff321
react-native-pubky: 9fd2633ee974bafa9b77e0cd59e2619a0d9d708d
react-native-quick-base64: f98f17faf04c9779faf726921a2b389d4775e8b6
react-native-quick-crypto: 12de8e1666ad3dab6339418c14f4a6de71716194
react-native-restart: 7595693413fe3ca15893702f2c8306c62a708162
Expand Down Expand Up @@ -2265,7 +2290,7 @@ SPEC CHECKSUMS:
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
sodium-react-native-direct: 8feb9a6d0d88ce65efa305d6cc774c11c62d9a15
SSZipArchive: fe6a26b2a54d5a0890f2567b5cc6de5caa600aef
Yoga: a1d7895431387402a674fd0d1c04ec85e87909b8
Yoga: 2a45d7e59592db061217551fd3bbe2dd993817ae
ZXingObjC: 8898711ab495761b2dbbdec76d90164a6d7e14c5

PODFILE CHECKSUM: 8c2c3949d19327675be00d5f066e8eab99dd1e04
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"@synonymdev/react-native-keychain": "8.2.2",
"@synonymdev/react-native-ldk": "0.0.152",
"@synonymdev/react-native-lnurl": "0.0.10",
"@synonymdev/react-native-pubky": "^0.3.0",
"@synonymdev/result": "0.0.2",
"@synonymdev/slashtags-keychain": "1.0.0",
"@synonymdev/slashtags-profile": "2.0.0",
Expand Down
2 changes: 2 additions & 0 deletions src/navigation/bottom-sheet/BottomSheets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import PINNavigation from './PINNavigation';
import ReceiveNavigation from './ReceiveNavigation';
import SendNavigation from './SendNavigation';
import TreasureHuntNavigation from './TreasureHuntNavigation';
import PubkyAuth from './PubkyAuth.tsx';

const BottomSheets = (): JSX.Element => {
const views = useAppSelector(viewControllersSelector);
Expand All @@ -31,6 +32,7 @@ const BottomSheets = (): JSX.Element => {
{views.receiveNavigation.isMounted && <ReceiveNavigation />}
{views.sendNavigation.isMounted && <SendNavigation />}
{views.treasureHunt.isMounted && <TreasureHuntNavigation />}
{views.pubkyAuth.isMounted && <PubkyAuth />}
</>
);
};
Expand Down
Loading
Loading