Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

[xdl] Remove call to check-dynamic-macros #1933

Merged
merged 1 commit into from Apr 20, 2020

Conversation

sjchmiela
Copy link
Contributor

Why

This check has been added in #98 as an effort to ensure that the shell apps contain the pregenerated macros as expected.

I'm not sure this is needed anymore — from my point of view the shell app creation process is very clear now (one, simple script), expotools consistently generate the macros and I don't think XDL should be tied that closely to internals of the shell app.

If we wanted to, we could replace this check, run for every build, with a post-shell-app-build check in expo/expo repo, where the shell apps are created.

How

Removed spawning of the aforementioned script.

Test plan

As this only removed the call and doesn't add anything I don't see it breaking anything.

It's unlikely we will need to rebuild shell apps for old SDKs, where expotools may have not existed yet and even if so, since all current shell apps do contain the macros, I think it should be safe to assume that any additions to sdk-XX branches won't break the macros generation process.

@sjchmiela sjchmiela requested a review from dsokal April 20, 2020 11:53
Copy link
Contributor

@dsokal dsokal left a comment

Choose a reason for hiding this comment

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

Does it mean that we don't need tools-public/check-dynamic-macros-android.sh at all?

@sjchmiela
Copy link
Contributor Author

sjchmiela commented Apr 20, 2020

It wouldn't be a requirement for a shell app to have this file. We could remove the check from expo/expo too, or run it just before tar-ing the archive to make sure expotools generated the macros.

@dsokal
Copy link
Contributor

dsokal commented Apr 20, 2020

I think we should do sth with this file now - either remove it or run the check somewhere else. Otherwise, I assure you that we'll forget about it and it'll cause someone's headache in the future.

@sjchmiela
Copy link
Contributor Author

I will be happy to remove it!

@dsokal
Copy link
Contributor

dsokal commented Apr 20, 2020

This also means that my PR may be reverted - https://github.com/expo/expo/pull/7607/files :D

@sjchmiela sjchmiela merged commit f627e69 into master Apr 20, 2020
@sjchmiela sjchmiela deleted the @sjchmiela/remove-check-dynamic-macros branch April 20, 2020 12:51
sjchmiela added a commit to expo/expo that referenced this pull request Apr 20, 2020
# Why

Follow-up to expo/expo-cli#1933.

# How

Since we won't use `check-dynamic-macros-android.sh` when building standalone apps and there is no other place we use it we can remove it. Let's believe in `expotools`!

# Test Plan

I will cherry-pick that commit to `sdk-37` and push a new image to Android staging.
sjchmiela added a commit to expo/expo that referenced this pull request Apr 20, 2020
# Why

Follow-up to expo/expo-cli#1933.

# How

Since we won't use `check-dynamic-macros-android.sh` when building standalone apps and there is no other place we use it we can remove it. Let's believe in `expotools`!

# Test Plan

I will cherry-pick that commit to `sdk-37` and push a new image to Android staging.
sjchmiela added a commit to expo/turtle that referenced this pull request Apr 20, 2020
### Motivation and Context

See expo/expo-cli#1933 and expo/expo#7919.

### Description

Updates XDL so it includes change introduced in expo/expo-cli#1933.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants