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

[BUG] apklis_direct_payment_checker has a deprecated method #18

Open
alaincruz06 opened this issue Nov 14, 2021 · 1 comment
Open

[BUG] apklis_direct_payment_checker has a deprecated method #18

alaincruz06 opened this issue Nov 14, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@alaincruz06
Copy link

alaincruz06 commented Nov 14, 2021

Descripción del error
apklis_direct_payment_checker -0.0.1+2/android/src/main/kotlin/com/fluttercuba/apklis_direct_payment_checker/Verify.kt:31:38 shows a warning on: "release(): Boolean" because "contentResolver?.release()" is deprecated in Java.

Reprodución del error
Pasos para reproducir el comportamiento:

  1. Cree una página nueva (StatefulWidget).
  2. En el initState llame al método de chequear el pago de la app en Apklis usando la api (como se muestra en el código debajo), puede obtener el packageId de forma manual escribiéndolo directamente o usar el paquete "package_info_plus".
  3. Abrir la consola de depuración para ver mensaje de error o pestaña de depuración para ver el modelo devuelto y el error.

Captura de pantalla y código
1.

Future<void> requestPaymentStatus(BuildContext context) async {
  final PackageInfo packageInfo = await PackageInfo.fromPlatform();
  final String packageId = packageInfo.packageName;
  try {
    final status = await ApklisDirectPaymentChecker.isPurchased(packageId);
    if (status.paid == false) {
      mostrarDialogoCompra(context);
    }
  } on PlatformException catch (e) {
    log(e.toString());
  }
}
  1. Error mostrado:
    issue

Escritorio:
Flutter version 2.5.0
Dart version 2.14.0
Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
Sistema Operativo: Windows_NT x64 10.0.19041
5024A (mobile) • android-arm64 • Android 9 (API 28)

@alaincruz06 alaincruz06 added the bug Something isn't working label Nov 14, 2021
@leynier
Copy link
Member

leynier commented Nov 14, 2021

Thanks very much for the issue report, I'm already very busy right now, If you @alaincj or other people want to work on this issue will be awesome, if not, I will work on this in a few weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants