You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Cree una página nueva (StatefulWidget).
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".
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());
}
}
Error mostrado:
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)
The text was updated successfully, but these errors were encountered:
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.
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:
Captura de pantalla y código
1.
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)
The text was updated successfully, but these errors were encountered: