Skip to content

Commit 30cb68d

Browse files
authored
Remove register screen to avoid issue with app stores (#204)
Also: * Update README * Remove unused localization messages * Remove unused `ConfigBase.linkTos`
1 parent f0f8917 commit 30cb68d

File tree

13 files changed

+23
-507
lines changed

13 files changed

+23
-507
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ upload the apps to GCS (automatically deleted after 30 days).
1313

1414
## Features
1515

16-
- Supported platforms:
17-
- Android
18-
- iOS
19-
- Linux
20-
- macOS
21-
- Windows
16+
- Supported platforms: Android, iOS, Linux, macOS, Windows
2217
- State management with [provider](https://pub.dev/packages/provider)
2318
- Apple login via [sign_in_with_apple](https://pub.dev/packages/sign_in_with_apple)
2419
- Facebook login via [flutter_facebook_auth](https://pub.dev/packages/flutter_facebook_auth)

lib/config.encrypted.dart

-69 Bytes
Binary file not shown.

lib/l10n/intl_en.arb

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,6 @@
137137
"method": {}
138138
}
139139
},
140-
"loginErrorNoAccessTokenAutoRegister": "Cannot register new user account.",
141-
"@loginErrorNoAccessTokenAutoRegister": {
142-
"type": "text",
143-
"placeholders": {}
144-
},
145140
"loginErrorPasswordIsEmpty": "Please enter your password to login",
146141
"@loginErrorPasswordIsEmpty": {
147142
"type": "text",
@@ -384,45 +379,6 @@
384379
"type": "text",
385380
"placeholders": {}
386381
},
387-
"register": "Register",
388-
"@register": {
389-
"type": "text",
390-
"placeholders": {}
391-
},
392-
"registerAgreeCheckboxHtml": "I agree to the <a href=\"{terms}\">terms</a> and <a href=\"{privacyPolicy}\">privacy policy</a>.",
393-
"@registerAgreeCheckboxHtml": {
394-
"type": "text",
395-
"placeholders": {
396-
"privacyPolicy": {},
397-
"terms": {}
398-
}
399-
},
400-
"registerEmail": "Email",
401-
"@registerEmail": {
402-
"description": "Label text for email field",
403-
"type": "text",
404-
"placeholders": {}
405-
},
406-
"registerErrorEmailIsEmpty": "Email cannot be empty",
407-
"@registerErrorEmailIsEmpty": {
408-
"type": "text",
409-
"placeholders": {}
410-
},
411-
"registerErrorNoAccessToken": "Cannot register new user account.",
412-
"@registerErrorNoAccessToken": {
413-
"type": "text",
414-
"placeholders": {}
415-
},
416-
"registerErrorPasswordIsEmpty": "Password cannot be empty",
417-
"@registerErrorPasswordIsEmpty": {
418-
"type": "text",
419-
"placeholders": {}
420-
},
421-
"registerErrorUsernameIsEmpty": "Username cannot be empty",
422-
"@registerErrorUsernameIsEmpty": {
423-
"type": "text",
424-
"placeholders": {}
425-
},
426382
"search": "Search",
427383
"@search": {
428384
"type": "text",

lib/l10n/intl_messages.arb

Lines changed: 1 addition & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@@last_modified": "2023-01-04T13:39:35.279188",
2+
"@@last_modified": "2023-08-13T08:41:53.802790",
33
"appTitle": "tinhte.vn Demo",
44
"@appTitle": {
55
"type": "text",
@@ -172,12 +172,6 @@
172172
"method": {}
173173
}
174174
},
175-
"loginErrorNoAccessTokenAutoRegister": "Cannot register new user account.",
176-
"@loginErrorNoAccessTokenAutoRegister": {
177-
"type": "text",
178-
"placeholders_order": [],
179-
"placeholders": {}
180-
},
181175
"loginErrorPasswordIsEmpty": "Please enter your password to login",
182176
"@loginErrorPasswordIsEmpty": {
183177
"type": "text",
@@ -474,55 +468,6 @@
474468
"placeholders_order": [],
475469
"placeholders": {}
476470
},
477-
"register": "Register",
478-
"@register": {
479-
"type": "text",
480-
"placeholders_order": [],
481-
"placeholders": {}
482-
},
483-
"registerAgreeCheckboxHtml": "I agree to the <a href=\"{terms}\">terms</a> and <a href=\"{privacyPolicy}\">privacy policy</a>.",
484-
"@registerAgreeCheckboxHtml": {
485-
"type": "text",
486-
"placeholders_order": [
487-
"privacyPolicy",
488-
"terms"
489-
],
490-
"placeholders": {
491-
"privacyPolicy": {},
492-
"terms": {}
493-
}
494-
},
495-
"registerEmail": "Email",
496-
"@registerEmail": {
497-
"description": "Label text for email field",
498-
"type": "text",
499-
"placeholders_order": [],
500-
"placeholders": {}
501-
},
502-
"registerErrorEmailIsEmpty": "Email cannot be empty",
503-
"@registerErrorEmailIsEmpty": {
504-
"type": "text",
505-
"placeholders_order": [],
506-
"placeholders": {}
507-
},
508-
"registerErrorNoAccessToken": "Cannot register new user account.",
509-
"@registerErrorNoAccessToken": {
510-
"type": "text",
511-
"placeholders_order": [],
512-
"placeholders": {}
513-
},
514-
"registerErrorPasswordIsEmpty": "Password cannot be empty",
515-
"@registerErrorPasswordIsEmpty": {
516-
"type": "text",
517-
"placeholders_order": [],
518-
"placeholders": {}
519-
},
520-
"registerErrorUsernameIsEmpty": "Username cannot be empty",
521-
"@registerErrorUsernameIsEmpty": {
522-
"type": "text",
523-
"placeholders_order": [],
524-
"placeholders": {}
525-
},
526471
"search": "Search",
527472
"@search": {
528473
"type": "text",

lib/l10n/intl_vi.arb

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,6 @@
137137
"method": {}
138138
}
139139
},
140-
"loginErrorNoAccessTokenAutoRegister": "Không thể đăng ký mới.",
141-
"@loginErrorNoAccessTokenAutoRegister": {
142-
"type": "text",
143-
"placeholders": {}
144-
},
145140
"loginErrorPasswordIsEmpty": "Xin vui lòng nhập mật khẩu để đăng nhập",
146141
"@loginErrorPasswordIsEmpty": {
147142
"type": "text",
@@ -384,45 +379,6 @@
384379
"type": "text",
385380
"placeholders": {}
386381
},
387-
"register": "Đăng ký",
388-
"@register": {
389-
"type": "text",
390-
"placeholders": {}
391-
},
392-
"registerAgreeCheckboxHtml": "Tôi đồng ý <a href=\"{terms}\">các điều khoản</a> và <a href=\"{privacyPolicy}\">chính sách quyền riêng tư</a>.",
393-
"@registerAgreeCheckboxHtml": {
394-
"type": "text",
395-
"placeholders": {
396-
"privacyPolicy": {},
397-
"terms": {}
398-
}
399-
},
400-
"registerEmail": "Email",
401-
"@registerEmail": {
402-
"description": "Label text for email field",
403-
"type": "text",
404-
"placeholders": {}
405-
},
406-
"registerErrorEmailIsEmpty": "Xin vui lòng nhập email để đăng ký",
407-
"@registerErrorEmailIsEmpty": {
408-
"type": "text",
409-
"placeholders": {}
410-
},
411-
"registerErrorNoAccessToken": "Không thể đăng ký tài khoản mới.",
412-
"@registerErrorNoAccessToken": {
413-
"type": "text",
414-
"placeholders": {}
415-
},
416-
"registerErrorPasswordIsEmpty": "Xin vui lòng nhập mật khẩu để đăng ký",
417-
"@registerErrorPasswordIsEmpty": {
418-
"type": "text",
419-
"placeholders": {}
420-
},
421-
"registerErrorUsernameIsEmpty": "Xin vui lòng nhập tên đăng nhập để đăng ký",
422-
"@registerErrorUsernameIsEmpty": {
423-
"type": "text",
424-
"placeholders": {}
425-
},
426382
"search": "Tìm kiếm",
427383
"@search": {
428384
"type": "text",

lib/l10n/messages_en.dart

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,11 @@ class MessageLookup extends MessageLookupByLibrary {
4141

4242
static m10(number) => "Tap to load ${number} hidden replies...";
4343

44-
static m11(privacyPolicy, terms) => "I agree to the <a href=\"${terms}\">terms</a> and <a href=\"${privacyPolicy}\">privacy policy</a>.";
44+
static m11(query) => "Submit to search for \'${query}\'";
4545

46-
static m12(query) => "Submit to search for \'${query}\'";
46+
static m12(username) => " by user \'${username}\'";
4747

48-
static m13(username) => " by user \'${username}\'";
49-
50-
static m14(forumTitle) => " in forum \'${forumTitle}\'";
48+
static m13(forumTitle) => " in forum \'${forumTitle}\'";
5149

5250
final messages = _notInlinedMessages(_notInlinedMessages);
5351
static Map<String, Function> _notInlinedMessages(_) => <String, Function> {
@@ -75,7 +73,6 @@ class MessageLookup extends MessageLookupByLibrary {
7573
"loginAssociateEnterPassword" : MessageLookupByLibrary.simpleMessage("An existing account has been found, please enter your password to associate it for future logins."),
7674
"loginErrorCancelled" : m5,
7775
"loginErrorNoAccessToken" : m6,
78-
"loginErrorNoAccessTokenAutoRegister" : MessageLookupByLibrary.simpleMessage("Cannot register new user account."),
7976
"loginErrorPasswordIsEmpty" : MessageLookupByLibrary.simpleMessage("Please enter your password to login"),
8077
"loginErrorUsernameIsEmpty" : MessageLookupByLibrary.simpleMessage("Please enter your username or email"),
8178
"loginGoogleErrorAccountIsNull" : MessageLookupByLibrary.simpleMessage("Cannot get Google account information."),
@@ -123,20 +120,13 @@ class MessageLookup extends MessageLookupByLibrary {
123120
"postReportedThanks" : MessageLookupByLibrary.simpleMessage("Thank you for your report!"),
124121
"postUnlike" : MessageLookupByLibrary.simpleMessage("Unlike"),
125122
"privacyPolicy" : MessageLookupByLibrary.simpleMessage("Privacy Policy"),
126-
"register" : MessageLookupByLibrary.simpleMessage("Register"),
127-
"registerAgreeCheckboxHtml" : m11,
128-
"registerEmail" : MessageLookupByLibrary.simpleMessage("Email"),
129-
"registerErrorEmailIsEmpty" : MessageLookupByLibrary.simpleMessage("Email cannot be empty"),
130-
"registerErrorNoAccessToken" : MessageLookupByLibrary.simpleMessage("Cannot register new user account."),
131-
"registerErrorPasswordIsEmpty" : MessageLookupByLibrary.simpleMessage("Password cannot be empty"),
132-
"registerErrorUsernameIsEmpty" : MessageLookupByLibrary.simpleMessage("Username cannot be empty"),
133123
"search" : MessageLookupByLibrary.simpleMessage("Search"),
134124
"searchEnterSomething" : MessageLookupByLibrary.simpleMessage("Enter something to search"),
135-
"searchSubmitToContinue" : m12,
125+
"searchSubmitToContinue" : m11,
136126
"searchThisForum" : MessageLookupByLibrary.simpleMessage("Search this forum"),
137127
"searchThisUser" : MessageLookupByLibrary.simpleMessage("Search for this user"),
138-
"searchThreadByUser" : m13,
139-
"searchThreadInForum" : m14,
128+
"searchThreadByUser" : m12,
129+
"searchThreadInForum" : m13,
140130
"share" : MessageLookupByLibrary.simpleMessage("Share"),
141131
"tagLowercaseDiscussions" : MessageLookupByLibrary.simpleMessage("discussions"),
142132
"tagLowercaseNews" : MessageLookupByLibrary.simpleMessage("news"),

lib/l10n/messages_messages.dart

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,11 @@ class MessageLookup extends MessageLookupByLibrary {
4141

4242
static m10(number) => "Tap to load ${number} hidden replies...";
4343

44-
static m11(privacyPolicy, terms) => "I agree to the <a href=\"${terms}\">terms</a> and <a href=\"${privacyPolicy}\">privacy policy</a>.";
44+
static m11(query) => "Submit to search for \'${query}\'";
4545

46-
static m12(query) => "Submit to search for \'${query}\'";
46+
static m12(username) => " by user \'${username}\'";
4747

48-
static m13(username) => " by user \'${username}\'";
49-
50-
static m14(forumTitle) => " in forum \'${forumTitle}\'";
48+
static m13(forumTitle) => " in forum \'${forumTitle}\'";
5149

5250
final messages = _notInlinedMessages(_notInlinedMessages);
5351
static Map<String, Function> _notInlinedMessages(_) => <String, Function> {
@@ -75,7 +73,6 @@ class MessageLookup extends MessageLookupByLibrary {
7573
"loginAssociateEnterPassword" : MessageLookupByLibrary.simpleMessage("An existing account has been found, please enter your password to associate it for future logins."),
7674
"loginErrorCancelled" : m5,
7775
"loginErrorNoAccessToken" : m6,
78-
"loginErrorNoAccessTokenAutoRegister" : MessageLookupByLibrary.simpleMessage("Cannot register new user account."),
7976
"loginErrorPasswordIsEmpty" : MessageLookupByLibrary.simpleMessage("Please enter your password to login"),
8077
"loginErrorUsernameIsEmpty" : MessageLookupByLibrary.simpleMessage("Please enter your username or email"),
8178
"loginGoogleErrorAccountIsNull" : MessageLookupByLibrary.simpleMessage("Cannot get Google account information."),
@@ -123,20 +120,13 @@ class MessageLookup extends MessageLookupByLibrary {
123120
"postReportedThanks" : MessageLookupByLibrary.simpleMessage("Thank you for your report!"),
124121
"postUnlike" : MessageLookupByLibrary.simpleMessage("Unlike"),
125122
"privacyPolicy" : MessageLookupByLibrary.simpleMessage("Privacy Policy"),
126-
"register" : MessageLookupByLibrary.simpleMessage("Register"),
127-
"registerAgreeCheckboxHtml" : m11,
128-
"registerEmail" : MessageLookupByLibrary.simpleMessage("Email"),
129-
"registerErrorEmailIsEmpty" : MessageLookupByLibrary.simpleMessage("Email cannot be empty"),
130-
"registerErrorNoAccessToken" : MessageLookupByLibrary.simpleMessage("Cannot register new user account."),
131-
"registerErrorPasswordIsEmpty" : MessageLookupByLibrary.simpleMessage("Password cannot be empty"),
132-
"registerErrorUsernameIsEmpty" : MessageLookupByLibrary.simpleMessage("Username cannot be empty"),
133123
"search" : MessageLookupByLibrary.simpleMessage("Search"),
134124
"searchEnterSomething" : MessageLookupByLibrary.simpleMessage("Enter something to search"),
135-
"searchSubmitToContinue" : m12,
125+
"searchSubmitToContinue" : m11,
136126
"searchThisForum" : MessageLookupByLibrary.simpleMessage("Search this forum"),
137127
"searchThisUser" : MessageLookupByLibrary.simpleMessage("Search for this user"),
138-
"searchThreadByUser" : m13,
139-
"searchThreadInForum" : m14,
128+
"searchThreadByUser" : m12,
129+
"searchThreadInForum" : m13,
140130
"share" : MessageLookupByLibrary.simpleMessage("Share"),
141131
"tagLowercaseDiscussions" : MessageLookupByLibrary.simpleMessage("discussions"),
142132
"tagLowercaseNews" : MessageLookupByLibrary.simpleMessage("news"),

lib/l10n/messages_vi.dart

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,11 @@ class MessageLookup extends MessageLookupByLibrary {
4141

4242
static m10(number) => "Tải thêm ${number} bài ẩn...";
4343

44-
static m11(privacyPolicy, terms) => "Tôi đồng ý <a href=\"${terms}\">các điều khoản</a> và <a href=\"${privacyPolicy}\">chính sách quyền riêng tư</a>.";
44+
static m11(query) => "Bấm gửi đi để tìm cho \'${query}\'";
4545

46-
static m12(query) => "Bấm gửi đi để tìm cho \'${query}\'";
46+
static m12(username) => " bởi thành viên \'${username}\'";
4747

48-
static m13(username) => " bởi thành viên \'${username}\'";
49-
50-
static m14(forumTitle) => " trong khu vực \'${forumTitle}\'";
48+
static m13(forumTitle) => " trong khu vực \'${forumTitle}\'";
5149

5250
final messages = _notInlinedMessages(_notInlinedMessages);
5351
static Map<String, Function> _notInlinedMessages(_) => <String, Function> {
@@ -75,7 +73,6 @@ class MessageLookup extends MessageLookupByLibrary {
7573
"loginAssociateEnterPassword" : MessageLookupByLibrary.simpleMessage("Tìm thấy tài khoản có sẵn, xin vui lòng nhập mật khẩu để kết nối cho lần đăng nhập tiếp theo."),
7674
"loginErrorCancelled" : m5,
7775
"loginErrorNoAccessToken" : m6,
78-
"loginErrorNoAccessTokenAutoRegister" : MessageLookupByLibrary.simpleMessage("Không thể đăng ký mới."),
7976
"loginErrorPasswordIsEmpty" : MessageLookupByLibrary.simpleMessage("Xin vui lòng nhập mật khẩu để đăng nhập"),
8077
"loginErrorUsernameIsEmpty" : MessageLookupByLibrary.simpleMessage("Xin vui lòng nhập tên hoặc email để đăng nhập"),
8178
"loginGoogleErrorAccountIsNull" : MessageLookupByLibrary.simpleMessage("Không thể lấy thông tin tài khoản Google."),
@@ -123,20 +120,13 @@ class MessageLookup extends MessageLookupByLibrary {
123120
"postReportedThanks" : MessageLookupByLibrary.simpleMessage("Cảm ơn bạn đã báo cáo nội dung xấu!"),
124121
"postUnlike" : MessageLookupByLibrary.simpleMessage("Bỏ thích"),
125122
"privacyPolicy" : MessageLookupByLibrary.simpleMessage("Chính sách quyền riêng tư"),
126-
"register" : MessageLookupByLibrary.simpleMessage("Đăng ký"),
127-
"registerAgreeCheckboxHtml" : m11,
128-
"registerEmail" : MessageLookupByLibrary.simpleMessage("Email"),
129-
"registerErrorEmailIsEmpty" : MessageLookupByLibrary.simpleMessage("Xin vui lòng nhập email để đăng ký"),
130-
"registerErrorNoAccessToken" : MessageLookupByLibrary.simpleMessage("Không thể đăng ký tài khoản mới."),
131-
"registerErrorPasswordIsEmpty" : MessageLookupByLibrary.simpleMessage("Xin vui lòng nhập mật khẩu để đăng ký"),
132-
"registerErrorUsernameIsEmpty" : MessageLookupByLibrary.simpleMessage("Xin vui lòng nhập tên đăng nhập để đăng ký"),
133123
"search" : MessageLookupByLibrary.simpleMessage("Tìm kiếm"),
134124
"searchEnterSomething" : MessageLookupByLibrary.simpleMessage("Nhập nội dung cần tìm kiếm"),
135-
"searchSubmitToContinue" : m12,
125+
"searchSubmitToContinue" : m11,
136126
"searchThisForum" : MessageLookupByLibrary.simpleMessage("Tìm trong khu vực này"),
137127
"searchThisUser" : MessageLookupByLibrary.simpleMessage("Tìm bài viết của thành viên này"),
138-
"searchThreadByUser" : m13,
139-
"searchThreadInForum" : m14,
128+
"searchThreadByUser" : m12,
129+
"searchThreadInForum" : m13,
140130
"share" : MessageLookupByLibrary.simpleMessage("Chia sẻ"),
141131
"tagLowercaseDiscussions" : MessageLookupByLibrary.simpleMessage("thảo luận"),
142132
"tagLowercaseNews" : MessageLookupByLibrary.simpleMessage("tin tức"),

lib/src/config.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ abstract class ConfigBase {
1010
String get clientId;
1111
String get clientSecret;
1212
String get linkPrivacyPolicy;
13-
String get linkTos;
1413
String get siteRoot;
1514

1615
String? get pushServer => null;

0 commit comments

Comments
 (0)