Hi, every body. I am a Java Programmer, and now I need to move some java code to my flutter project.
There is no tools to translate java code to dart code, so I use flutter's plugin to satisfy this need.
The java code can easy translate to Android code, no need to change anything.
Then I use j2objc command line tool to translate java code to objc code, and every is OK.
But I don't know how add these objc code as dependency to flutter plugin. I try the flowing code:s.ios.vendored_frameworks = 'frameworks/JRE.xcframework' s.vendored_frameworks = 'JRE.xcframework'
but it's not OK.
Do you know how? And anybody can show me an flutter plugin example?
--
You received this message because you are subscribed to the Google Groups "j2objc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to j2objc-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/j2objc-discuss/b4a86f3a-d8e5-406e-87f8-bc2310620271%40googlegroups.com.
1 error generated. In file included from /Users/jiangyb/Documents/eclipse_workspace/flutter_workspace/flutter_hyble/ios/Classes/WCFourGoalScanerPaperFiller.m:6: /Users/jiangyb/Documents/eclipse_workspace/flutter_workspace/flutter_hyble/ios/Classes/AbstractScanerPaperFiller.h:6:10: fatal error: 'J2ObjC_header.h' file not found #include "J2ObjC_header.h"
To unsubscribe from this group and stop receiving emails from it, send an email to j2objc-...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to j2objc-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/j2objc-discuss/cdf550af-265c-49bd-ad2e-f616706e0a75%40googlegroups.com.
That said, these frameworks don't (or shouldn't) have anything j2objc or Java specific, they're just XCFrameworks with Objective C headers and compiled static libraries. You therefore need to ask on a Flutter support group exactly how iOS frameworks are added to a Flutter project, and (important) whether Flutter supports XCFramework since it's new to Xcode 11. If Flutter doesn't support XCFramework yet, then try the fat-library static frameworks in j2objc 2.5 and before.
To view this discussion on the web visit https://groups.google.com/d/msgid/j2objc-discuss/772d4549-1e52-4c70-aa26-8569eb096eb0n%40googlegroups.com.
Dart language is very good, I love it very much, so I don’t plan to use j2objc to translate Java.
You received this message because you are subscribed to a topic in the Google Groups "j2objc-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/j2objc-discuss/O6Zsp_UqvDE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to j2objc-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/j2objc-discuss/CAPLadK444jur5QEoL7EakqOncSPhe_itKF3jJ_sjC%3DqjAqw%2BxA%40mail.gmail.com.