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
18 changes: 18 additions & 0 deletions publish-windows-self-contained.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@echo off
setlocal

set "PROJECT=%~dp0src\SmsSyncMaui\SmsSyncMaui.csproj"
set "OUTPUT=E:\Tools\SyncSmsToDesktop"

if not exist "%PROJECT%" (
echo Project not found: %PROJECT%
exit /b 1
)

echo Publishing SmsSyncMaui self-contained to %OUTPUT%...
dotnet publish "%PROJECT%" -f net10.0-windows10.0.19041.0 -c Release -p:RuntimeIdentifierOverride=win-x64 -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true -o "%OUTPUT%" %*
if errorlevel 1 exit /b %errorlevel%

echo.
echo Self-contained publish completed: %OUTPUT%
endlocal
18 changes: 18 additions & 0 deletions publish-windows.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@echo off
setlocal

set "PROJECT=%~dp0src\SmsSyncMaui\SmsSyncMaui.csproj"
set "OUTPUT=E:\Tools\SyncSmsToDesktop"

if not exist "%PROJECT%" (
echo Project not found: %PROJECT%
exit /b 1
)

echo Publishing SmsSyncMaui to %OUTPUT%...
dotnet publish "%PROJECT%" -f net10.0-windows10.0.19041.0 -c Release -p:RuntimeIdentifierOverride=win-x64 -p:WindowsPackageType=None -o "%OUTPUT%" %*
if errorlevel 1 exit /b %errorlevel%

echo.
echo Publish completed: %OUTPUT%
endlocal
18 changes: 3 additions & 15 deletions src/MobileSmsSync/Components/Layout/MainLayout.razor
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
@inherits LayoutComponentBase
@inherits LayoutComponentBase

<div class="page">
<div class="sidebar">
<NavMenu />
</div>

<main>
<div class="top-row px-4">
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
</div>

<article class="content px-4">
@Body
</article>
</main>
<div class="app-shell">
@Body
</div>
2 changes: 1 addition & 1 deletion src/MobileSmsSync/Platforms/Android/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<!-- Notification Permission -->
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />

<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true">
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true" android:usesCleartextTraffic="true">

<!-- Foreground Service for SMS Sync -->
<service android:name="com.companyname.mobilesmssync.SmsSyncService"
Expand Down
19 changes: 16 additions & 3 deletions src/MobileSmsSync/wwwroot/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ html, body {
display: flex;
justify-content: center;
align-items: center;
padding: 1.5rem;
padding: 0.8rem;
overflow: hidden;
}

Expand Down Expand Up @@ -99,11 +99,11 @@ html, body {
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
padding: 2.5rem 2rem;
padding: 1.5rem 1.2rem;
z-index: 10;
display: flex;
flex-direction: column;
gap: 1.8rem;
gap: 1.2rem;
}

/* Header styling */
Expand Down Expand Up @@ -265,6 +265,7 @@ html, body {
}

.ip-input {
width: 100%;
background: rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 10px;
Expand Down Expand Up @@ -353,11 +354,13 @@ html, body {
.permission-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.8rem;
background: rgba(0, 0, 0, 0.15);
padding: 0.75rem 1rem;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.02);
width: 100%;
}

.perm-icon {
Expand Down Expand Up @@ -389,6 +392,7 @@ html, body {
flex-direction: column;
gap: 0.15rem;
flex-grow: 1;
min-width: 0;
}

.perm-name {
Expand All @@ -412,6 +416,8 @@ html, body {
font-weight: 700;
cursor: pointer;
transition: all var(--transition-speed) ease;
white-space: nowrap;
margin-left: auto;
}

.btn-grant:hover {
Expand Down Expand Up @@ -475,7 +481,14 @@ html, body {
}

#blazor-error-ui {
display: none;
background: rgba(22, 18, 42, 0.95);
border-top: 1px solid var(--danger-border);
color: var(--text-primary);
position: fixed;
bottom: 0;
left: 0;
width: 100%;
z-index: 2000;
padding: 0.6rem 1.25rem;
}
Loading