plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

[Request]: share_plus-7.2.1\android\src\main\kotlin\dev\fluttercommunity\plus\share\Share.kt:139:55: warning: 'queryIntentActivities(Intent, Int): (Mutable)List<ResolveInfo!>' is deprecated. Deprecated in Java

Open dimiril opened this issue 1 year ago • 2 comments

Plugin

share_plus-7.2.1

Use case

C:\Users\zoom\AppData\Local\Pub\Cache\hosted\pub.dev\share_plus-7.2.1\android\src\main\kotlin\dev\fluttercommunity\plus\share\Share.kt:139:55: warning: 'queryIntentActivities(Intent, Int): (Mutable)List<ResolveInfo!>' is deprecated. Deprecated in Java val resInfoList = getContext().packageManager.queryIntentActivities( ^ C:\Users\zoom\AppData\Local\Pub\Cache\hosted\pub.dev\share_plus-7.2.1\android\src\main\kotlin\dev\fluttercommunity\plus\share\SharePlusPendingIntent.kt:31:20: warning: 'getParcelableExtra(String!): T?' is deprecated. Deprecated in Java intent.getParcelableExtra<ComponentName>(Intent.EXTRA_CHOSEN_COMPONENT)

Proposal

C:\Users\zoom\AppData\Local\Pub\Cache\hosted\pub.dev\share_plus-7.2.1\android\src\main\kotlin\dev\fluttercommunity\plus\share\Share.kt:139:55: warning: 'queryIntentActivities(Intent, Int): (Mutable)List<ResolveInfo!>' is deprecated. Deprecated in Java val resInfoList = getContext().packageManager.queryIntentActivities( ^ C:\Users\zoom\AppData\Local\Pub\Cache\hosted\pub.dev\share_plus-7.2.1\android\src\main\kotlin\dev\fluttercommunity\plus\share\SharePlusPendingIntent.kt:31:20: warning: 'getParcelableExtra(String!): T?' is deprecated. Deprecated in Java intent.getParcelableExtra<ComponentName>(Intent.EXTRA_CHOSEN_COMPONENT) C:\Users\zoom\AppData\Local\Pub\Cache\hosted\pub.dev\share_plus-7.2.1\android\src\main\kotlin\dev\fluttercommunity\plus\share\Share.kt:139:55: warning: 'queryIntentActivities(Intent, Int): (Mutable)List<ResolveInfo!>' is deprecated. Deprecated in Java val resInfoList = getContext().packageManager.queryIntentActivities( ^ C:\Users\zoom\AppData\Local\Pub\Cache\hosted\pub.dev\share_plus-7.2.1\android\src\main\kotlin\dev\fluttercommunity\plus\share\SharePlusPendingIntent.kt:31:20: warning: 'getParcelableExtra(String!): T?' is deprecated. Deprecated in Java intent.getParcelableExtra<ComponentName>(Intent.EXTRA_CHOSEN_COMPONENT)

dimiril avatar Jan 11 '24 12:01 dimiril

This doesn't cause any issues to functionality and a simple warning. Will be resolved when packages migrate to target SDK 34 which will happen later this year.

vbuberen avatar Jan 14 '24 14:01 vbuberen

@vbuberen Is this error similar to what you mentioned? This is displayed after executing flutter build apk

ע: C:\Users\Admin\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\android_intent_plus-4.0.3\android\src\main\java\dev\fluttercommunity\plus\androidintent\IntentSender.javaʹ�û򸲸����ѹ�ʱ�� API��
ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:deprecation ���±��롣
ע: C:\Users\Admin\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\android_intent_plus-4.0.3\android\src\main\java\dev\fluttercommunity\plus\androidintent\MethodCallHandlerImpl.javaʹ����δ�����򲻰�ȫ�IJ�����
ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:unchecked ���±��롣

shinexoh avatar Jan 23 '24 08:01 shinexoh