Skip to content
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
11 changes: 11 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data
android:scheme="https"
android:host="dahenfeld.timo-dittmann.de" />
</intent-filter>

</activity>

<provider
Expand Down
6 changes: 3 additions & 3 deletions android/variables.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext {
minSdkVersion = 23
compileSdkVersion = 35
targetSdkVersion = 35
minSdkVersion = 24
compileSdkVersion = 36
targetSdkVersion = 36
androidxActivityVersion = '1.9.2'
androidxAppCompatVersion = '1.7.0'
androidxCoordinatorLayoutVersion = '1.2.0'
Expand Down
14 changes: 7 additions & 7 deletions capacitor.config.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import type { CapacitorConfig } from '@capacitor/cli';

const config: CapacitorConfig = {
appId: 'de.timodittmann.dahenfeld',
appName: 'Dahenfeld',
webDir: 'dist',
appId: "de.timodittmann.dahenfeld",
appName: "Dahenfeld",
webDir: "dist",
plugins: {
StatusBar: {
style: 'DARK',
backgroundColor: '#003220',
style: "DARK",
backgroundColor: "#003220",
},
EdgeToEdge: {
backgroundColor: '#003220',
}
backgroundColor: "#003220",
},
},
};

Expand Down
2 changes: 1 addition & 1 deletion ios/App/CapApp-SPM/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
name: "CapApp-SPM",
targets: ["CapApp-SPM"])
],
dependencies: [
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", exact: "8.0.1"),
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", exact: "8.3.0"),
.package(name: "CapacitorApp", path: "../../../node_modules/@capacitor/app"),
.package(name: "CapacitorDevice", path: "../../../node_modules/@capacitor/device"),
.package(name: "CapacitorHaptics", path: "../../../node_modules/@capacitor/haptics"),
.package(name: "CapacitorKeyboard", path: "../../../node_modules/@capacitor/keyboard"),
.package(name: "CapacitorPushNotifications", path: "../../../node_modules/@capacitor/push-notifications"),
.package(name: "CapacitorStatusBar", path: "../../../node_modules/@capacitor/status-bar")
],

Check warning on line 21 in ios/App/CapApp-SPM/Package.swift

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Dependency versions are not predictable as Package.resolved file is missing. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=tdittmann_dahenfeld&issues=AZ-bH2yERVSYGxsIXgqi&open=AZ-bH2yERVSYGxsIXgqi&pullRequest=81
targets: [
.target(
name: "CapApp-SPM",
Expand Down
9 changes: 9 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,18 @@ const handlePushNotification = async () => {
}
};

// Needed that the App is opened automatically when installed
const handleAppUrlLink = () => {
App.addListener("appUrlOpen", (event) => {
const url = new URL(event.url);
router.push(url.pathname + url.search + url.hash);
});
};

onMounted(() => {
NavigationService.loadNavigation();
handlePushNotification();
handleAppUrlLink();
});
</script>

Expand Down
8 changes: 8 additions & 0 deletions src/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,11 @@
--swiper-navigation-color: #fff;
--swiper-pagination-color: #fff;
}

/* Force-override safe-area top padding on headers/toolbars for Android/all devices */
ion-header,
ion-header ion-toolbar,
ion-header ion-toolbar:first-of-type {
--ion-safe-area-top: 0px !important;
padding-top: 0 !important;
}
Loading