From 1d44472aa660cc1d22cc1374da9e215770578a3d Mon Sep 17 00:00:00 2001 From: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com> Date: Tue, 26 Mar 2024 20:55:22 +0530 Subject: [PATCH] [Feature] Enable Test Networks by default on Dev, E2E and PR builds (#19365) This commit enables Test Networks in Dev, E2E and PR Builds by default and disables in Release/Nightly Builds. This enables in create account or restore account flow. If you upgrade the app from the old build with an existing profile, it will use the last saved (test networks enabled) state of that profile. Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com> --- .env | 1 + .env.e2e | 1 + .env.jenkins | 1 + .env.nightly | 1 + .env.release | 1 + src/status_im/config.cljs | 1 + src/status_im/contexts/profile/config.cljs | 3 ++- status-go-version.json | 6 +++--- 8 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.env b/.env index 094c61e7b7..a423cffd71 100644 --- a/.env +++ b/.env @@ -34,3 +34,4 @@ STICKERS_TEST_ENABLED=1 LOCAL_PAIRING_ENABLED=1 TEST_STATEOFUS=1 FAST_CREATE_COMMUNITY_ENABLED=1 +TEST_NETWORKS_ENABLED=1 diff --git a/.env.e2e b/.env.e2e index 4a14f20199..c08b92044c 100644 --- a/.env.e2e +++ b/.env.e2e @@ -33,3 +33,4 @@ TWO_MINUTES_SYNCING=1 STICKERS_TEST_ENABLED=1 LOCAL_PAIRING_ENABLED=1 FAST_CREATE_COMMUNITY_ENABLED=1 +TEST_NETWORKS_ENABLED=1 diff --git a/.env.jenkins b/.env.jenkins index 68791e1faf..c05ffc7ca2 100644 --- a/.env.jenkins +++ b/.env.jenkins @@ -35,3 +35,4 @@ ENABLE_QUO_PREVIEW=1 STICKERS_TEST_ENABLED=1 LOCAL_PAIRING_ENABLED=1 FAST_CREATE_COMMUNITY_ENABLED=1 +TEST_NETWORKS_ENABLED=1 diff --git a/.env.nightly b/.env.nightly index 99ab68cd3c..867fb262a1 100644 --- a/.env.nightly +++ b/.env.nightly @@ -22,3 +22,4 @@ COMMUNITIES_ENABLED=1 DATABASE_MANAGEMENT_ENABLED=1 DELETE_MESSAGE_ENABLED=1 FAST_CREATE_COMMUNITY_ENABLED=0 +TEST_NETWORKS_ENABLED=0 diff --git a/.env.release b/.env.release index 977342b4af..1d21278c44 100644 --- a/.env.release +++ b/.env.release @@ -20,3 +20,4 @@ MAX_IMAGES_BATCH=1 DELETE_MESSAGE_ENABLED=1 COLLECTIBLES_ENABLED=1 FAST_CREATE_COMMUNITY_ENABLED=0 +TEST_NETWORKS_ENABLED=0 diff --git a/src/status_im/config.cljs b/src/status_im/config.cljs index bd59c5d0bc..b651bff9dd 100644 --- a/src/status_im/config.cljs +++ b/src/status_im/config.cljs @@ -169,3 +169,4 @@ (def community-accounts-selection-enabled? true) (def fetch-messages-enabled? (enabled? (get-config :FETCH_MESSAGES_ENABLED "1"))) +(def test-networks-enabled? (enabled? (get-config :TEST_NETWORKS_ENABLED "0"))) diff --git a/src/status_im/contexts/profile/config.cljs b/src/status_im/contexts/profile/config.cljs index e97bc291d5..267b95fe9b 100644 --- a/src/status_im/contexts/profile/config.cljs +++ b/src/status_im/contexts/profile/config.cljs @@ -44,7 +44,8 @@ :networkId config/default-network-id :currentNetwork config/default-network :wakuV2LightClient false - :previewPrivacy config/blank-preview?}))) + :previewPrivacy config/blank-preview? + :testNetworksEnabled config/test-networks-enabled?}))) (defn strip-file-prefix [path] diff --git a/status-go-version.json b/status-go-version.json index 9123cbda77..e887a6d4e5 100644 --- a/status-go-version.json +++ b/status-go-version.json @@ -3,7 +3,7 @@ "_comment": "Instead use: scripts/update-status-go.sh ", "owner": "status-im", "repo": "status-go", - "version": "v0.177.0", - "commit-sha1": "894eb5758e8ff8f449312f92149f8698058d0fbb", - "src-sha256": "1q0l7ndm6s4kai6zn86mka5fxk2hl60qhlhfy9wh9lrl6a62r15p" + "version": "v0.177.1", + "commit-sha1": "158bd70c8914f27812d3dafb857d4d44256e3ed0", + "src-sha256": "0n94709ba0xiaidnz0zxps3sqssgh2c60bfg4hsy0wam3dy5jndc" }