This repository has been archived by the owner on Jan 17, 2024. It is now read-only.
Replies: 1 comment 1 reply
-
Yes, this is expected behavior. The Dart |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I made a very basic C library into a plugin for Flutter via Dart ffi. I'm noticing that the main function is not being invoked automatically. I can call the doit function within the plugin from Flutter and get results, but main () is not being called on load. Is this expected behavior?
`#include <stdlib.h>
#include <stdio.h>
#include <android/log.h>
int main(){
__android_log_print(ANDROID_LOG_DEBUG, "Flutter:", "MAIN CALLED %s", "");
return 9;
}
int doit(){
__android_log_print(ANDROID_LOG_DEBUG, "flutter", "DOIT CALLED %s", "");
return 1;
}`
Beta Was this translation helpful? Give feedback.
All reactions