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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: extract android applicationId #1951

Merged

Conversation

adamTrz
Copy link
Collaborator

@adamTrz adamTrz commented Jun 2, 2023

Summary:

Use applicationId specified in defaultConfig of build.grade file.

Fixes #1884

Test Plan:

  1. Clone the fork and checkout to current branch
  2. Follow Contributing guide (link CLI)
  3. Change default applicationId inside defaultConfig of build.gradle file, eg.
 namespace "com.foo"
    defaultConfig {
+        applicationId "com.bar"
-        applicationId "com.foo"
  1. Run the app

TODO's / things to consider 馃 :

  • we do not always have appld present at defaultConfig object in build.gradle file. Should we default then to namespace?
  • users can have different applicationId's specified for build variants / flavors. Do we want to cover those cases as well?

@adamTrz adamTrz force-pushed the feat/android-applicationId branch from 6ae39f6 to ddb3884 Compare June 2, 2023 12:41
@adamTrz adamTrz removed the docs Documentation change label Jun 2, 2023
Copy link
Member

@cortinico cortinico left a comment

Choose a reason for hiding this comment

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

LGTM just a couple of nits

@adamTrz adamTrz marked this pull request as ready for review June 15, 2023 12:29
@adamTrz adamTrz requested a review from thymikee as a code owner June 15, 2023 12:29
.option('--verbose', 'Increase logging verbosity')
.enablePositionalOptions();
.option('--verbose', 'Increase logging verbosity');
// .enablePositionalOptions();
Copy link
Member

Choose a reason for hiding this comment

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

did you intend to remove this line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nah. That should be reverted 馃憣

@thymikee thymikee merged commit 1b97b1b into react-native-community:main Aug 19, 2023
6 checks passed
@adamTrz adamTrz deleted the feat/android-applicationId branch August 19, 2023 14:46
@Tchaikovsky1114
Copy link

thank you for great works!

how to use that ?
i have problem with this issue like different namespace to applicationId..

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

Successfully merging this pull request may close these issues.

[Android] Derive default app id from application id, not package name
5 participants