Help Support Plugin iOS Published Nativescript Marketplace

plugins
ios

#1

Hi guys, happy day !!!

One questions.

My plugin use a directory whit files for read classes and i want import this classes, example:

Directory: Conekta -> Any files

In my ViewController I import #import “Conekta.h” but this files exists in directory Conekta.

My questions is, How can i add directory a my plugin ?

Code:

import { Common } from './conekta-tokenizer.common';

declare var Conekta: any;

export class ConektaTokenizer extends Common {

    createToken(options: ConektaOptions): Promise<string> {
        return new Promise(function (resolve, reject) {

            var conekta = Conekta.alloc().init();
            conekta.setDelegate(this);
            conekta.setPublicKey(options.publicKey);

            var card = conekta.Card.initWithNumber(options.numberCard)
                                    .name(options.name)
                                    .cvc(options.cvc)
                                    .expMonth(options.expMonth)
                                    .expYear(options.expYear);
            
            var token = conekta.Token.initWithCard(card);

            token.createWithSuccess(function(data) {
                console.log(data);
                resolve(data);
            });

            token.andError(function(error) {
                console.log(error);
                reject(error);
            });

        });
    }
}

export interface ConektaOptions {
    name: string;
    numberCard: string;
    cvc: string;
    expMonth: string;
    expYear: string;
    publicKey: string;
}

I want to continue contributing to the Nativescript community, and I currently have the plugin published but only with support for Android

Link: [https://market.nativescript.org/plugins/nativescript-conekta]