Skip to content

Commit e41527f

Browse files
committed
Update sample apps to point to QR code generator
1 parent 08d68be commit e41527f

File tree

5 files changed

+7
-10
lines changed
  • samples/sdk
  • sdk/dotnet-sdk/src/VeritySDK.Sample

5 files changed

+7
-10
lines changed

samples/sdk/dotnet-example-app/App.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,7 @@ void relationshipHandler(RelationshipV1_0 handler)
605605

606606
if (!(Environment.GetEnvironmentVariable("HTTP_SERVER_URL") == null))
607607
{
608-
App.consoleOutput("Open the following URL in your browser and scan presented QR code");
609-
App.coloredConsoleOutput(Environment.GetEnvironmentVariable("HTTP_SERVER_URL") + "/dotnet-example-app/qrcode.html");
608+
App.consoleOutput("Please copy and paste the inviteURL into an external QR code generator (e.g. https://www.qr-code-generator.com/) and scan the QR code from there to establish a connection");
610609
}
611610
else
612611
{

samples/sdk/java-example-app/src/main/java/com/evernym/sdk/example/App.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,7 @@ else if("invitation".equals(msgName)){
349349
}
350350

351351
if (!(System.getenv("HTTP_SERVER_URL") == null) ) {
352-
println("Open the following URL in your browser and scan presented QR code");
353-
println(ANSII_GREEN + System.getenv("HTTP_SERVER_URL") + "/java-example-app/qrcode.html" + ANSII_RESET);
352+
println("Please copy and paste the inviteURL into an external QR code generator (e.g. https://www.qr-code-generator.com/) and scan the QR code from there to establish a connection");
354353
}
355354
else {
356355
println("QR code generated at: qrcode.png");

samples/sdk/nodejs-example-app/example.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ async function createRelationship () {
103103

104104
console.log()
105105
if (process.env.HTTP_SERVER_URL) {
106-
console.log('Open the following URL in your browser and scan presented QR code')
107-
console.log(`${ANSII_GREEN}${process.env.HTTP_SERVER_URL}/nodejs-example-app/qrcode.html${ANSII_RESET}`)
106+
console.log(
107+
'Please copy and paste the inviteURL into an external QR code generator (e.g. https://www.qr-code-generator.com/) and scan the QR code from there to establish a connection'
108+
)
108109
} else {
109110
console.log('QR code generated at: qrcode.png')
110111
console.log('Open this file and scan QR code to establish a connection')

samples/sdk/python-example-app/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ async def invitation_handler(msg_name, message):
115115
qr.png('qrcode.png')
116116

117117
if os.environ.get('HTTP_SERVER_URL'):
118-
print('Open the following URL in your browser and scan presented QR code')
119-
print(f'{ANSII_GREEN}{os.environ.get("HTTP_SERVER_URL")}/python-example-app/qrcode.html{ANSII_RESET}')
118+
print('Please copy and paste the inviteURL into an external QR code generator (e.g. https://www.qr-code-generator.com/) and scan the QR code from there to establish a connection')
120119
else:
121120
print('QR code generated at: qrcode.png')
122121
print('Open this file and scan QR code to establish a connection')

sdk/dotnet-sdk/src/VeritySDK.Sample/App.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,7 @@ void relationshipHandler(RelationshipV1_0 handler)
588588

589589
if (!(Environment.GetEnvironmentVariable("HTTP_SERVER_URL") == null))
590590
{
591-
App.consoleOutput("Open the following URL in your browser and scan presented QR code");
592-
App.consoleOutput(Environment.GetEnvironmentVariable("HTTP_SERVER_URL") + "/dotnet-example-app/qrcode.html");
591+
App.consoleOutput("Please copy and paste the inviteURL into an external QR code generator (e.g. https://www.qr-code-generator.com/) and scan the QR code from there to establish a connection");
593592
}
594593
else
595594
{

0 commit comments

Comments
 (0)