merge conflicts

This commit is contained in:
ggurdin 2023-12-13 12:35:41 -05:00
commit a30d1e3e2d
17 changed files with 592 additions and 157 deletions

View file

@ -32,6 +32,7 @@ jobs:
mv build/web public
touch public/.env
echo "$WEB_APP_ENV" >> public/.env
cp public/.env public/assets/.env
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:

View file

@ -3339,7 +3339,12 @@
"downloadTxtFile": "Download Text File",
"downloadCSVFile": "Download CSV File",
"promotionalSubscriptionDesc": "You currently have a lifetime promotional subscription. Message support@pangea.chat for help changing your subscription.",
"originalSubscriptionPlatform": "Subscription purchased through",
"originalSubscriptionPlatform": "Subscription purchased through {purchasePlatform}",
"@originalSubscriptionPlatform": {
"placeholders": {
"purchasePlatform": {}
}
},
"oneWeekTrial": "One Week Trial",
"creatingSpacePleaseWait": "Creating space. Please wait...",
"downloadXLSXFile": "Download Excel File",
@ -3941,5 +3946,16 @@
"inNoSpaces": "You are not a member of any classes or exchanges",
"createClass": "Create class",
"createExchange": "Create exchange",
"viewArchive": "View Archive"
"viewArchive": "View Archive",
"trialExpiration": "Your free trial expires on {expiration}",
"@trialExpiration": {
"placeholders": {
"expiration": {}
}
},
"freeTrialDesc": "New users recieve a one week free trial of Pangea Chat",
"activateTrial": "Activate Trial",
"inNoSpaces": "You are not a member of any classes or exchanges",
"successfullySubscribed": "You have successfully subscribed!",
"clickToManageSubscription": "Click here to manage your subscription."
}

View file

@ -1,8 +1,8 @@
import 'dart:ui';
import 'package:matrix/matrix.dart';
import 'package:fluffychat/pangea/config/environment.dart';
// Project imports:
import 'package:matrix/matrix.dart';
abstract class AppConfig {
// #Pangea
@ -121,6 +121,7 @@ abstract class AppConfig {
"https://buy.stripe.com/test_bIY6ssd8z5Uz8ec8ww";
static String iosPromoCode =
"https://apps.apple.com/redeem?ctx=offercodes&id=1445118630&code=";
static String trialSubscriptionId = "pangea_new_user_trial";
// Pangea#
static void loadFromJson(Map<String, dynamic> json) {

View file

@ -1,19 +1,9 @@
import 'dart:async';
import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:adaptive_dialog/adaptive_dialog.dart';
import 'package:collection/collection.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:future_loading_dialog/future_loading_dialog.dart';
import 'package:go_router/go_router.dart';
import 'package:matrix/matrix.dart';
import 'package:receive_sharing_intent/receive_sharing_intent.dart';
import 'package:uni_links/uni_links.dart';
// Project imports:
import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/config/themes.dart';
import 'package:fluffychat/pages/chat_list/chat_list_view.dart';
@ -24,10 +14,23 @@ import 'package:fluffychat/pangea/utils/add_to_space.dart';
import 'package:fluffychat/pangea/utils/chat_list_handle_space_tap.dart';
import 'package:fluffychat/pangea/utils/error_handler.dart';
import 'package:fluffychat/pangea/utils/firebase_analytics.dart';
import 'package:fluffychat/pangea/widgets/subscription/subscription_snackbar.dart';
import 'package:fluffychat/utils/localized_exception_extension.dart';
import 'package:fluffychat/utils/matrix_sdk_extensions/client_stories_extension.dart';
import 'package:fluffychat/utils/matrix_sdk_extensions/matrix_locals.dart';
import 'package:fluffychat/utils/platform_infos.dart';
import 'package:fluffychat/utils/tor_stub.dart'
if (dart.library.html) 'package:tor_detector_web/tor_detector_web.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:future_loading_dialog/future_loading_dialog.dart';
import 'package:go_router/go_router.dart';
import 'package:matrix/matrix.dart';
import 'package:receive_sharing_intent/receive_sharing_intent.dart';
import 'package:uni_links/uni_links.dart';
import '../../../utils/account_bundles.dart';
import '../../utils/matrix_sdk_extensions/matrix_file_extension.dart';
import '../../utils/url_launcher.dart';
@ -35,9 +38,6 @@ import '../../utils/voip/callkeep_manager.dart';
import '../../widgets/fluffy_chat_app.dart';
import '../../widgets/matrix.dart';
import 'package:fluffychat/utils/tor_stub.dart'
if (dart.library.html) 'package:tor_detector_web/tor_detector_web.dart';
enum SelectMode {
normal,
share,
@ -445,6 +445,7 @@ class ChatListController extends State<ChatList>
//#Pangea
StreamSubscription? classStream;
StreamSubscription? _invitedSpaceSubscription;
StreamSubscription? _subscriptionStatusStream;
//Pangea#
@override
@ -502,6 +503,14 @@ class ChatListController extends State<ChatList>
}
}
});
_subscriptionStatusStream = pangeaController
.subscriptionController.subscriptionStream.stream
.listen((event) {
if (mounted) {
showSubscribedSnackbar(context);
}
});
//Pangea#
super.initState();
@ -515,6 +524,7 @@ class ChatListController extends State<ChatList>
//#Pangea
classStream?.cancel();
_invitedSpaceSubscription?.cancel();
_subscriptionStatusStream?.cancel();
//Pangea#
scrollController.removeListener(_onScroll);
super.dispose();

