Flutter Usage Example
Step:
Add dependencies to android/app/build.gradle (select what you need)
1dependencies {
2 implementation files('libs/IminLibs1.0.15.jar')
3 implementation files('libs/iminPrinterSDK.jar') //iminPrinter
4}
Create a new directory libs under android/app, and put the Android jar package you need into it;
Copy the android/app/src/jniLibs directory in the demo to the corresponding location in the project;
MainActivity sets the receiving command parameters, see android/app/src/main/java/com.example.flutter_printer_sdk/MainActivity.java in the demo;
Set the send/receive commands in the flutter project, see lib/main.dart in the demo
1const MethodChannel channel = MethodChannel('com.imin.printersdk');
2var s = await channel.invokeMethod("sdkInit");
For the specific usage process and commands, please refer to the official development documentation of the corresponding SDK