Skip to content

Commit

Permalink
Revert "Interactive Book Integration Phase 1 | GSoC 2021 (#110)" (#111)
Browse files Browse the repository at this point in the history
This reverts commit a07a8b4.
  • Loading branch information
manjotsidhu authored Jul 21, 2021
1 parent a07a8b4 commit 9c0106e
Show file tree
Hide file tree
Showing 66 changed files with 226 additions and 5,754 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ jobs:
# Get flutter dependencies.
- run: flutter pub get

# Run build runner to generate dart files
- run: flutter packages pub run --no-sound-null-safety build_runner build --delete-conflicting-outputs

# Check for any formatting issues in the code.
- run: flutter format --set-exit-if-changed .

Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- master
- ib
pull_request:

jobs:
Expand All @@ -28,9 +27,6 @@ jobs:
# Get flutter dependencies.
- run: flutter pub get

# Run build runner to generate dart files
- run: flutter packages pub run --no-sound-null-safety build_runner build --delete-conflicting-outputs

# Check for any formatting issues in the code.
- run: flutter format --set-exit-if-changed .

Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ A detailed guide for multiple platforms setup could be find [here](https://flutt
- `flutter pub get` to get all the dependencies.
- `flutter run`

### Generating Files using Build Runner

`flutter packages pub run --no-sound-null-safety build_runner build`

### Android OAuth Config

This project uses flutter version 1.20.2 and hence the support for compile time variables. To use compile time variables pass them in `--dart-defines` as `flutter run --dart-define=VAR_NAME=VAR_VALUE`. Supported `dart-defines` include :
Expand Down
58 changes: 29 additions & 29 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,26 @@ PODS:
- AppAuth/ExternalUserAgent (= 1.4.0)
- AppAuth/Core (1.4.0)
- AppAuth/ExternalUserAgent (1.4.0)
- FBSDKCoreKit (11.0.1):
- FBSDKCoreKit/Core (= 11.0.1)
- FBSDKCoreKit/Core (11.0.1):
- FBSDKCoreKit_Basics (~> 11.0.1)
- FBSDKCoreKit_Basics (11.0.1):
- FBSDKCoreKit_Basics/Basics (= 11.0.1)
- FBSDKCoreKit_Basics/Basics (11.0.1)
- FBSDKLoginKit (11.0.1):
- FBSDKLoginKit/Login (= 11.0.1)
- FBSDKLoginKit/Login (11.0.1):
- FBSDKCoreKit (~> 11.0.1)
- FBSDKCoreKit_Basics (~> 11.0.1)
- FBSDKCoreKit (9.1.0):
- FBSDKCoreKit/Basics (= 9.1.0)
- FBSDKCoreKit/Core (= 9.1.0)
- FBSDKCoreKit/Basics (9.1.0)
- FBSDKCoreKit/Core (9.1.0):
- FBSDKCoreKit/Basics
- FBSDKLoginKit (9.1.0):
- FBSDKLoginKit/Login (= 9.1.0)
- FBSDKLoginKit/Login (9.1.0):
- FBSDKCoreKit (~> 9.1.0)
- Flutter (1.0.0)
- flutter_facebook_auth (2.0.0):
- FBSDKCoreKit (~> 11.0.0)
- FBSDKLoginKit (~> 11.0.0)
- FBSDKCoreKit (~> 9.1.0)
- FBSDKLoginKit (~> 9.1.0)
- Flutter
- flutter_keyboard_visibility (0.0.1):
- Flutter
- flutter_secure_storage (3.3.1):
- Flutter
- flutter_web_auth (0.3.0):
- flutter_web_auth (0.2.4):
- Flutter
- google_sign_in (0.0.1):
- Flutter
Expand All @@ -34,10 +32,14 @@ PODS:
- AppAuth (~> 1.2)
- GTMAppAuth (~> 1.0)
- GTMSessionFetcher/Core (~> 1.1)
- GTMAppAuth (1.2.2):
- GTMAppAuth (1.1.0):
- AppAuth/Core (~> 1.4)
- GTMSessionFetcher/Core (~> 1.5)
- GTMSessionFetcher/Core (1.6.1)
- GTMSessionFetcher (~> 1.4)
- GTMSessionFetcher (1.5.0):
- GTMSessionFetcher/Full (= 1.5.0)
- GTMSessionFetcher/Core (1.5.0)
- GTMSessionFetcher/Full (1.5.0):
- GTMSessionFetcher/Core (= 1.5.0)
- image_picker (0.0.1):
- Flutter
- share (0.0.1):
Expand Down Expand Up @@ -72,7 +74,6 @@ SPEC REPOS:
trunk:
- AppAuth
- FBSDKCoreKit
- FBSDKCoreKit_Basics
- FBSDKLoginKit
- GoogleSignIn
- GTMAppAuth
Expand Down Expand Up @@ -108,25 +109,24 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
AppAuth: 31bcec809a638d7bd2f86ea8a52bd45f6e81e7c7
FBSDKCoreKit: 38c9e29a3f1436362acacff6486d3a28628c288f
FBSDKCoreKit_Basics: 06780a4a12e16596bde8406add02c6aa1bf38616
FBSDKLoginKit: 8243e04c590c38b85c69fcf09d1234514d2475c3
FBSDKCoreKit: a00fe2efd780c195a5e09201bf51c56106245b40
FBSDKLoginKit: d98498c598ec09de657385a9349a1f21119b7f86
Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c
flutter_facebook_auth: abc044072738b7baa90d80583dabdb1211614f0d
flutter_facebook_auth: 4b170c07b7fce791497093fcc3f134fb215f3f07
flutter_keyboard_visibility: 0339d06371254c3eb25eeb90ba8d17dca8f9c069
flutter_secure_storage: 7953c38a04c3fdbb00571bcd87d8e3b5ceb9daec
flutter_web_auth: ede89bf8107b021cf16e769756d267d84d24e88b
flutter_web_auth: b7465086188ce4413d7e8b23622583784b9007a7
google_sign_in: 6bd214b9c154f881422f5fe27b66aaa7bbd580cc
GoogleSignIn: 7137d297ddc022a7e0aa4619c86d72c909fa7213
GTMAppAuth: ad5c2b70b9a8689e1a04033c9369c4915bfcbe89
GTMSessionFetcher: 36689134877faeb055b27dfa4ccc9ceaa42e029e
image_picker: e06f7a68f000bd36f552c1847e33cda96ed31f1f
GTMAppAuth: 197a8dabfea5d665224aa00d17f164fc2248dab9
GTMSessionFetcher: b3503b20a988c4e20cc189aa798fd18220133f52
image_picker: 9c3312491f862b28d21ecd8fdf0ee14e601b3f09
share: 0b2c3e82132f5888bccca3351c504d0003b3b410
shared_preferences: af6bfa751691cdc24be3045c43ec037377ada40d
url_launcher: 6fef411d543ceb26efce54b05a0a40bfd74cbbef
video_player: 9cc823b1d9da7e8427ee591e8438bfbcde500e6e
wakelock: d0fc7c864128eac40eba1617cb5264d9c940b46f
webview_flutter: 3603125dfd3bcbc9d8d418c3f80aeecf331c068b
wakelock: bfc7955c418d0db797614075aabbc58a39ab5107
webview_flutter: d2b4d6c66968ad042ad94cbb791f5b72b4678a96

PODFILE CHECKSUM: a75497545d4391e2d394c3668e20cfb1c2bbd4aa

Expand Down
2 changes: 0 additions & 2 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/AppAuth/AppAuth.framework",
"${BUILT_PRODUCTS_DIR}/FBSDKCoreKit/FBSDKCoreKit.framework",
"${BUILT_PRODUCTS_DIR}/FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.framework",
"${BUILT_PRODUCTS_DIR}/FBSDKLoginKit/FBSDKLoginKit.framework",
"${BUILT_PRODUCTS_DIR}/GTMAppAuth/GTMAppAuth.framework",
"${BUILT_PRODUCTS_DIR}/GTMSessionFetcher/GTMSessionFetcher.framework",
Expand All @@ -303,7 +302,6 @@
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AppAuth.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBSDKCoreKit.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBSDKCoreKit_Basics.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBSDKLoginKit.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GTMAppAuth.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GTMSessionFetcher.framework",
Expand Down
10 changes: 0 additions & 10 deletions lib/config/environment_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,6 @@ class EnvironmentConfig {
defaultValue: 'https://circuitverse.org/api/v1',
);

static const String IB_API_BASE_URL = String.fromEnvironment(
'IB_API_BASE_URL',
defaultValue: 'https://learn.circuitverse.org/_api/pages',
);

static const String IB_BASE_URL = String.fromEnvironment(
'IB_BASE_URL',
defaultValue: 'https://learn.circuitverse.org',
);

// GITHUB OAUTH ENV VARIABLES
static const String GITHUB_OAUTH_CLIENT_ID = String.fromEnvironment(
'GITHUB_OAUTH_CLIENT_ID',
Expand Down
2 changes: 0 additions & 2 deletions lib/cv_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import 'package:flutter/material.dart';

class CVTheme {
CVTheme._();

static Color textFieldLabelColor(context) {
return Theme.of(context).brightness == Brightness.dark
? Colors.grey[300]
Expand Down Expand Up @@ -71,7 +70,6 @@ class CVTheme {
static const Color bgCard = Color.fromRGBO(255, 255, 255, 0.9);
static const Color bgCardDark = Color.fromRGBO(97, 97, 97, 1);
static const Color htmlEditorBg = Color.fromRGBO(245, 245, 245, 1);

static const OutlineInputBorder primaryDarkOutlineBorder = OutlineInputBorder(
borderRadius: BorderRadius.zero,
borderSide: BorderSide(color: CVTheme.primaryColorDark),
Expand Down
76 changes: 0 additions & 76 deletions lib/ib_theme.dart

This file was deleted.

19 changes: 0 additions & 19 deletions lib/locator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ import 'package:mobile_app/services/API/fcm_api.dart';
import 'package:mobile_app/services/API/grades_api.dart';
import 'package:mobile_app/services/API/group_members_api.dart';
import 'package:mobile_app/services/API/groups_api.dart';
import 'package:mobile_app/services/API/ib_api.dart';
import 'package:mobile_app/services/API/projects_api.dart';
import 'package:mobile_app/services/API/users_api.dart';
import 'package:mobile_app/services/API/country_institute_api.dart';
import 'package:mobile_app/services/database_service.dart';
import 'package:mobile_app/services/dialog_service.dart';
import 'package:mobile_app/services/API/contributors_api.dart';
import 'package:mobile_app/services/ib_engine_service.dart';
import 'package:mobile_app/services/local_storage_service.dart';
import 'package:mobile_app/viewmodels/authentication/auth_options_viewmodel.dart';
import 'package:mobile_app/viewmodels/authentication/forgot_password_viewmodel.dart';
Expand All @@ -27,8 +24,6 @@ import 'package:mobile_app/viewmodels/groups/my_groups_viewmodel.dart';
import 'package:mobile_app/viewmodels/groups/new_group_viewmodel.dart';
import 'package:mobile_app/viewmodels/groups/update_assignment_viewmodel.dart';
import 'package:mobile_app/viewmodels/home/home_viewmodel.dart';
import 'package:mobile_app/viewmodels/ib/ib_landing_viewmodel.dart';
import 'package:mobile_app/viewmodels/ib/ib_page_viewmodel.dart';
import 'package:mobile_app/viewmodels/profile/edit_profile_viewmodel.dart';
import 'package:mobile_app/viewmodels/profile/profile_viewmodel.dart';
import 'package:mobile_app/viewmodels/profile/user_favourites_viewmodel.dart';
Expand All @@ -42,16 +37,10 @@ import 'package:mobile_app/viewmodels/about/about_viewmodel.dart';
GetIt locator = GetIt.instance;

Future<void> setupLocator() async {
// Dialog Service
locator.registerLazySingleton(() => DialogService());

// Local Storage Service
var localStorageService = await LocalStorageService.getInstance();
locator.registerSingleton<LocalStorageService>(localStorageService);

// Database Service
locator.registerLazySingleton<DatabaseService>(() => DatabaseServiceImpl());

// API Services
locator.registerLazySingleton<ContributorsApi>(() => HttpContributorsApi());
locator.registerLazySingleton<UsersApi>(() => HttpUsersApi());
Expand All @@ -64,10 +53,6 @@ Future<void> setupLocator() async {
locator.registerLazySingleton<FCMApi>(() => HttpFCMApi());
locator.registerLazySingleton<CountryInstituteAPI>(
() => HttpCountryInstituteAPI());
locator.registerLazySingleton<IbApi>(() => HttpIbApi());

// Interactive Book Engine Service
locator.registerLazySingleton<IbEngineService>(() => IbEngineServiceImpl());

// Startup ViewModel
locator.registerFactory(() => StartUpViewModel());
Expand Down Expand Up @@ -104,8 +89,4 @@ Future<void> setupLocator() async {
locator.registerFactory(() => AddAssignmentViewModel());
locator.registerFactory(() => UpdateAssignmentViewModel());
locator.registerFactory(() => AssignmentDetailsViewModel());

// Interactive Book ViewModels
locator.registerFactory(() => IbLandingViewModel());
locator.registerFactory(() => IbPageViewModel());
}
4 changes: 0 additions & 4 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import 'package:get/get.dart';
import 'package:mobile_app/cv_theme.dart';
import 'package:mobile_app/locale/locales.dart';
import 'package:mobile_app/locator.dart';
import 'package:mobile_app/services/database_service.dart';
import 'package:mobile_app/utils/router.dart';
import 'package:theme_provider/theme_provider.dart';
import 'ui/views/startup_view.dart';
Expand All @@ -17,9 +16,6 @@ Future<void> main() async {
// Register all the models and services before the app starts
await setupLocator();

// Init Hive
await locator<DatabaseService>().init();

runApp(CircuitVerseMobile());
}

Expand Down
2 changes: 1 addition & 1 deletion lib/models/failure_model.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Failure implements Exception {
class Failure {
final String message;

Failure(this.message);
Expand Down
27 changes: 0 additions & 27 deletions lib/models/ib/ib_chapter.dart

This file was deleted.

17 changes: 0 additions & 17 deletions lib/models/ib/ib_content.dart

This file was deleted.

Loading

0 comments on commit 9c0106e

Please sign in to comment.