-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: dont record participant progress for launched studies in test mode
- Loading branch information
1 parent
1a09913
commit 2dc6a8c
Showing
16 changed files
with
71 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
import 'package:supabase/supabase.dart'; | ||
|
||
late SupabaseClient client; | ||
late String supabaseUrl; | ||
late String supabaseAnonKey; | ||
late String? appUrl; | ||
late String? projectGeneratorUrl; | ||
late final SupabaseClient client; | ||
late final String supabaseUrl; | ||
late final String supabaseAnonKey; | ||
late final String? appUrl; | ||
late final String? projectGeneratorUrl; | ||
late final String appDeepLink; | ||
late final String designerDeepLink; | ||
late final String authRedirectToUrl; | ||
|
||
void setEnv( | ||
String envSupabaseUrl, | ||
String envSupabaseAnonKey, { | ||
String? envAppUrl, | ||
String? envProjectGeneratorUrl, | ||
SupabaseClient? supabaseClient, | ||
String? envAppDeepLink, | ||
String? envDesignerDeepLink, | ||
}) { | ||
supabaseUrl = envSupabaseUrl; | ||
supabaseAnonKey = envSupabaseAnonKey; | ||
projectGeneratorUrl = envProjectGeneratorUrl; | ||
appUrl = envAppUrl; | ||
client = supabaseClient ?? SupabaseClient(supabaseUrl, supabaseAnonKey); | ||
appDeepLink = envAppDeepLink ?? ''; | ||
designerDeepLink = envDesignerDeepLink ?? ''; | ||
authRedirectToUrl = designerDeepLink; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
STUDYU_SUPABASE_URL=https://efeapuvwaxtxnlkzlajv.supabase.co | ||
STUDYU_SUPABASE_PUBLIC_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYyNTUwODMyOCwiZXhwIjoxOTQxMDg0MzI4fQ.PUirsx5Zzhj3akaStc5Djid0aAVza3ELoZ5XUTqM91A | ||
STUDYU_PROJECT_GENERATOR_URL=https://studyu-project-generator-2zro3rzera-ew.a.run.app | ||
STUDYU_APP_URL="https://studyu-app.web.app/#/" | ||
STUDYU_APP_URL="https://studyu-app.web.app/#/" | ||
STUDYU_APP_DEEPLINK_URL= | ||
STUDYU_DESIGNER_DEEPLINK_URL= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
STUDYU_SUPABASE_URL=https://efeapuvwaxtxnlkzlajv.supabase.co | ||
STUDYU_SUPABASE_PUBLIC_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYyNTUwODMyOCwiZXhwIjoxOTQxMDg0MzI4fQ.PUirsx5Zzhj3akaStc5Djid0aAVza3ELoZ5XUTqM91A | ||
STUDYU_PROJECT_GENERATOR_URL=http://localhost:8080 | ||
STUDYU_APP_URL="http://localhost:3001/#/" | ||
STUDYU_APP_URL="http://localhost:3001/#/" | ||
STUDYU_APP_DEEPLINK_URL=http://localhost:3001/#/ | ||
STUDYU_DESIGNER_DEEPLINK_URL= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
STUDYU_SUPABASE_URL=https://rzxnjlfzycwnaayubbeo.supabase.co | ||
STUDYU_SUPABASE_PUBLIC_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InJ6eG5qbGZ6eWN3bmFheXViYmVvIiwicm9sZSI6ImFub24iLCJpYXQiOjE2NTY1MTM1MTcsImV4cCI6MTk3MjA4OTUxN30.OGqe_zCQIUImHc5YwN5S0PljMTdhT4Jtb8VK9eGtE-4 | ||
STUDYU_PROJECT_GENERATOR_URL=https://studyu-project-generator-2zro3rzera-ew.a.run.app | ||
STUDYU_APP_URL="https://studyu-app.web.app/#/" | ||
STUDYU_APP_URL="https://app2.studyu.health/" | ||
STUDYU_APP_DEEPLINK_URL=https://app2.studyu.health/ | ||
STUDYU_DESIGNER_DEEPLINK_URL=https://designer2.studyu.health/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters