Hi there!
I need to keep integration tests (written with integration_test Flutter lib) in separate project from app code. Is it possible? Additionally I don’t have access to application code, I have only .apk (.app, .ipa) package.
I tried to do it, but I cannot execute tests in this case. seems like tests do not see launched application.
Will be very appreciated for any advice.
Probably not, especially if it is a release built app. In that case, the Dart code is no longer Dart, it’s ARM now (Dart is compiled to ARM machine language code in release mode). In this case, there is no Dart anymore anywhere in the APK, just binary ARM/x86/x64 machine code.
And, I’m just guessing here: I think user-code Dart doesn’t have library endpoints (as a DLL or C), so you could not just invoke Dart code from the outside (you must have an external interface for it (those listed functions in an .h source code)). I’m not sure if @pragma("vm:entry-point")
will only inline the function (for tree-shaking purposes) or if it is accessible from outside. I also not sure if it is needed or if any static method would automatically do that (that attribute was used in all isolate samples some years ago, but none uses it anymore, so, something must have changed).
1 Like