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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(flagship): Make android namespace match package name #829

Merged

Conversation

nathan-sankbeil
Copy link

@nathan-sankbeil nathan-sankbeil commented Sep 24, 2019

The namespace for native android code was always set to
com.brandingbrand.reactnative.and.{config.name}, rather than using the defined ID. This lead to some
issues with starting activities and imports.

BREAKING CHANGE: If anything hard codes the android native project path (ie.
android/app/src/main/java/com/brandingbrand/reactnative/and/project-name), it will need to be
updated to account for the dynamic package name. Flagship now exports its own modules, so
flagship.path.android.nativeProjectPath(config) can be used to get the directory without hard
coding a path.

Will resolve #258

The namespace for native android code was always set to
com.brandingbrand.reactnative.and.{config.name}, rather than using the defined ID. This lead to some
issues with starting activities and imports.

BREAKING CHANGE: If anything hard codes the android native project path (ie.
android/app/src/main/java/com/brandingbrand/reactnative/and/project-name), it will need to be
updated to account for the dynamic package name. Flagship now exports its own modules, so
`flagship.path.android.nativeProjectPath(config)` can be used to get the directory without hard
coding a path.
@Cauldrath
Copy link

Looks like merging this caused a conflict:
#603

@Cauldrath
Copy link

yarn.lock conflicts again.

Cauldrath
Cauldrath previously approved these changes Sep 25, 2019
Copy link

@Cauldrath Cauldrath left a comment

Choose a reason for hiding this comment

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

Seems good once the conflicts are resolved.

Copy link

@Cauldrath Cauldrath left a comment

Choose a reason for hiding this comment

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

Seems good.

@Cauldrath Cauldrath merged commit fd879ef into brandingbrand:develop Sep 27, 2019
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.

Change how Android project path is handled
2 participants