jonasbark / flutter_stripe_payment

[DISCONTINUED] A flutter plugin with stripe payment plugin integration
MIT License
309 stars 243 forks source link

DialogFragment is deprecated #188

Open carlfost opened 4 years ago

carlfost commented 4 years ago

How to fix this build error: 'DialogFragment' is deprecated. Deprecated in Java. The package is stripe_payment-1.0.7

C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripeDialog.kt: (3, 20): 'DialogFragment' is deprecated. Deprecated in Java [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripeDialog.kt: (18, 22): 'DialogFragment' is deprecated. Deprecated in Java [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (26, 44): Unchecked cast: Any! to Map<String, Any> [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (30, 44): Unchecked cast: Any! to Map<String, Any> [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (34, 44): Unchecked cast: Any! to Map<String, Any> [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (38, 44): Unchecked cast: Any! to Map<String, Any> [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (42, 44): Unchecked cast: Any! to Map<String, Any> [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (46, 44): Unchecked cast: Any! to Map<String, Any> [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (50, 44): Unchecked cast: Any! to Map<String, Any> [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (54, 44): Unchecked cast: Any! to Map<String, Any> [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (58, 44): Unchecked cast: Any! to Map<String, Any> [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (62, 44): Unchecked cast: Any! to Map<String, Any>

eyoeldefare commented 4 years ago

How to fix this build error: 'DialogFragment' is deprecated. Deprecated in Java. The package is stripe_payment-1.0.7

C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripeDialog.kt: (3, 20): 'DialogFragment' is deprecated. Deprecated in Java [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripeDialog.kt: (18, 22): 'DialogFragment' is deprecated. Deprecated in Java [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (26, 44): Unchecked cast: Any! to Map<String, Any> [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (30, 44): Unchecked cast: Any! to Map<String, Any> [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (34, 44): Unchecked cast: Any! to Map<String, Any> [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (38, 44): Unchecked cast: Any! to Map<String, Any> [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (42, 44): Unchecked cast: Any! to Map<String, Any> [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (46, 44): Unchecked cast: Any! to Map<String, Any> [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (50, 44): Unchecked cast: Any! to Map<String, Any> [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (54, 44): Unchecked cast: Any! to Map<String, Any> [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (58, 44): Unchecked cast: Any! to Map<String, Any> [ ] w: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\stripe_payment-1.0.7\android\src\main\kotlin\de\jonasbark\stripepayment\StripePaymentPlugin.kt: (62, 44): Unchecked cast: Any! to Map<String, Any>

I thought it would work if I changed it to android.support.v4.app.DialogFragment but it is now working for me just fine with the android.app.DialogFragment.