-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ndk-glue: Drop deprecated
annotation from native_activity()
#280
Conversation
Can you provide an example? Unless you're building a windowing library like winit, your code will be non portable. Still don't quite understand the use case. There is nothing that isn't specific to the NativeActivity that can't be done via the jni. |
I want to access the path variables that Android has already stored for me in At the same time I want to access new features like Finally it's just inconvenient for windowing library writers like Since my approach suggested in #211 has effectively been shot down as being too complicated (pass |
@dvc94ch Yet another idea - albeit a stupid one because it affects |
using something like app_dirs2 is really what we should be incouraging. it seems like a weird place to micro optimize. we can remove the deprecation warning if you feel strongly about it. I believe I added it because you suggested it? |
I think you suggested the deprecation attribute, I originally disapproved of it, you removed it, then I requested it again in light of master...MarijnS95:anativeactivity-instance removing static globals... As per the PR description that branch isn't anywhere near landing, so I retract my recommendation/request for deprecating it 😬 - I think there are valid use-cases for this function, users should just be careful using it. We have this problem anyway. In a recent test project I didn't call |
… doc-comments It has been quite some time since we introduced this, and our alternative implementation for more safely passing a native activity to the user while interoperating cleanly with `ndk_context` still hasn't found its way. There are legitimate uses for `native_activity()` that cannot be performed through the suggested `ndk_context::android_context().vm()`, making the load of this deprecation warning heavier than the problem it tries to prevent. In order to keep some form of documentation for this issue going, it is now explained in a doc-comment that is also partially replicated on the other `static` getter functions.
aea6c33
to
f31eeba
Compare
And of course I should at least maintain the original Can we do anything else to mitigate this issue, or make the user aware? How about defining a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
It has been quite some time since we introduced this, and our alternative implementation for more safely passing a native activity to the user while interoperating cleanly with
ndk_context
still hasn't found its way.There are legitimate uses for
native_activity()
that cannot be performed through the suggestedndk_context::android_context().vm()
, making the load of this deprecation warning heavier than the problem it tries to prevent.