From 63365dd7d0834ff62b6348e031cc7d919ac93dbf Mon Sep 17 00:00:00 2001 From: Pari Work Temp Date: Mon, 26 Aug 2024 15:48:25 -0500 Subject: [PATCH 1/6] remove mobile files --- hooks/post_gen_project.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index ab6d66362..feaad2cf2 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -82,6 +82,20 @@ 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") From 9ad48a1c410cca9e92e00a5ce4e266e63fed29fe Mon Sep 17 00:00:00 2001 From: Pari Work Temp Date: Wed, 28 Aug 2024 08:03:07 -0500 Subject: [PATCH 2/6] fix black --- hooks/post_gen_project.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index feaad2cf2..3054f7ec1 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -84,17 +84,17 @@ def remove_mobile_client_files(client): def remove_special_mobile_files(): file_names = [ - join("scripts/setup_mobile_config.sh"), + join("scripts/setup_mobile_config.sh") ] directories = [ - join("resources") - + 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"): From 5a77129e552d38f6c00b64ebefc997c1b3a8514a Mon Sep 17 00:00:00 2001 From: Pari Work Temp Date: Wed, 28 Aug 2024 08:16:26 -0500 Subject: [PATCH 3/6] remove files --- hooks/post_gen_project.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index 3054f7ec1..94be98f94 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -87,7 +87,7 @@ def remove_special_mobile_files(): join("scripts/setup_mobile_config.sh") ] directories = [ - join("resources") + join("resources") ] for file in file_names: if exists(file): @@ -181,6 +181,7 @@ def main(): move_mobile_client_to_root("react-native") else: remove_expo_yaml_files() + remove_special_mobile_files() clean_up_clients_folder() From cc7205201c8814400904296dc776be508fd83a97 Mon Sep 17 00:00:00 2001 From: Pari Work Temp Date: Wed, 28 Aug 2024 08:28:15 -0500 Subject: [PATCH 4/6] updated code --- hooks/post_gen_project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index 1023eab2b..5742c69ef 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -94,7 +94,7 @@ def remove_special_mobile_files(): remove(file) for directory in directories: rmtree(directory) - + def move_mobile_client_to_root(client): if exists("mobile"): @@ -178,7 +178,7 @@ def main(): move_mobile_client_to_root("react-native") else: remove_expo_yaml_files() - remove_special_mobile_files() + remove_special_mobile_files() clean_up_clients_folder() From 83644694e1757f73773f53a0990e4245f270eccb Mon Sep 17 00:00:00 2001 From: Pari Work Temp Date: Wed, 28 Aug 2024 09:16:10 -0500 Subject: [PATCH 5/6] black --- hooks/post_gen_project.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index 5742c69ef..96586207d 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -83,12 +83,8 @@ def remove_mobile_client_files(client): def remove_special_mobile_files(): - file_names = [ - join("scripts/setup_mobile_config.sh") - ] - directories = [ - join("resources") - ] + file_names = [join("scripts/setup_mobile_config.sh")] + directories = [join("resources")] for file in file_names: if exists(file): remove(file) From 2371fc616dbab6262d1aae841f8fb7cef34e0a0c Mon Sep 17 00:00:00 2001 From: Pari Work Temp Date: Fri, 30 Aug 2024 11:23:59 -0500 Subject: [PATCH 6/6] updated to include if --- .github/workflows/mobile.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/mobile.yml b/.github/workflows/mobile.yml index 16a54cc2b..11d5ac676 100644 --- a/.github/workflows/mobile.yml +++ b/.github/workflows/mobile.yml @@ -47,6 +47,7 @@ jobs: publish: + if: needs.configuremobile.outputs.BUILD_MOBILE_APP != 0 needs: configuremobile runs-on: ubuntu-latest steps: