Skip to content
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

Latest feature ClassesWithCallbacks does not work as expected #541

Closed
masesdevelopers opened this issue Sep 25, 2024 · 2 comments · Fixed by #543, #552 or #554
Closed

Latest feature ClassesWithCallbacks does not work as expected #541

masesdevelopers opened this issue Sep 25, 2024 · 2 comments · Fixed by #543, #552 or #554
Assignees
Labels
bug Something isn't working JNetReflector JNetReflector related issue

Comments

@masesdevelopers
Copy link
Contributor

masesdevelopers commented Sep 25, 2024

Using latest version of JNetReflector it is not possible to obtain the expected result.
With the first attempt using android.app.Activity it is possible to highlight that the following configuration snippet

  "ClassesWithCallbacks": [
    {
      "ClassName": "android.app.Activity",
      "Patterns": [
        "on*"
      ]
    }
  ],

fails the generation with:

  • Patterns does not work and all methods are created as callbacks then compiling Java side most of the errors reports overridden method is final
  • in .NET side all methods are callbacks (implicitly from the previous), but some other information, like fields, are removed

Originally posted by @masesdevelopers in masesgroup/netdroid#75 (comment)

@masesdevelopers masesdevelopers self-assigned this Sep 25, 2024
@masesdevelopers masesdevelopers added bug Something isn't working JNetReflector JNetReflector related issue labels Sep 25, 2024
@masesdevelopers
Copy link
Contributor Author

See masesgroup/netdroid#75 (comment) for other points

@masesdevelopers
Copy link
Contributor Author

The compilation of masesgroup/netdroid#101 which is a generation based on latest JNetReflector reports some errors in Java side: one issue is related to the function onPointerCaptureChanged that is a default method of android.view.Window.Callback, but it is managed as default of android.app.Activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment