Skip to content

Add warning for difference of application identifier. #810

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

Merged

Conversation

KristianDD
Copy link
Contributor

@KristianDD KristianDD commented Aug 1, 2017

Description

User can change the application identifier inside his app.gradle file, but NativeScript LiveSync works with the one inside package.json. This causes the NativeScript CLI to not work as expected.

Does your commit message include the wording below to reference a specific issue in this repo?

Fixes NativeScript/nativescript-cli#2825

Related Pull Requests

NativeScript/nativescript-cli#3033

Does your pull request have unit tests?

Steps to tests.

  1. tns create testApp
  2. tns platform add android
  3. Edit applicationId iniside app/AppResources/Android/app.gradle.
  4. tns build android

@KristianDD KristianDD self-assigned this Aug 1, 2017
@ns-bot
Copy link

ns-bot commented Aug 1, 2017

💔

1 similar comment
@ns-bot
Copy link

ns-bot commented Aug 1, 2017

💔

@@ -721,6 +721,26 @@ copyTypings.onlyIf({
generateTypescriptDefinitions.didWork;
})

task validateAppIdMatch {
doLast {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please check if the build is happening in debug or release - https://github.com/NativeScript/android-runtime/blob/b74218bfd5d0e57087dcc0473366f76d34ff6433/build-artifacts/project-template-gradle/build.gradle#L84

There is no point in the user seeing the warning if they are preparing to release their app with an applicationId they themselves put in the app.gradle.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. :)

@ns-bot
Copy link

ns-bot commented Aug 2, 2017

💚

@Plamen5kov Plamen5kov merged commit ebe6e74 into master Aug 7, 2017
@KristianDD KristianDD deleted the kddimitrov/fix-missing-warning-mismatch-app-identifier branch September 26, 2017 07:33
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.

4 participants