Skip to content

Commit

Permalink
fix: set correct app link
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesvedder committed Aug 10, 2022
1 parent 62a6db9 commit da56b36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions designer_v2/lib/features/study/study_test_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import 'package:studyu_core/core.dart';
import 'package:studyu_designer_v2/features/study/study_test_scaffold.dart';
import 'package:studyu_designer_v2/features/study/study_test_state.dart';
import 'package:studyu_designer_v2/repositories/auth_repository.dart';
import 'package:studyu_flutter_common/studyu_flutter_common.dart';

abstract class PlatformController {
final String studyId;
Expand All @@ -27,10 +28,7 @@ abstract class PlatformController {
}

class StudyTestController extends StateNotifier<StudyTestState> {
String previewSrc = 'https://studyu-designer-v2--pr156-dev-designer-v2-inte-kf9qyo2y.web.app';
// todo change on merge
//String previewSrc = 'https://studyu-app-v2.web.app/';
// String previewSrc = 'http://localhost:12345/';
String previewSrc = appDeepLink;

final IAuthRepository authRepository;
late PlatformController platformController;
Expand Down
1 change: 1 addition & 0 deletions flutter_common/lib/src/utils/env_loader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ String envFilePath() {
return env.isNotEmpty ? '$envsAssetPath/$env' : '$envsAssetPath/.env';
}

const appDeepLink = 'https://studyu-app-v2--pr89-dev-designer-v2-ji5p2c8p.web.app';
const designerDeepLink = 'https://studyu-designer-v2--pr156-dev-designer-v2-inte-kf9qyo2y.web.app';

// GoTrue redirectTo strips /#/ from URL, therefore we need to use the default set in supabase
Expand Down

0 comments on commit da56b36

Please sign in to comment.