简体   繁体   English

如何将 SDK POS TPS550 集成到 FLUTTER APP

[英]How can integrated SDK POS TPS550 to FLUTTER APP

I am developing the application in Flutter for a POS TPS990 terminal .我正在为POS TPS990 终端开发Flutter中的应用程序。 The app works perfectly but I need to add and use the POS SDK to use the printer and magnetic band reader.该应用程序运行良好,但我需要添加和使用 POS SDK 才能使用打印机和磁条阅读器。 I added the libraries to my Android project as the manufacturer says but I can't integrate the methods into the MainActivity to be able to use it.正如制造商所说,我将这些库添加到我的 Android 项目中,但我无法将这些方法集成到 MainActivity 中以便能够使用它。 The terminal uses the Telpo TPS550 SDK .终端使用天波TPS550 SDK Someone could give me a hand with this, I'll be grateful.有人可以帮我解决这个问题,我将不胜感激。

At first you need to copy all the jar files and put it in the libs directory inside app directory.首先,您需要复制所有jar文件并将其放在app目录内的libs目录中。 Then right click on each of the jar file and select "Add As Library" .然后右键单击每个jar文件和 select "Add As Library"

就像第一张图片上显示的那样

Then in the main directory create a new directory named jniLibs , then copy and paste all the native c++ files.然后在目录中创建一个名为jniLibs的新目录,然后复制并粘贴所有本机 c++ 文件。

如第二张图片所示

Now you will be able to call SDK api and Classes.现在您将能够调用 SDK api 和类。

NB: For apps targeting api 31 there will be (blacklist, core-platform-api, reflection, denied) which will cause the program to Crash.注意:对于针对 api 31 的应用程序,将会出现(黑名单、核心平台 API、反射、拒绝) ,这将导致程序崩溃。 I have solved the issue using android target SDK 30.我已经使用 android 目标 SDK 30 解决了这个问题。

I'm looking for the way to use POS TPS320 functionality in Flutter.我正在寻找在 Flutter 中使用 POS TPS320 功能的方法。 I saw your answers but i don't have the Telpo TPS SDK.我看到了你的答案,但我没有 Telpo TPS SDK。 Can someone give it to me Please?有人可以给我吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM