Skip to content

Commit

Permalink
Merge pull request #1460 from bitmark-inc/ff_deeplink
Browse files Browse the repository at this point in the history
feralfile deeplink
  • Loading branch information
phuocbitmark authored Jan 8, 2024
2 parents 216b6e7 + 37c2801 commit 7746ebb
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 0 deletions.
17 changes: 17 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,16 @@
<data
android:host="autonomy-app-alternate.app.link"
android:scheme="https" />

<data
android:host="app.feralfile.com"
android:scheme="https" />
<data
android:host="feralfile-app.app.link"
android:scheme="https" />
<data
android:host="feralfile-app-alternate.app.link"
android:scheme="https" />
</intent-filter>

<intent-filter android:autoVerify="true">
Expand All @@ -177,6 +187,13 @@
<data
android:host="autonomy-app-alternate.test.app.link"
android:scheme="https" />

<data
android:host="feralfile-app.test.app.link"
android:scheme="https" />
<data
android:host="feralfile-app-alternate.test.app.link"
android:scheme="https" />
</intent-filter>
</activity>
<!--
Expand Down
5 changes: 5 additions & 0 deletions ios/Runner-Inhouse-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@
<string>autonomy-app-alternate.app.link</string>
<string>autonomy-app.test.app.link</string>
<string>autonomy-app-alternate.test.app.link</string>
<string>app.feralfile.com</string>
<string>feralfile-app.app.link</string>
<string>feralfile-app-alternate.app.link</string>
<string>feralfile-app.test.app.link</string>
<string>feralfile-app-alternate.test.app.link</string>
</array>
<key>io.flutter.embedded_views_preview</key>
<true/>
Expand Down
5 changes: 5 additions & 0 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@
<string>autonomy-app-alternate.app.link</string>
<string>autonomy-app.test.app.link</string>
<string>autonomy-app-alternate.test.app.link</string>
<string>app.feralfile.com</string>
<string>feralfile-app.app.link</string>
<string>feralfile-app-alternate.app.link</string>
<string>feralfile-app.test.app.link</string>
<string>feralfile-app-alternate.test.app.link</string>
</array>
<key>io.flutter.embedded_views_preview</key>
<true/>
Expand Down
3 changes: 3 additions & 0 deletions ios/Runner/Runner InhouseDebug.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<string>applinks:autonomy-app.app.link</string>
<string>applinks:autonomy-app-alternate.app.link</string>
<string>applinks:link.autonomy.io</string>
<string>applinks:feralfile-app.app.link</string>
<string>applinks:feralfile-app-alternate.app.link</string>
<string>applinks:app.feralfile.com</string>
</array>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
Expand Down
3 changes: 3 additions & 0 deletions ios/Runner/Runner-Inhouse.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<string>applinks:autonomy-app.app.link</string>
<string>applinks:autonomy-app-alternate.app.link</string>
<string>applinks:link.autonomy.io</string>
<string>applinks:feralfile-app.app.link</string>
<string>applinks:feralfile-app-alternate.app.link</string>
<string>applinks:app.feralfile.com</string>
</array>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
Expand Down
3 changes: 3 additions & 0 deletions ios/Runner/Runner.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<string>applinks:autonomy-app.app.link</string>
<string>applinks:autonomy-app-alternate.app.link</string>
<string>applinks:link.autonomy.io</string>
<string>applinks:feralfile-app.app.link</string>
<string>applinks:feralfile-app-alternate.app.link</string>
<string>applinks:app.feralfile.com</string>
</array>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
Expand Down
3 changes: 3 additions & 0 deletions ios/Runner/RunnerDebug.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<string>applinks:autonomy-app.app.link</string>
<string>applinks:autonomy-app-alternate.app.link</string>
<string>applinks:link.autonomy.io</string>
<string>applinks:feralfile-app.app.link</string>
<string>applinks:feralfile-app-alternate.app.link</string>
<string>applinks:app.feralfile.com</string>
</array>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
Expand Down
7 changes: 7 additions & 0 deletions lib/service/deeplink_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -214,21 +214,28 @@ class DeeplinkServiceImpl extends DeeplinkService {
'https://autonomy.io/apps/wc/wc?uri=',
'autonomy://wc?uri=',
'autonomy-wc://wc?uri=',
'https://app.feralfile.com/apps/wc?uri=',
'https://app.feralfile.com/apps/wc/wc?uri=',
'feralfile://wc?uri=',
'feralfile-wc://wc?uri=',
];

final tzPrefixes = [
'https://au.bitmark.com/apps/tezos?uri=',
'https://autonomy.io/apps/tezos?uri=',
'https://feralfile.com/apps/tezos?uri=',
];

final wcDeeplinkPrefixes = [
'wc:',
'autonomy-wc:',
'feralfile-wc:',
];

final tbDeeplinkPrefixes = [
'tezos://',
'autonomy-tezos://',
'feralfile-tezos://',
];

final postcardPayToMintPrefixes = [
Expand Down
4 changes: 4 additions & 0 deletions lib/util/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ const DEEP_LINKS = [
'https://autonomy-app.app.link',
'https://autonomy-app-alternate.app.link',
'https://link.autonomy.io',
'feralfile://',
'https://feralfile-app.app.link',
'https://feralfile-app-alternate.app.link',
'https://app.feralfile.com',
];
const FF_ARTIST_COLLECTOR =
'https://feralfile.com/docs/artist-collector-rights';
Expand Down

0 comments on commit 7746ebb

Please sign in to comment.