Using a newer version of LibAdwaita than the one provided by the base

Hello,

I am able to successfully build the Snap of my app, but when I run it, I get this error:

gradia
Traceback (most recent call last):
  File "/snap/gradia/x1/usr/bin/gradia", line 55, in <module>
    from gradia import main
  File "/snap/gradia/current/usr/share/gradia/gradia/main.py", line 29, in <module>
    from gradia.ui.window import GradiaMainWindow
  File "/snap/gradia/current/usr/share/gradia/gradia/ui/window.py", line 32, in <module>
    from gradia.ui.background_selector import BackgroundSelector
  File "/snap/gradia/current/usr/share/gradia/gradia/ui/background_selector.py", line 33, in <module>
    class BackgroundSelector(Adw.Bin):
  File "/snap/gradia/current/usr/share/gradia/gradia/ui/background_selector.py", line 36, in BackgroundSelector
    toggle_group: Adw.ToggleGroup = Gtk.Template.Child()
                  ^^^^^^^^^^^^^^^
  File "/snap/gradia/x1/gnome-platform/usr/lib/python3/dist-packages/gi/module.py", line 127, in __getattr__
    raise AttributeError("%r object has no attribute %r" % (
AttributeError: 'gi.repository.Adw' object has no attribute 'ToggleGroup'

Adw.ToggleGroup is an object introduced in version Adwaita 1.7.0.

So when I try to build with the newer version included from source, it still gives the same error. Diagnosing the version its using returns this result:

snap run --shell gradia -c 'python3 -c "import gi; gi.require_version(\"Adw\", \"1\"); from gi.repository import Adw; print(f\"Adwaita version: {Adw.get_major_version()}.{Adw.get_minor_version()}.{Adw.get_micro_version()}\")"'
Adwaita version: 1.6.2

You can find the snapcraft.yaml here.