Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replace old contact email address #42

Merged
merged 7 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/src/app/presentation/widgets/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class _AppView extends StatelessWidget {
return switch (state) {
AppInitializing() => const SizedBox.shrink(),
AppInitialized() => MaterialApp(
title: AppConfig.appName,
debugShowCheckedModeBanner: false,
localizationsDelegates: AppLocalizations.localizationsDelegates,
supportedLocales: AppLocalizations.supportedLocales,
Expand Down
20 changes: 20 additions & 0 deletions lib/src/core/constants/app_config.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright 2024 BBK Development. All rights reserved.
// Use of this source code is governed by a GPL-style license that can be found
// in the LICENSE file.

/// A class that provides constant app-wide configuration values.
abstract final class AppConfig {
/// Returns the name of the app.
static const appName = 'VMerge';

/// Returns the contact email address.
static const contactEmail = '[email protected]';

/// Returns the privacy policy URL.
static const privacyPolicy =
'https://www.bbkdevelopment.com/apps/vmerge/privacy-policy';

/// Returns the terms and conditions URL.
static const termsAndConditions =
'https://www.bbkdevelopment.com/apps/vmerge/terms-and-conditions';
}
10 changes: 0 additions & 10 deletions lib/src/core/constants/app_url.dart

This file was deleted.

2 changes: 1 addition & 1 deletion lib/src/core/constants/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
export 'app_animation_duration.dart';
export 'app_border_radius.dart';
export 'app_button_size.dart';
export 'app_config.dart';
export 'app_icon_size.dart';
export 'app_main_color.dart';
export 'app_padding.dart';
export 'app_url.dart';
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class _MorePageOption extends StatelessWidget {
.sendEmail(
emailUri: Uri(
scheme: 'mailto',
path: '[email protected]',
queryParameters: {'subject': 'VMerge'},
path: AppConfig.contactEmail,
queryParameters: {'subject': AppConfig.appName},
),
)
.onError<SendEmailException>((error, stackTrace) {
Expand All @@ -66,7 +66,7 @@ class _MorePageOption extends StatelessWidget {
});
case MorePageOption.termsAndConditions:
getIt<UrlLauncherService>()
.launch(url: Uri.parse(AppUrl.termsAndConditions))
.launch(url: Uri.parse(AppConfig.termsAndConditions))
.onError<UrlLaunchException>((error, stackTrace) {
context.read<ErrorCubit>().caught(
message: l10n.couldNotOpenTermsAndConditionsMessage,
Expand All @@ -76,7 +76,7 @@ class _MorePageOption extends StatelessWidget {
});
case MorePageOption.privacyPolicy:
getIt<UrlLauncherService>()
.launch(url: Uri.parse(AppUrl.privacyPolicy))
.launch(url: Uri.parse(AppConfig.privacyPolicy))
.onError<UrlLaunchException>((error, stackTrace) {
context.read<ErrorCubit>().caught(
message: l10n.couldNotOpenPrivacyPolicyMessage,
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: vmerge
description: A video merger app created by BBK Development.
version: 2.0.0+7
version: 2.0.0+8
publish_to: none

environment:
Expand All @@ -23,7 +23,7 @@ dependencies:
flutter_svg: ^2.0.10+1
get_it: ^7.7.0
image_gallery_saver: ^2.0.3
intl: ^0.18.1
intl: any
launch_review_service:
git:
url: https://github.com/BBKDevelopment/Launch-Review-Service.git
Expand Down
Loading