Status Update
Comments
fi...@gmail.com <fi...@gmail.com> #2
Dany, I believe this is fixed in a new release of safeargs ?
jb...@google.com <jb...@google.com>
cl...@google.com <cl...@google.com> #3
Safeargs still needs AndroidComponentsExtension
to get the applicationID from the variants (7.2.0-alpha05
remove the extension?
fi...@gmail.com <fi...@gmail.com> #4
it moved to a different package : com.android.build.api.variant
cl...@google.com <cl...@google.com> #5
Safeargs still relies on AGP 4.2
. We need some of the BaseVariant
APIs to have replacements before we can upgrade to 7.0+
(
fi...@gmail.com <fi...@gmail.com> #6
The BaseVariant API are deprecated but still available in 7.x, so you should be able to release a newer version that uses the new package and still relies on the old API you require. Or am I missing something ?
fi...@gmail.com <fi...@gmail.com> #7
I'll try updating to the latest stable to see if we run into any issues. I can check to make sure changing the package name in 7.2.0-alpha05 works, but we would need it to be stable before we could do a release with this change.
cl...@google.com <cl...@google.com> #8
FYI this also breaks the latest Studio (2021.1.1 Beta 5)/AGP (7.1.0-beta05) beta where com.android.build.api.extension.AndroidComponentsExtension
has been removed.
Is there a particular reason why
As it stands, no one can upgrade either AGP/Studio Beta or Canary and take advantage of fixes in the latest versions because Navigation still uses the old AGP APIs.
fi...@gmail.com <fi...@gmail.com> #9
Was this fixed in Studio 2021.1.1 RC 1?
fi...@gmail.com <fi...@gmail.com> #11
This will be fixed in the Navigation Safe Args 2.5.0-alpha01
and 2.4.1
versions. You can follow the
il...@google.com <il...@google.com> #12
Thank you! 2.4.1 is at least two weeks out (possibly 4, if I'm not mistaken).
I applaud the AGPs team decision to stick to the new APIs though. Hopefully its not too long before Navigation fixes this.
cl...@google.com <cl...@google.com>
ap...@google.com <ap...@google.com> #13
So we are talking mid february ?
ap...@google.com <ap...@google.com> #14
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Dolphin Canary 5 (2021.3.1.5)
- Android Gradle Plugin 7.3.0-alpha05
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
ap...@google.com <ap...@google.com> #15
Is this included in the Dolphin Beta 1 build? 7.3.0-beta01?
I'm able to consistent reproduce this when having the namespace
field setup in my gradle file. Removing it (and adding the value back to the Manifest files) does not cause the issue. Not sure if the same case here, or a new one.
cl...@google.com <cl...@google.com> #16
May be related to this one ?
na...@google.com <na...@google.com> #17
Right, the direct incompatibility between AGP and Safe Args is fixed, I believe, but there's another issue related to the use of applicationId
vs namespace
, tracking at
na...@google.com <na...@google.com> #18
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.navigation:navigation-common:2.9.0-alpha01
Description
Component used: Navigation
Version used: 2.8.0-beta03
Devices/Android versions reproduced on: emulator
Suppose the class for the route is
NotHome
.Suppose the destination is set up like this.
When the link is
https://example.com?param=NULL
,param
is string'NULL'
as expected. But if the link ishttps://example.com?param=null
,param
is reallynull
instead of string'null'
.