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

Remove Animated and Common symlinks #3473

Merged
merged 2 commits into from
Aug 23, 2022
Merged

Conversation

tomekzaw
Copy link
Member

@tomekzaw tomekzaw commented Aug 12, 2022

Description

This PR removes two symlinks:

  1. Example/Animatedsrc
  2. android/src/main/CommonCommon

These symlinks really annoyed everyone with duplicating the search results in their favourite text editor.

The Example app works fine after I removed the first symlink. 🤷‍♂️

The purpose of the second symlink was probably to compile C++ sources from Common directory along with these from android/src/main/cpp, but I'm not sure.

The PR has been tested both on Example and FabricExample app as well as fresh React Native 0.69.4 app.

After the changes, both cpp directories (Android-only and common) are properly recognized by Android Studio:

Android Studio

Debugging C++ code from Common directory in Android Studio also works correctly:

Zrzut ekranu 2022-08-12 o 18 25 21

Android Studio version: Chipmunk | 2021.2.1 Patch 1

Changes

  • Removed symlink Example/Animatedsrc
  • Removed symlink android/src/main/CommonCommon

Test code and steps to reproduce

Checklist

  • Included code example that can be used to test this change
  • Updated TS types
  • Added TS types tests
  • Added unit / integration tests
  • Updated documentation
  • Ensured that CI passes

@tomekzaw tomekzaw changed the title Remove symlink to Common directory in android/src/main Remove symlinks to Animated and Common Aug 12, 2022
@tomekzaw tomekzaw changed the title Remove symlinks to Animated and Common Remove Animated and Common symlinks Aug 12, 2022
@piaskowyk piaskowyk merged commit 66ea6ef into main Aug 23, 2022
@piaskowyk piaskowyk deleted the @tomekzaw/remove-common-symlink branch August 23, 2022 08:51
piaskowyk pushed a commit that referenced this pull request Oct 5, 2022
This PR removes two symlinks:
1. `Example/Animated` → `src`
2. `android/src/main/Common` → `Common`

These symlinks really annoyed everyone with duplicating the search results in their favourite text editor.

The Example app works fine after I removed the first symlink. 🤷‍♂️

The purpose of the second symlink was probably to compile C++ sources from `Common` directory along with these from `android/src/main/cpp`, but I'm not sure.

The PR has been tested both on Example and FabricExample app as well as fresh React Native 0.69.4 app.

After the changes, both `cpp` directories (Android-only and common) are properly recognized by Android Studio:

<img width="529" alt="Android Studio" src="https://user-images.githubusercontent.com/20516055/184398890-8fcb2c99-57cb-4bfe-a5e1-6021a65cd9b2.png">

Debugging C++ code from `Common` directory in Android Studio also works correctly:

<img width="1216" alt="Zrzut ekranu 2022-08-12 o 18 25 21" src="https://user-images.githubusercontent.com/20516055/184401616-f357ce8a-0ac3-43bf-b389-ecc5e95d741b.png">

Android Studio version: Chipmunk | 2021.2.1 Patch 1
fluiddot pushed a commit to wordpress-mobile/react-native-reanimated that referenced this pull request Jun 5, 2023
## Description

This PR removes two symlinks:
1. `Example/Animated` &rarr; `src`
2. `android/src/main/Common` &rarr; `Common`

These symlinks really annoyed everyone with duplicating the search results in their favourite text editor.

The Example app works fine after I removed the first symlink. 🤷‍♂️ 

The purpose of the second symlink was probably to compile C++ sources from `Common` directory along with these from `android/src/main/cpp`, but I'm not sure.

The PR has been tested both on Example and FabricExample app as well as fresh React Native 0.69.4 app.

After the changes, both `cpp` directories (Android-only and common) are properly recognized by Android Studio:

<img width="529" alt="Android Studio" src="https://user-images.githubusercontent.com/20516055/184398890-8fcb2c99-57cb-4bfe-a5e1-6021a65cd9b2.png">

Debugging C++ code from `Common` directory in Android Studio also works correctly:

<img width="1216" alt="Zrzut ekranu 2022-08-12 o 18 25 21" src="https://user-images.githubusercontent.com/20516055/184401616-f357ce8a-0ac3-43bf-b389-ecc5e95d741b.png">

Android Studio version: Chipmunk | 2021.2.1 Patch 1
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.

None yet

2 participants