Skip to content

Commit

Permalink
fix: replace old contact email address (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
BBarisKilic authored May 16, 2024
2 parents 9778d68 + a51153e commit 1339a42
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 17 deletions.
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

0 comments on commit 1339a42

Please sign in to comment.