-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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());
}
}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)
leynier
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working