Skip to content

Conversation

ksteuer
Copy link
Contributor

@ksteuer ksteuer commented Dec 9, 2021

Update build.gradle applicationId when calling project.setPackageName. #24

Copy link
Contributor

@mlynch mlynch left a comment

Choose a reason for hiding this comment

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

Looks great, I wasn't expecting a PR and this is pretty much exactly what I had locally. Would love to have your contribution instead. Left one small comment

@@ -50,7 +50,10 @@ export class AndroidProject {
}

async setPackageName(packageName: string) {
this.manifest.getDocumentElement()?.setAttribute('package', packageName);
await Promise.all([
this.manifest.getDocumentElement()?.setAttribute('package', packageName),
Copy link
Contributor

Choose a reason for hiding this comment

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

No need for the Promise.all here as the setAttribute is synchronous

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right! Changing it right away. Thanks!

@mlynch mlynch merged commit 1e88ae5 into ionic-team:main Dec 9, 2021
@mlynch
Copy link
Contributor

mlynch commented Dec 9, 2021

💪 awesome! Much appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants