ponnamkarthik / FlutterToast

Toast Plugin for Flutter
MIT License
1.46k stars 364 forks source link

Kotlin Gradle plugin issue #536

Open dineshnaikb opened 2 months ago

dineshnaikb commented 2 months ago
exception: c:\Users\naik9\AppData\Local\Pub\Cache\hosted\pub.dev\fluttertoast-8.2.8\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt:18:8: warning: '@Deprecated(...) class FlutterMain : Any' is deprecated. Deprecated in Java.      
exception: import io.flutter.view.FlutterMain
exception:        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
exception: c:\Users\naik9\AppData\Local\Pub\Cache\hosted\pub.dev\fluttertoast-8.2.8\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt:59:40: warning: '@Deprecated(...) fun setColorFilter(p0: Int, @NonNull() p1: PorterDuff.Mode): Unit' is deprecated. Deprecated in Java.
exception:                     gradientDrawable!!.setColorFilter(bgcolor.toInt(), PorterDuff.Mode.SRC_IN)
exception:                                        ^^^^^^^^^^^^^^
exception: c:\Users\naik9\AppData\Local\Pub\Cache\hosted\pub.dev\fluttertoast-8.2.8\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt:74:35: warning: '@Deprecated(...) class FlutterMain : Any' is deprecated. Deprecated in Java.     
exception:                         val key = FlutterMain.getLookupKeyForAsset(fontAsset)
exception:                                   ^^^^^^^^^^^
exception: c:\Users\naik9\AppData\Local\Pub\Cache\hosted\pub.dev\fluttertoast-8.2.8\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt:77:29: warning: 'var view: View?' is deprecated. Deprecated in Java.
exception:                     mToast?.view = layout
exception:                             ^^^^
exception: c:\Users\naik9\AppData\Local\Pub\Cache\hosted\pub.dev\fluttertoast-8.2.8\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt:81:58: warning: 'var view: View?' is deprecated. Deprecated in Java.
exception:                         val textView: TextView = mToast?.view!!.findViewById(android.R.id.message)
exception:                                                          ^^^^
exception: c:\Users\naik9\AppData\Local\Pub\Cache\hosted\pub.dev\fluttertoast-8.2.8\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt:90:39: warning: '@Deprecated(...) class FlutterMain : Any' is deprecated. Deprecated in Java.     
exception:                             val key = FlutterMain.getLookupKeyForAsset(fontAsset)
EirikFaerdin commented 1 month ago

Same as https://github.com/ponnamkarthik/FlutterToast/issues/532#issue-2484553223