EddyVerbruggen / EddyVerbruggen/nativescript-star-printer
StarPrinter Library implementation question
- Dominant language
- Objective-C
- Stars
- 32
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
For the specific Star printer that I'm using, it takes in bitmap (UIImage for iOS) instead of text data. StarIO_Extension.framework has the implementation for these raster printers, so I'm trying to add it to this plugin so I can . I dropped the .framework file in the platforms/ios folder and was able to build the project, but when I run the command "TNS_TYPESCRIPT_DECLARATIONS_PATH="$(pwd)/typings" tns build ios" to output all the Clang modules, I'm not seeing any of the implementations for any of the framework functions.
I noticed for your plugin, there is a StarPrinter.d.ts file which has all the declarations from the StarPrinter header files, but I don't have that for mine - do I have to write that myself for the StarIO_Extension framework?
I'm pretty new to developing custom {N} plugins (especially without CocoaPods) so any guidance would be appreciated.
Another possibility I was looking into to get around having to import this framework would be converting the UIImage directly to a byte stream that I can send to the printer, similar to the .appendData and .appendBytes functions you have in your star-printer.ios.ts. I tried a few things for that but with no luck, so I'm not sure which would be the easier route to take.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with platforms/ios, StarPrinter.d.ts, and star-printer.ios.ts, then run the mentioned TNS_TYPESCRIPT_DECLARATIONS_PATH build command to inspect the generated declarations for StarIO_Extension.framework. Done requires choosing and validating either framework integration or UIImage-to-byte-stream printing, with the bitmap path building and working for the target Star printer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, objective-c
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100