star-micronics / react-native-star-io10

react-native-star-io10 is a library for supporting application development for Star Micronics devices.
Other
83 stars 54 forks source link

Fix ios compile error and up to date plugin file #84

Open jongbelegen opened 1 year ago

jongbelegen commented 1 year ago

In our yarn workspaces branch we experienced the following compile errors:

Compiling react-native Pods/React-CoreModules » RCTFPSGraph.m
› Compiling react-native-star-io10 Pods/react-native-star-io10 » react-native-star-io10-dummy.m
› Compiling react-native-star-io10 Pods/react-native-star-io10 » StarXpandCommandBuilderWrapper.m
:x:  (../../node_modules/react-native-star-io10/ios/Util/StarObjectManager.h:2:9)
  1 | #import <Foundation/Foundation.h>
> 2 | @import StarIO10;
    |         ^ module 'StarIO10' not found
  3 |
  4 | NS_ASSUME_NONNULL_BEGIN
  5 |

Using PODS_TARGET_SRCROOT resolved this problem.

Secondly I added a expo plugin that pushes 'jp.star-m.starpro' to UISupportedExternalAccessoryProtocols.

At the moment I only need to support printing by USB on IOS. but I think this is a step in the right direction toward full expo compatibility.