Skip to content

Commit

Permalink
Wc altme scheme #1698
Browse files Browse the repository at this point in the history
* add wc-altme scheme

* version: 1.18.4+235

* start wallet connect pairing if url start with wc-altme

* version: 1.18.5+236
  • Loading branch information
hawkbee1 authored Jul 29, 2023
1 parent 8c45a0c commit 5e88dbc
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
6 changes: 6 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="wc" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="wc-altme" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
Expand Down
10 changes: 10 additions & 0 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,16 @@
<string>openid</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>wc-altme</string>
<key>CFBundleURLSchemes</key>
<array>
<string>wc-altme</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ class QRCodeScanCubit extends Cubit<QRCodeScanState> {

await beacon.pair(pairingRequest: pairingRequest);
emit(state.copyWith(qrScanStatus: QrScanStatus.goBack));
} else if (scannedResponse.startsWith('wc:')) {
} else if (scannedResponse.startsWith('wc:') ||
scannedResponse.startsWith('wc-altme:')) {
/// wallet connect
await walletConnectCubit.connect(scannedResponse);
emit(state.copyWith(qrScanStatus: QrScanStatus.goBack));
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: altme
description: AltMe Flutter App
version: 1.18.3+234
version: 1.18.5+236
publish_to: none

environment:
Expand Down

0 comments on commit 5e88dbc

Please sign in to comment.