-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
#131 PackageManager.getPackageInfo(packageName, 0) is deprecated as of… #134
Conversation
…eprecated as of API 33: Android 13.0 (Tiramisu). capawesome-team#131
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution.
@@ -227,7 +229,13 @@ private boolean isGooglePlayServicesAvailable() { | |||
|
|||
private PackageInfo getPackageInfo() throws PackageManager.NameNotFoundException { | |||
String packageName = this.getContext().getPackageName(); | |||
return this.getContext().getPackageManager().getPackageInfo(packageName, 0); | |||
|
|||
// PackageManager.getPackageInfo(packageName, 0) is deprecated as of API 33: Android 13.0 (Tiramisu). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the comment. The code should be enough.
@@ -227,7 +229,13 @@ private boolean isGooglePlayServicesAvailable() { | |||
|
|||
private PackageInfo getPackageInfo() throws PackageManager.NameNotFoundException { | |||
String packageName = this.getContext().getPackageName(); | |||
return this.getContext().getPackageManager().getPackageInfo(packageName, 0); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the empty line.
Done.
…On Sat, Feb 3, 2024 at 9:34 PM Robin Genz ***@***.***> wrote:
***@***.**** requested changes on this pull request.
Thank you for your contribution.
------------------------------
In
packages/app-update/android/src/main/java/io/capawesome/capacitorjs/plugins/appupdate/AppUpdatePlugin.java
<#134 (comment)>
:
> @@ -227,7 +229,13 @@ private boolean isGooglePlayServicesAvailable() {
private PackageInfo getPackageInfo() throws PackageManager.NameNotFoundException {
String packageName = this.getContext().getPackageName();
- return this.getContext().getPackageManager().getPackageInfo(packageName, 0);
+
+ // PackageManager.getPackageInfo(packageName, 0) is deprecated as of API 33: Android 13.0 (Tiramisu).
Please remove the comment. The code should be enough.
------------------------------
In
packages/app-update/android/src/main/java/io/capawesome/capacitorjs/plugins/appupdate/AppUpdatePlugin.java
<#134 (comment)>
:
> @@ -227,7 +229,13 @@ private boolean isGooglePlayServicesAvailable() {
private PackageInfo getPackageInfo() throws PackageManager.NameNotFoundException {
String packageName = this.getContext().getPackageName();
- return this.getContext().getPackageManager().getPackageInfo(packageName, 0);
+
Please remove the empty line.
—
Reply to this email directly, view it on GitHub
<#134 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZ6CNHAZYY3UWSYW6FECC3YR2NO5AVCNFSM6AAAAABCYIBPTSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQNRRGEZDCMBYHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Next time, please update the existing PR and do not create a new one. I close this for #135. |
… API 33: Android 13.0 (Tiramisu).
Close #131
Pull request checklist
Please check if your PR fulfills the following requirements:
npm run changeset
).