Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error de compilación en iOS #1

Closed
anagac opened this issue Jul 28, 2019 · 2 comments
Closed

Error de compilación en iOS #1

anagac opened this issue Jul 28, 2019 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@anagac
Copy link

anagac commented Jul 28, 2019

Hola, he estado usando la librería para generar los tokens de las tarjetas en mi app con flutter. Funciona muy bien. Solamente que parece haber un problema de compilación con iOS.

En el archivo FlutterConektaPlugin.m en la función handleMethodCall, en el callback de error de la llamada a createWithSuccess. Actualmente se quiere hacer un NSLog al objeto data, pero dicho objeto no es parte del scope del callback.

andError:^(NSError* error) { NSLog(@"Error data: %@", data); result([FlutterError errorWithCode:@"ERROR_UNABLE_TO_TOKENIZE" message:error.localizedDescription details:nil]); }

Debería quedar así:

andError:^(NSError* error) { NSLog(@"Error data: %@", error); result([FlutterError errorWithCode:@"ERROR_UNABLE_TO_TOKENIZE" message:error.localizedDescription details:nil]); }

Para solucionar el problema tuve que modificar la librería manualmente dentro de mi proyecto, pero dado que colaboro con otras personas, ellos tienen que hacer lo mismo.

Saludos!

@alfredoqt
Copy link
Owner

Te pido una disculpa por contestar hasta ahorita @anagac . Hoy en la noche queda resuelto. Estaba añadiendo código para mostrar errores relacionados con números de tarjeta incorrecto. Al final decidí no ponerlo puesto que estaba manejando esos errores con otras validaciones en mi aplicación específica. Removí el código en iOS pero no lo probé. Espero que no te haya causado muchas molestias.

alfredoqt added a commit that referenced this issue Aug 5, 2019
@alfredoqt
Copy link
Owner

alfredoqt commented Aug 5, 2019

El issue ha sido resuelto en la versión 1.0.7+1.

@alfredoqt alfredoqt added bug Something isn't working good first issue Good for newcomers labels Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants