Skip to content

Commit

Permalink
Merge branch 'api/v0.9.0-rn' into api/v0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen committed Apr 4, 2024
2 parents accd137 + 64fd3cf commit 61e9683
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests-runner.yml
Expand Up @@ -132,6 +132,9 @@ jobs:
env:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1

- name: List available simulator devices
run: applesimutils --list

- name: Restore CocoaPods
id: restore-cocoapods
Expand Down
2 changes: 1 addition & 1 deletion tests/reactnative/.detoxrc.js
Expand Up @@ -42,7 +42,7 @@ module.exports = {
simulator: {
type: "ios.simulator",
device: {
type: "iPhone 15",
type: "iPhone 14",
},
},
attached: {
Expand Down
2 changes: 1 addition & 1 deletion tests/reactnative/src/App.tsx
Expand Up @@ -23,7 +23,7 @@ export default function App() {
...web5TestsResultRaw,
success: true,
dataCid: record?.dataCid,
did: did?.substr(0, 32) + "...",
did: did?.uri.substr(0, 32) + "...",
};
const web5TestsResultsStr = JSON.stringify(
web5TestsResults,
Expand Down
9 changes: 8 additions & 1 deletion tests/reactnative/src/Web5.ts
Expand Up @@ -124,7 +124,14 @@ const initAgent = async () => {
syncApi,
});

await agent.start({ password: "unprotectedpass" });
const password = "unprotectedpass";
let recoveryPhrase: string|undefined;

if (await agent.firstLaunch()) {
recoveryPhrase = await agent.initialize({ password, recoveryPhrase });
}

await agent.start({ password });
await startSync();
};

Expand Down

0 comments on commit 61e9683

Please sign in to comment.