ionic-team / capacitor-site

Capacitor website
https://capacitorjs.com/
MIT License
4 stars 109 forks source link

Update java imports #438

Closed Gabriel-des closed 2 years ago

Gabriel-des commented 2 years ago

Update java imports on MainActivity.java section, because new ionic capacitor projects don't have this java code.

vercel[bot] commented 2 years ago

@Gabriel-des is attempting to deploy a commit to the Ionic Team on Vercel.

A member of the Team first needs to authorize it.

jcesarmobile commented 2 years ago

Thanks for the PR

All apps have the import com.getcapacitor.BridgeActivity;, so that line shouldn't be needed, anyway, that block of code is just to indicate how to add the plugin with a registerPlugin line, it's a diff-java block, that indicates which lines changed, so it assumes you already had the onCreate. There are other pages with similar code that have the import or have // Other imports... to indicate that there are other imports already.