Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(share_plus): Update to target and compile SDK 34 on Android #2712

Merged
merged 2 commits into from
Mar 17, 2024

Conversation

vbuberen
Copy link
Collaborator

Description

Same as #2701 but with a few additional fixes for the example app.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate that with a ! in the title as explained in Conventional Commits).
  • No, this is not a breaking change.

@vbuberen vbuberen added the share_plus Feature, Enhancement, Bug Fixes for Share Plus Plugin label Mar 16, 2024
Intent.createChooser(shareIntent, null /* dialog title optional */)
}
val chooserIntent =
if (withResult && Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) {
Copy link
Collaborator Author

@vbuberen vbuberen Mar 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added version check to not see lint errors when working with Android part.
This change influences nothing, because we have the same check in the method call handler class.

Intent.createChooser(shareIntent, null /* dialog title optional */)
}
val chooserIntent =
if (withResult && Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added version check to not see lint errors when working with Android part.
This change influences nothing, because we have the same check in the method call handler class.

@@ -28,6 +28,7 @@ internal class SharePlusPendingIntent: BroadcastReceiver() {
intent.getParcelableExtra(Intent.EXTRA_CHOSEN_COMPONENT, ComponentName::class.java)
} else {
// Deprecated in API level 33
@Suppress("DEPRECATION")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to not see lint warnings

@vbuberen vbuberen merged commit b752fc3 into main Mar 17, 2024
18 of 19 checks passed
@vbuberen vbuberen deleted the update/share_plus_android branch March 17, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
share_plus Feature, Enhancement, Bug Fixes for Share Plus Plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants