Skip to content

Commit b8a2da4

Browse files
committed
Merge branch 'test/fix-curriculum-workflow' into test/release-v9-certs
2 parents e1f8ef2 + c48be50 commit b8a2da4

File tree

15 files changed

+163
-236
lines changed

15 files changed

+163
-236
lines changed

mobile-app/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if (keystorePropertiesFile.exists()) {
3535
android {
3636
namespace 'org.freecodecamp'
3737
compileSdkVersion flutter.compileSdkVersion
38-
ndkVersion flutter.ndkVersion
38+
ndkVersion = "27.0.12077973"
3939

4040
sourceSets {
4141
main.java.srcDirs += 'src/main/kotlin'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Failed tests:
2+

mobile-app/integration_test_runner.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ brew install applesimutils
118118
'test',
119119
'--no-pub',
120120
'--reporter=expanded',
121+
'--ignore-timeouts',
121122
if (isMacOS) ...[
122123
'-d',
123124
bootedDeviceId,

mobile-app/lib/app/app.router.dart

Lines changed: 57 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mobile-app/lib/models/learn/curriculum_model.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const chapterBasedSuperBlocks = ['full-stack-developer'];
1+
import 'package:freecodecamp/ui/views/learn/utils/learn_globals.dart';
22

33
enum SuperBlocks {
44
respWebDesignV9('responsive-web-design-v9'),
@@ -320,7 +320,8 @@ class Chapter {
320320

321321
enum ModuleType {
322322
review('review'),
323-
exam('exam');
323+
exam('exam'),
324+
certProject('cert-project');
324325

325326
static ModuleType fromValue(String value) {
326327
return ModuleType.values.firstWhere(

mobile-app/lib/models/main/user_model.dart

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ class FccUserModel {
3636

3737
final bool emailVerified;
3838
final bool isEmailVerified;
39-
final bool acceptedPrivacyTerms;
40-
final bool sendQuincyEmail;
39+
final bool? sendQuincyEmail;
4140

4241
final bool isCheater;
4342
final bool isDonating;
@@ -99,8 +98,7 @@ class FccUserModel {
9998
this.about,
10099
required this.emailVerified,
101100
required this.isEmailVerified,
102-
required this.acceptedPrivacyTerms,
103-
required this.sendQuincyEmail,
101+
this.sendQuincyEmail,
104102
required this.isCheater,
105103
required this.isDonating,
106104
required this.isHonest,
@@ -154,7 +152,6 @@ class FccUserModel {
154152
about: data['about'],
155153
emailVerified: data['emailVerified'],
156154
isEmailVerified: data['isEmailVerified'],
157-
acceptedPrivacyTerms: data['acceptedPrivacyTerms'],
158155
sendQuincyEmail: data['sendQuincyEmail'],
159156
isCheater: data['isCheater'],
160157
isDonating: data['isDonating'] ?? false,

mobile-app/lib/service/authentication/authentication_service.dart

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import 'package:freecodecamp/app/app.router.dart';
1212
import 'package:freecodecamp/extensions/i18n_extension.dart';
1313
import 'package:freecodecamp/models/main/user_model.dart';
1414
import 'package:freecodecamp/service/dio_service.dart';
15-
import 'package:freecodecamp/ui/views/auth/privacy_view.dart';
1615
import 'package:stacked_services/stacked_services.dart';
1716
import 'package:url_launcher/url_launcher.dart';
1817

@@ -318,33 +317,6 @@ class AuthenticationService {
318317
return false;
319318
}
320319

321-
final user = await userModel;
322-
323-
if (user != null && user.acceptedPrivacyTerms == false) {
324-
bool? quincyEmails = await Navigator.push(
325-
context,
326-
MaterialPageRoute(
327-
builder: (context) => const PrivacyView(),
328-
settings: const RouteSettings(
329-
name: '/new-user-accept-privacy',
330-
),
331-
),
332-
);
333-
334-
await _dio.put(
335-
'$baseApiURL/update-privacy-terms',
336-
data: {
337-
'quincyEmails': quincyEmails ?? false,
338-
},
339-
options: Options(
340-
headers: {
341-
'CSRF-Token': _csrfToken,
342-
'Cookie': 'jwt_access_token=$_jwtAccessToken; _csrf=$_csrf',
343-
},
344-
),
345-
);
346-
}
347-
348320
await auth0.credentialsManager.clearCredentials();
349321
// ignore: unnecessary_null_comparison
350322
if (res != null) {

mobile-app/lib/ui/views/auth/privacy_view.dart

Lines changed: 0 additions & 181 deletions
This file was deleted.

0 commit comments

Comments
 (0)