View file

@ -4,4 +4,8 @@ class PLocalKey {
static const String classes = 'classes';
static const String cachedClassCodeToJoin = "cachedclasscodetojoin";
static const String beganWebPayment = "beganWebPayment";
// making this a random string so that it's harder to guess
static const String activatedTrialKey = '7C4EuKIsph';
}

View file

@ -1,16 +1,9 @@
import 'dart:async';
import 'dart:convert';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:adaptive_dialog/adaptive_dialog.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:http/http.dart';
import 'package:purchases_flutter/purchases_flutter.dart';
import 'package:url_launcher/url_launcher_string.dart';
import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/pangea/constants/local.key.dart';
import 'package:fluffychat/pangea/controllers/base_controller.dart';
import 'package:fluffychat/pangea/controllers/pangea_controller.dart';
import 'package:fluffychat/pangea/models/base_subscription_info.dart';
@ -22,6 +15,12 @@ import 'package:fluffychat/pangea/utils/error_handler.dart';
import 'package:fluffychat/pangea/utils/firebase_analytics.dart';
import 'package:fluffychat/pangea/widgets/subscription/subscription_paywall.dart';
import 'package:fluffychat/utils/platform_infos.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:http/http.dart';
import 'package:purchases_flutter/purchases_flutter.dart';
import 'package:url_launcher/url_launcher_string.dart';
class SubscriptionController extends BaseController {
late PangeaController _pangeaController;
@ -29,6 +28,7 @@ class SubscriptionController extends BaseController {
//convert this logic to use completer
bool initialized = false;
final StreamController subscriptionStream = StreamController.broadcast();
SubscriptionController(PangeaController pangeaController) : super() {
_pangeaController = pangeaController;
@ -59,13 +59,32 @@ class SubscriptionController extends BaseController {
: MobileSubscriptionInfo(pangeaController: _pangeaController);
await subscription!.configure();
if (activatedNewUserTrial) {
setNewUserTrial();
}
initialized = true;
if (!kIsWeb) {
Purchases.addCustomerInfoUpdateListener(
(CustomerInfo info) => updateCustomerInfo(),
(CustomerInfo info) async {
final bool wasSubscribed = isSubscribed;
await updateCustomerInfo();
if (!wasSubscribed && isSubscribed) {
subscriptionStream.add(true);
}
},
);
} else {
final bool? beganWebPayment = _pangeaController.pStoreService.read(
PLocalKey.beganWebPayment,
);
if (beganWebPayment ?? false) {
_pangeaController.pStoreService.delete(PLocalKey.beganWebPayment);
if (_pangeaController.subscriptionController.isSubscribed) {
subscriptionStream.add(true);
}
}
}
setState();
} catch (e, s) {
@ -74,6 +93,26 @@ class SubscriptionController extends BaseController {
}
}
bool get activatedNewUserTrial =>
_pangeaController.userController.inTrialWindow &&
(_pangeaController.pStoreService.read(PLocalKey.activatedTrialKey) ??
false);
void activateNewUserTrial() {
_pangeaController.pStoreService.save(PLocalKey.activatedTrialKey, true);
setNewUserTrial();
}
void setNewUserTrial() {
final String profileCreatedAt =
_pangeaController.userController.userModel!.profile!.createdAt;
final DateTime creationTimestamp = DateTime.parse(profileCreatedAt);
final DateTime expirationDate = creationTimestamp.add(
const Duration(days: 7),
);
subscription?.setTrial(expirationDate);
}
Future<void> updateCustomerInfo() async {
if (subscription == null) {
ErrorHandler.logError(
@ -175,6 +214,10 @@ class SubscriptionController extends BaseController {
selectedSubscription.duration!,
isPromo: isPromo,
);
_pangeaController.pStoreService.save(
PLocalKey.beganWebPayment,
true,
);
setState();
launchUrlString(
paymentLink,

View file

@ -2,14 +2,15 @@ import 'dart:async';
import 'dart:developer';
import 'package:collection/collection.dart';
import 'package:jwt_decode/jwt_decode.dart';
import 'package:matrix/matrix.dart' as matrix;
import 'package:fluffychat/pangea/constants/language_keys.dart';
import 'package:fluffychat/pangea/constants/model_keys.dart';
import 'package:fluffychat/pangea/controllers/base_controller.dart';
import 'package:fluffychat/pangea/controllers/pangea_controller.dart';
import 'package:fluffychat/widgets/fluffy_chat_app.dart';
// Project imports:
import 'package:jwt_decode/jwt_decode.dart';
import 'package:matrix/matrix.dart' as matrix;
import '../constants/local.key.dart';
import '../models/user_model.dart';
import '../repo/user_repo.dart';
@ -109,6 +110,16 @@ class UserController extends BaseController {
}
}
bool get inTrialWindow {
final String? createdAt = userModel?.profile?.createdAt;
if (createdAt == null) {
return false;
}
return DateTime.parse(createdAt).isAfter(
DateTime.now().subtract(const Duration(days: 7)),
);
}
Future<bool> get areUserLanguagesSet async {
try {
final PUserModel? toCheck = userModel ?? (await fetchUserModel());

View file

@ -1,3 +1,5 @@
// Project imports:
import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/pangea/controllers/pangea_controller.dart';
import 'package:fluffychat/pangea/controllers/subscription_controller.dart';
import 'package:fluffychat/pangea/repo/subscription_repo.dart';
@ -44,6 +46,9 @@ class SubscriptionInfo {
allProducts = await SubscriptionRepo.getAllProducts();
}
bool get isNewUserTrial =>
currentSubscriptionId == AppConfig.trialSubscriptionId;
bool get currentSubscriptionIsPromotional =>
currentSubscriptionId?.startsWith("rc_promo") ?? false;
@ -70,5 +75,16 @@ class SubscriptionInfo {
currentSubscriptionId = null;
}
void setTrial(DateTime expiration) {
if (currentSubscription != null) return;
expirationDate = expiration;
currentSubscriptionId = AppConfig.trialSubscriptionId;
currentSubscription = SubscriptionDetails(
price: 0,
id: AppConfig.trialSubscriptionId,
periodType: 'trial',
);
}
Future<void> setCustomerInfo() async {}
}

View file

@ -1,15 +1,15 @@
import 'dart:io';
import 'package:flutter/material.dart';
// Package imports:
import 'package:collection/collection.dart';
import 'package:purchases_flutter/purchases_flutter.dart';
import 'package:sentry_flutter/sentry_flutter.dart';
import 'package:fluffychat/pangea/config/environment.dart';
import 'package:fluffychat/pangea/controllers/subscription_controller.dart';
import 'package:fluffychat/pangea/models/base_subscription_info.dart';
import 'package:fluffychat/pangea/utils/error_handler.dart';
// Project imports:
import 'package:flutter/material.dart';
import 'package:purchases_flutter/purchases_flutter.dart';
import 'package:sentry_flutter/sentry_flutter.dart';
class MobileSubscriptionInfo extends SubscriptionInfo {
MobileSubscriptionInfo({required super.pangeaController}) : super();
@ -182,7 +182,9 @@ class MobileSubscriptionInfo extends SubscriptionInfo {
);
} else if (activeEntitlements.isEmpty) {
debugPrint("User has no active entitlements");
resetSubscription();
if (!isNewUserTrial) {
resetSubscription();
}
return;
}
final EntitlementInfo activeEntitlement = activeEntitlements[0];

View file

@ -1,16 +1,19 @@
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher_string.dart';
// Project imports:
import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/pangea/config/environment.dart';
import 'package:fluffychat/pangea/controllers/pangea_controller.dart';
import 'package:fluffychat/pangea/controllers/subscription_controller.dart';
import 'package:fluffychat/pangea/pages/settings_subscription/settings_subscription_view.dart';
import 'package:fluffychat/pangea/utils/subscription_app_id.dart';
import 'package:fluffychat/pangea/widgets/subscription/subscription_snackbar.dart';
import 'package:fluffychat/widgets/matrix.dart';
// Project imports:
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
// Package imports:
import 'package:url_launcher/url_launcher_string.dart';
class SubscriptionManagement extends StatefulWidget {
const SubscriptionManagement({super.key});
@ -24,6 +27,7 @@ class SubscriptionManagementController extends State<SubscriptionManagement> {
final PangeaController pangeaController = MatrixState.pangeaController;
SubscriptionDetails? selectedSubscription;
late StreamSubscription _settingsSubscription;
StreamSubscription? _subscriptionStatusStream;
@override
void initState() {
@ -40,6 +44,7 @@ class SubscriptionManagementController extends State<SubscriptionManagement> {
void dispose() {
super.dispose();
_settingsSubscription.cancel();
_subscriptionStatusStream?.cancel();
}
bool get currentSubscriptionAvailable =>
@ -53,6 +58,10 @@ class SubscriptionManagementController extends State<SubscriptionManagement> {
?.currentSubscriptionIsPromotional ??
false;
bool get isNewUserTrial =>
pangeaController.subscriptionController.subscription?.isNewUserTrial ??
false;
bool get showManagementOptions {
if (!currentSubscriptionAvailable) {
return false;
@ -116,6 +125,12 @@ class SubscriptionManagementController extends State<SubscriptionManagement> {
@override
Widget build(BuildContext context) {
_subscriptionStatusStream ??= pangeaController
.subscriptionController.subscriptionStream.stream
.listen((_) {
showSubscribedSnackbar(context);
context.go('/rooms');
});
return SettingsSubscriptionView(this);
}
}

View file

@ -1,14 +1,14 @@
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:intl/intl.dart';
// Flutter imports:
// Project imports:
import 'package:fluffychat/pangea/controllers/pangea_controller.dart';
import 'package:fluffychat/pangea/controllers/subscription_controller.dart';
import 'package:fluffychat/pangea/pages/settings_subscription/change_subscription.dart';
import 'package:fluffychat/pangea/pages/settings_subscription/settings_subscription.dart';
import 'package:fluffychat/widgets/layouts/max_width_body.dart';
import 'package:fluffychat/widgets/matrix.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:intl/intl.dart';
class SettingsSubscriptionView extends StatelessWidget {
final SubscriptionManagementController controller;
@ -105,45 +105,44 @@ class ManagementNotAvailableWarning extends StatelessWidget {
@override
Widget build(BuildContext context) {
final bool currentSubscriptionAvailable =
controller.currentSubscriptionAvailable;
final bool currentSubscriptionIsPromotional =
controller.currentSubscriptionIsPromotional;
final String? purchasePlatformDisplayName =
controller.purchasePlatformDisplayName;
final bool isLifetimeSubscription =
subscriptionController.subscription?.isLifetimeSubscription ?? false;
final DateTime? expirationDate =
subscriptionController.subscription?.expirationDate;
String warningText = L10n.of(context)!.subscriptionManagementUnavailable;
final DateFormat formatter = DateFormat('yyyy-MM-dd');
if (currentSubscriptionAvailable) {
warningText = L10n.of(context)!.subsciptionPlatformTooltip;
} else if (currentSubscriptionIsPromotional) {
if (isLifetimeSubscription) {
warningText = L10n.of(context)!.promotionalSubscriptionDesc;
} else {
warningText = L10n.of(context)!.promoSubscriptionExpirationDesc(
formatter.format(expirationDate!),
String getWarningText() {
final DateFormat formatter = DateFormat('yyyy-MM-dd');
if (controller.isNewUserTrial) {
return L10n.of(context)!.trialExpiration(
formatter.format(
subscriptionController.subscription!.expirationDate!,
),
);
}
if (controller.currentSubscriptionAvailable) {
String warningText = L10n.of(context)!.subsciptionPlatformTooltip;
if (controller.purchasePlatformDisplayName != null) {
warningText +=
"\n${L10n.of(context)!.originalSubscriptionPlatform(controller.purchasePlatformDisplayName!)}";
}
return warningText;
}
if (controller.currentSubscriptionIsPromotional) {
if (subscriptionController.subscription?.isLifetimeSubscription ??
false) {
return L10n.of(context)!.promotionalSubscriptionDesc;
}
return L10n.of(context)!.promoSubscriptionExpirationDesc(
formatter.format(
subscriptionController.subscription!.expirationDate!,
),
);
}
return L10n.of(context)!.subscriptionManagementUnavailable;
}
return Center(
child: Column(
children: [
Text(
warningText,
textAlign: TextAlign.center,
),
if (purchasePlatformDisplayName != null)
Text(
"${L10n.of(context)!.originalSubscriptionPlatform} $purchasePlatformDisplayName",
textAlign: TextAlign.center,
),
],
child: Padding(
padding: const EdgeInsets.all(20),
child: Text(
getWarningText(),
textAlign: TextAlign.center,
),
),
);
}

View file

@ -1,10 +1,11 @@
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
// Flutter imports:
// Project imports:
import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/pangea/controllers/pangea_controller.dart';
import 'package:fluffychat/pangea/controllers/subscription_controller.dart';
import 'package:flutter/material.dart';
// Package imports:
import 'package:flutter_gen/gen_l10n/l10n.dart';
class SubscriptionOptions extends StatelessWidget {
final PangeaController pangeaController;
@ -16,23 +17,18 @@ class SubscriptionOptions extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Expanded(
child: ListView(
children: [
const SizedBox(height: 20),
Wrap(
alignment: WrapAlignment.center,
direction: Axis.horizontal,
children: pangeaController
.subscriptionController.subscription!.availableSubscriptions
.map(
(subscription) => SubscriptionCard(
subscription: subscription,
pangeaController: pangeaController,
),
)
.toList(),
),
],
child: Wrap(
alignment: WrapAlignment.center,
direction: Axis.horizontal,
children: pangeaController
.subscriptionController.subscription!.availableSubscriptions
.map(
(subscription) => SubscriptionCard(
subscription: subscription,
pangeaController: pangeaController,
),
)
.toList(),
),
);
}
@ -80,7 +76,11 @@ class SubscriptionCard extends StatelessWidget {
OutlinedButton(
onPressed: () {
pangeaController.subscriptionController
.submitSubscriptionChange(subscription, context);
.submitSubscriptionChange(
subscription,
context,
);
Navigator.of(context).pop();
},
child: Text(L10n.of(context)!.subscribe),
),

View file

@ -1,9 +1,10 @@
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
// Flutter imports:
// Project imports:
import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/pangea/controllers/pangea_controller.dart';
import 'package:fluffychat/pangea/widgets/subscription/subscription_options.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
class SubscriptionPaywall extends StatelessWidget {
final PangeaController pangeaController;
@ -28,7 +29,7 @@ class SubscriptionPaywall extends StatelessWidget {
),
body: Padding(
padding: const EdgeInsets.all(20),
child: Column(
child: ListView(
children: [
if (pangeaController.matrixState.client.rooms.length > 1) ...[
Text(
@ -44,12 +45,65 @@ class SubscriptionPaywall extends StatelessWidget {
style: const TextStyle(fontSize: 16),
),
const SizedBox(height: 20),
SubscriptionOptions(
pangeaController: pangeaController,
),
pangeaController.userController.inTrialWindow
? FreeTrialCard(
pangeaController: pangeaController,
)
: SubscriptionOptions(
pangeaController: pangeaController,
),
],
),
),
);
}
}
class FreeTrialCard extends StatelessWidget {
final PangeaController pangeaController;
const FreeTrialCard({super.key, required this.pangeaController});
@override
Widget build(BuildContext context) {
return Align(
child: Card(
shape: RoundedRectangleBorder(
side: BorderSide(
color: AppConfig.primaryColorLight.withAlpha(64),
),
borderRadius: const BorderRadius.all(Radius.zero),
),
child: SizedBox(
height: 250,
width: AppConfig.columnWidth * 0.75,
child: Padding(
padding: const EdgeInsets.all(25),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(
L10n.of(context)!.freeTrial,
textAlign: TextAlign.center,
style: const TextStyle(fontSize: 24),
),
Text(
L10n.of(context)!.freeTrialDesc,
textAlign: TextAlign.center,
),
OutlinedButton(
onPressed: () {
pangeaController.subscriptionController
.activateNewUserTrial();
Navigator.of(context).pop();
},
child: Text(L10n.of(context)!.activateTrial),
),
],
),
),
),
),
);
}
}

View file

@ -0,0 +1,34 @@
import 'package:fluffychat/config/app_config.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:go_router/go_router.dart';
void showSubscribedSnackbar(BuildContext context) {
final Widget text = RichText(
text: TextSpan(
children: [
TextSpan(
text: L10n.of(context)!.successfullySubscribed,
style: TextStyle(
color: Theme.of(context).brightness == Brightness.light
? Colors.white
: Colors.black,
),
),
const TextSpan(text: " "),
TextSpan(
text: L10n.of(context)!.clickToManageSubscription,
style: const TextStyle(color: AppConfig.primaryColor),
recognizer: TapGestureRecognizer()
..onTap = () => context.go('/rooms/settings/subscription'),
),
],
),
);
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: text,
),
);
}

View file

@ -759,7 +759,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"bn": [
@ -1527,7 +1532,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"bo": [
@ -2295,7 +2305,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"ca": [
@ -3058,7 +3073,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"cs": [
@ -3821,7 +3841,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"de": [
@ -4584,7 +4609,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"el": [
@ -5352,7 +5382,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"eo": [
@ -6115,7 +6150,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"es": [
@ -6142,7 +6182,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"et": [
@ -6905,7 +6950,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"eu": [
@ -7668,7 +7718,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"fa": [
@ -8431,7 +8486,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"fi": [
@ -9194,7 +9254,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"fr": [
@ -9957,7 +10022,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"ga": [
@ -10720,7 +10790,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"gl": [
@ -11483,7 +11558,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"he": [
@ -12246,7 +12326,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"hi": [
@ -13014,7 +13099,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"hr": [
@ -13777,7 +13867,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"hu": [
@ -14540,7 +14635,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"id": [
@ -15303,7 +15403,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"ie": [
@ -16068,7 +16173,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"it": [
@ -16831,7 +16941,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"ja": [
@ -17594,7 +17709,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"ko": [
@ -18357,7 +18477,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"lt": [
@ -19120,7 +19245,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"lv": [
@ -19888,7 +20018,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"nb": [
@ -20651,7 +20786,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"nl": [
@ -21414,7 +21554,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"pl": [
@ -22177,7 +22322,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"pt": [
@ -22945,7 +23095,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"pt_BR": [
@ -23708,7 +23863,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"pt_PT": [
@ -24471,7 +24631,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"ro": [
@ -25234,7 +25399,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"ru": [
@ -25997,7 +26167,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"sk": [
@ -26761,7 +26936,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"sl": [
@ -27527,7 +27707,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"sr": [
@ -28290,7 +28475,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"sv": [
@ -29053,7 +29243,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"ta": [
@ -29821,7 +30016,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"th": [
@ -30589,7 +30789,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"tr": [
@ -31352,7 +31557,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"uk": [
@ -32115,7 +32325,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"vi": [
@ -32881,7 +33096,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"zh": [
@ -33644,7 +33864,12 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
],
"zh_Hant": [
@ -34407,6 +34632,11 @@
"inNoSpaces",
"createClass",
"createExchange",
"viewArchive"
"viewArchive",
"trialExpiration",
"freeTrialDesc",
"activateTrial",
"successfullySubscribed",
"clickToManageSubscription"
]
}

View file

@ -132,7 +132,6 @@ flutter:
generate: true
uses-material-design: true
assets:
- .env
- assets/
- assets/pangea/
- assets/pangea/bot_faces/

View file

@ -2,5 +2,5 @@
flutter config --enable-web
flutter clean
flutter pub get
flutter build web --dart-define=FLUTTER_WEB_CANVASKIT_URL=canvaskit/ --source-maps --base-href "/client/"
flutter build web --dart-define=FLUTTER_WEB_CANVASKIT_URL=canvaskit/ --profile --source-maps --base-href "/client/"
# flutter build web --release --verbose --source-maps --dart-define=SENTRY_RELEASE=$CI_COMMIT_SHA