I'd like to know how I can connect the Epson ePOS SDK to Android using Flutter.
From what I've learned, the SDK isn't available for download and installation in my project. Therefore, I need to write Android natively using AndroidManifest.xml, res/xml/device_filter.xml, and build.gradle
The details are as follows:
AndroidManifest.xml
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/device_filter" />
android/res/xml/device_filter.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<usb-device vendor-id="1208" />
</resources>
and android/app/build.gradle
dependencies {
implementation "androidx.core:core-ktx:1.6.0"
implementation 'com.epson.epos2:epos2-android:5.15.0'
}
I'd like to know what I should do next to integrate the SDK into Android using Flutter.
I studied the documentation attached below and used chatGPT to help me a little.
If you guys can help me, I would appreciate it, and thanks in advance for your answers.
How to