6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit f8a2a8ec

AuthorNKL<nikolaj.king@gmail.com>
Date2025-06-30 15:58:15 +0200
cleaned web and added sentry for debugging

Changed files

azure/templates/build-ios.yml                      |   2 +-
 comwell_key_app/.gitignore                         |   3 +-
 .../ios/Runner.xcodeproj/project.pbxproj           |   7 +-
 comwell_key_app/lib/main.dart                      |   2 +-
 comwell_key_app/pubspec.yaml                       |   9 +-
 comwell_key_app/web/favicon.png                    | Bin 917 -> 0 bytes
 comwell_key_app/web/icons/Icon-192.png             | Bin 5292 -> 0 bytes
 comwell_key_app/web/icons/Icon-512.png             | Bin 8252 -> 0 bytes
 comwell_key_app/web/icons/Icon-maskable-192.png    | Bin 5594 -> 0 bytes
 comwell_key_app/web/icons/Icon-maskable-512.png    | Bin 20998 -> 0 bytes
 comwell_key_app/web/index.html                     | 106 ---------------------
 comwell_key_app/web/manifest.json                  |  35 -------
 .../web/splash/img/light-background.png            | Bin 436006 -> 0 bytes
 13 files changed, 17 insertions(+), 147 deletions(-)

Diff

