Only support game urls with orientation as deep link

This commit is contained in:
Vincent Velociter
2025-02-20 15:16:48 +01:00
parent bc2a294804
commit 08ec03019d
3 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -64,8 +64,9 @@
<data android:pathPattern="/broadcast/.*/.*/........" />
<data android:pathPattern="/broadcast/.*/.*/......../........" />
<!-- Either game or challenge -->
<data android:pathPattern="/........" />
<!-- Game with pov -->
<data android:pathPattern="/......../black" />
<data android:pathPattern="/......../white" />
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
+1 -1
View File
@@ -135,7 +135,7 @@ List<Widget> makeFinishedGameShareMenuItemButtons(
MenuItemButton(
leadingIcon: const PlatformShareIcon(),
onPressed: () {
launchShareDialog(context, uri: lichessUri('/$gameId'));
launchShareDialog(context, uri: lichessUri('/$gameId/${orientation.name}'));
},
child: Text(context.l10n.mobileShareGameURL),
),
+1 -1
View File
@@ -309,7 +309,7 @@ class GameContextMenu extends ConsumerWidget {
if (!isTabletOrLarger(context)) ...[
BottomSheetContextMenuAction(
onPressed: () {
launchShareDialog(context, uri: lichessUri('/${game.id}'));
launchShareDialog(context, uri: lichessUri('/${game.id}/${orientation.name}'));
},
icon:
Theme.of(context).platform == TargetPlatform.iOS