Skip to content

Commit

Permalink
Upon generation remove mobile files (#345)
Browse files Browse the repository at this point in the history
Co-authored-by: Pari Work Temp <[email protected]>
Co-authored-by: William Huster <[email protected]>
  • Loading branch information
3 people authored Sep 16, 2024
1 parent 8ac3f59 commit a16b513
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/mobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
publish:
if: needs.configuremobile.outputs.BUILD_MOBILE_APP != 0
needs: configuremobile
runs-on: ubuntu-latest
steps:
Expand Down
11 changes: 11 additions & 0 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@ def remove_mobile_client_files(client):
rmtree(join(mobile_clients_path, client))


def remove_special_mobile_files():
file_names = [join("scripts/setup_mobile_config.sh")]
directories = [join("resources")]
for file in file_names:
if exists(file):
remove(file)
for directory in directories:
rmtree(directory)


def move_mobile_client_to_root(client):
if exists("mobile"):
rmtree("mobile")
Expand Down Expand Up @@ -164,6 +174,7 @@ def main():
move_mobile_client_to_root("react-native")
else:
remove_expo_yaml_files()
remove_special_mobile_files()

clean_up_clients_folder()

Expand Down

0 comments on commit a16b513

Please sign in to comment.