Describe the bug
If you use the plugin with Navigation 3 1.1.0 you get a crash when trying to launch the v2.OssLicensesActivity.
To Reproduce
Steps to reproduce the behavior:
- Add Navigation 1.1.0 to your project
- Click on the link in your app that launches OssLicensesActivity
- App crashes
Expected behavior
OSS Licenses Activity should work regardless of which Nav3 version the project implements.
Desktop:
- Gradle version: 9.4.1
- Android Studio: version Panda v3
- Plugin name and version: OSS Licenses 17.5.0
Additional context
Stack trace
Fatal Exception: java.lang.NoSuchMethodError
No static method NavDisplay(Ljava/util/List;Landroidx/compose/ui/Modifier;Landroidx/compose/ui/Alignment;Lkotlin/jvm/functions/Function0;Ljava/util/List;Landroidx/navigation3/scene/SceneStrategy;Landroidx/compose/animation/SharedTransitionScope;Landroidx/compose/animation/SizeTransform;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;III)V in class Lzf2; or its super classes (declaration of 'zf2' appears in /data/app/~~boFkiWUAp582YyiTPKfxng==/uk.co.bazsoft.yaniv-Yx_qKzOjHRVR3BxKzt-I8Q==/base.apk)
In Nav3 1.1.0, the sceneStrategy parameter is no longer available and is replaced by sceneStrategies which takes a listOf<SceneStrategy>. I suspect that might be the issue. Either OSS Licenses should enforce its own version of the Nav3 library or it should work with 1.1.0.
Describe the bug
If you use the plugin with Navigation 3 1.1.0 you get a crash when trying to launch the v2.OssLicensesActivity.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
OSS Licenses Activity should work regardless of which Nav3 version the project implements.
Desktop:
Additional context
Stack trace
Fatal Exception: java.lang.NoSuchMethodError
No static method NavDisplay(Ljava/util/List;Landroidx/compose/ui/Modifier;Landroidx/compose/ui/Alignment;Lkotlin/jvm/functions/Function0;Ljava/util/List;Landroidx/navigation3/scene/SceneStrategy;Landroidx/compose/animation/SharedTransitionScope;Landroidx/compose/animation/SizeTransform;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;III)V in class Lzf2; or its super classes (declaration of 'zf2' appears in /data/app/~~boFkiWUAp582YyiTPKfxng==/uk.co.bazsoft.yaniv-Yx_qKzOjHRVR3BxKzt-I8Q==/base.apk)
In Nav3 1.1.0, the
sceneStrategyparameter is no longer available and is replaced bysceneStrategieswhich takes alistOf<SceneStrategy>. I suspect that might be the issue. Either OSS Licenses should enforce its own version of the Nav3 library or it should work with 1.1.0.