diff --git a/azure/templates/build-ios.yml b/azure/templates/build-ios.yml
index 0913fcd5..90e521c1 100644
--- a/azure/templates/build-ios.yml
+++ b/azure/templates/build-ios.yml
@@ -53,7 +53,7 @@ steps:
displayName: "Build app"
inputs:
buildNumber: "$(Build.BuildId)"
- target: "ipa"
+ target: "ios"
buildFlavour: $(flavor)
debugMode: false
profileMode: false
diff --git a/comwell_key_app/.gitignore b/comwell_key_app/.gitignore
index 744aed1c..390b9c7f 100644
--- a/comwell_key_app/.gitignore
+++ b/comwell_key_app/.gitignore
@@ -55,4 +55,5 @@ android/app/.cxx
pubspec.lock
# FVM Version Cache
-.fvm/
\ No newline at end of file
+.fvm/
+sentry.properties
diff --git a/comwell_key_app/ios/Runner.xcodeproj/project.pbxproj b/comwell_key_app/ios/Runner.xcodeproj/project.pbxproj
index a04579f1..aee5f24f 100644
--- a/comwell_key_app/ios/Runner.xcodeproj/project.pbxproj
+++ b/comwell_key_app/ios/Runner.xcodeproj/project.pbxproj
@@ -956,8 +956,10 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
- CODE_SIGN_STYLE = Automatic;
- DEVELOPMENT_TEAM = 8RNV6AX4ZL;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
+ CODE_SIGN_STYLE = Manual;
+ DEVELOPMENT_TEAM = "";
+ "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 8RNV6AX4ZL;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "Comwell Hotels";
@@ -969,6 +971,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.comwell.phoenix.test;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
+ "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Ad hoc test";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
diff --git a/comwell_key_app/lib/main.dart b/comwell_key_app/lib/main.dart
index 61400951..506eef09 100644
--- a/comwell_key_app/lib/main.dart
+++ b/comwell_key_app/lib/main.dart
@@ -41,7 +41,7 @@ void runMainApp(FirebaseOptions firebaseOptions, String envFile) async {
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
setupLocator();
await SentryFlutter.init((options) {
- options.dsn = ''; // Add your Sentry DSN to your .env file.
+ options.dsn = dotenv.env['SENTRY_DSN']!; // Add your Sentry DSN to your .env file.
// Set tracesSampleRate to 1.0 to capture 100% of transactions for tracing.
// We recommend adjusting this value in production.
options.tracesSampleRate = 1.0;
diff --git a/comwell_key_app/pubspec.yaml b/comwell_key_app/pubspec.yaml
index d8290fc7..ceef056e 100644
--- a/comwell_key_app/pubspec.yaml
+++ b/comwell_key_app/pubspec.yaml
@@ -2,7 +2,7 @@ name: comwell_key_app
description: This app needs a description
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
-version: 0.0.2+13
+version: 0.0.2+14
environment:
sdk: '>=3.2.0 <4.0.0'
@@ -63,6 +63,7 @@ dependency_overrides:
vibration: 3.1.3
dev_dependencies:
+ sentry_dart_plugin: ^3.0.0
flutter_test:
sdk: flutter
flutter_lints: ^4.0.0
@@ -130,3 +131,9 @@ flutter:
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
+
+sentry:
+ upload_debug_symbols: true
+ upload_source_maps: true
+ project: comwell-app
+ org: comwell-l7
diff --git a/comwell_key_app/web/favicon.png b/comwell_key_app/web/favicon.png
deleted file mode 100644
index 8aaa46ac..00000000
Binary files a/comwell_key_app/web/favicon.png and /dev/null differ
diff --git a/comwell_key_app/web/icons/Icon-192.png b/comwell_key_app/web/icons/Icon-192.png
deleted file mode 100644
index b749bfef..00000000
Binary files a/comwell_key_app/web/icons/Icon-192.png and /dev/null differ
diff --git a/comwell_key_app/web/icons/Icon-512.png b/comwell_key_app/web/icons/Icon-512.png
deleted file mode 100644
index 88cfd48d..00000000
Binary files a/comwell_key_app/web/icons/Icon-512.png and /dev/null differ
diff --git a/comwell_key_app/web/icons/Icon-maskable-192.png b/comwell_key_app/web/icons/Icon-maskable-192.png
deleted file mode 100644
index eb9b4d76..00000000
Binary files a/comwell_key_app/web/icons/Icon-maskable-192.png and /dev/null differ
diff --git a/comwell_key_app/web/icons/Icon-maskable-512.png b/comwell_key_app/web/icons/Icon-maskable-512.png
deleted file mode 100644
index d69c5669..00000000
Binary files a/comwell_key_app/web/icons/Icon-maskable-512.png and /dev/null differ
diff --git a/comwell_key_app/web/index.html b/comwell_key_app/web/index.html
deleted file mode 100644
index 1ba0630a..00000000
--- a/comwell_key_app/web/index.html
+++ /dev/null
@@ -1,106 +0,0 @@
-<!DOCTYPE html><html><head>
- <!--
- If you are serving your web app in a path other than the root, change the
- href value below to reflect the base path you are serving from.
-
- The path provided below has to start and end with a slash "/" in order for
- it to work correctly.
-
- For more details:
- * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
-
- This is a placeholder for base href that will be replaced by the value of
- the `--base-href` argument provided to `flutter build`.
- -->
- <base href="$FLUTTER_BASE_HREF">
-
- <meta charset="UTF-8">
- <meta content="IE=Edge" http-equiv="X-UA-Compatible">
- <meta name="description" content="A new Flutter project.">
-
- <!-- iOS meta tags & icons -->
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <meta name="apple-mobile-web-app-title" content="comwell_key_app">
- <link rel="apple-touch-icon" href="icons/Icon-192.png">
-
- <!-- Favicon -->
- <link rel="icon" type="image/png" href="favicon.png">
-
- <title>comwell_key_app</title>
- <link rel="manifest" href="manifest.json">
-
-
- <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
- <style id="splash-screen-style">
- html {
- height: 100%
- }
-
- body {
- margin: 0;
- min-height: 100%;
- background-color: #ffffff;
- background-image: url("splash/img/light-background.png");
- background-size: 100% 100%;
- }
-
- .center {
- margin: 0;
- position: absolute;
- top: 50%;
- left: 50%;
- -ms-transform: translate(-50%, -50%);
- transform: translate(-50%, -50%);
- }
-
- .contain {
- display:block;
- width:100%; height:100%;
- object-fit: contain;
- }
-
- .stretch {
- display:block;
- width:100%; height:100%;
- }
-
- .cover {
- display:block;
- width:100%; height:100%;
- object-fit: cover;
- }
-
- .bottom {
- position: absolute;
- bottom: 0;
- left: 50%;
- -ms-transform: translate(-50%, 0);
- transform: translate(-50%, 0);
- }
-
- .bottomLeft {
- position: absolute;
- bottom: 0;
- left: 0;
- }
-
- .bottomRight {
- position: absolute;
- bottom: 0;
- right: 0;
- }
- </style>
- <script id="splash-screen-script">
- function removeSplashFromWeb() {
- document.getElementById("splash")?.remove();
- document.getElementById("splash-branding")?.remove();
- document.body.style.background = "transparent";
- }
- </script>
-</head>
-<body>
- <script src="flutter_bootstrap.js" async=""></script>
-
-
-</body></html>
\ No newline at end of file
diff --git a/comwell_key_app/web/manifest.json b/comwell_key_app/web/manifest.json
deleted file mode 100644
index 2a9bd030..00000000
--- a/comwell_key_app/web/manifest.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "name": "comwell_key_app",
- "short_name": "comwell_key_app",
- "start_url": ".",
- "display": "standalone",
- "background_color": "#0175C2",
- "theme_color": "#0175C2",
- "description": "A new Flutter project.",
- "orientation": "portrait-primary",
- "prefer_related_applications": false,
- "icons": [
- {
- "src": "icons/Icon-192.png",
- "sizes": "192x192",
- "type": "image/png"
- },
- {
- "src": "icons/Icon-512.png",
- "sizes": "512x512",
- "type": "image/png"
- },
- {
- "src": "icons/Icon-maskable-192.png",
- "sizes": "192x192",
- "type": "image/png",
- "purpose": "maskable"
- },
- {
- "src": "icons/Icon-maskable-512.png",
- "sizes": "512x512",
- "type": "image/png",
- "purpose": "maskable"
- }
- ]
-}
diff --git a/comwell_key_app/web/splash/img/light-background.png b/comwell_key_app/web/splash/img/light-background.png
deleted file mode 100644
index d81f99df..00000000
Binary files a/comwell_key_app/web/splash/img/light-background.png and /dev/null differ