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
17 changes: 7 additions & 10 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on:
- '**/*.md'
- '**/*.gitignore'
- '**/*.gitattributes'
pull_request:
workflow_dispatch:
permissions:
contents: write
Expand All @@ -36,37 +35,35 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.x
dotnet-version: 10.0.x
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Install MAUI Workloads
run: |
dotnet workload install android --ignore-failed-sources
dotnet workload install maui --ignore-failed-sources
- name: Restore MAUI workloads
run: dotnet workload restore
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build .\LockPDFyGithubActionsFriendly.slnf --no-restore --configuration Release -p:Version=${{ env.CURRENT_VERSION }}
- name: Build maui windows
run: dotnet build .\LockPDFyMaui --configuration Release -f net8.0-windows10.0.19041.0 -p:Version=${{ env.CURRENT_VERSION }}
run: dotnet build .\LockPDFyMaui --configuration Release -f net10.0-windows10.0.19041.0 -p:Version=${{ env.CURRENT_VERSION }}
- name: Test
run: dotnet test .\LockPDFyGithubActionsFriendly.slnf --no-restore --no-build --verbosity normal --configuration Release
- name: Build maui android
env:
ANDROID_SIGN_KEY: ${{ secrets.ANDROID_SIGN_KEY }}
if: env.ANDROID_SIGN_KEY != ''
run: dotnet publish LockPDFyMaui -f net8.0-android -c Release -p:Version=${{ env.CURRENT_VERSION }} -p:ApplicationId=$PACKAGENAME -p:AndroidKeyStore=true -p:AndroidSigningKeyStore=$PWD/myapp.keystore -p:AndroidSigningKeyAlias=myapp -p:AndroidSigningKeyPass=${{ secrets.ANDROID_SIGN_KEY }} -p:AndroidSigningStorePass=${{ secrets.ANDROID_SIGN_KEY }}
run: dotnet publish LockPDFyMaui -f net10.0-android -c Release -p:Version=${{ env.CURRENT_VERSION }} -p:ApplicationId=$PACKAGENAME -p:AndroidKeyStore=true -p:AndroidSigningKeyStore=$PWD/myapp.keystore -p:AndroidSigningKeyAlias=myapp -p:AndroidSigningKeyPass=${{ secrets.ANDROID_SIGN_KEY }} -p:AndroidSigningStorePass=${{ secrets.ANDROID_SIGN_KEY }}
- name: Github release
shell: bash
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release') && env.GITHUB_TOKEN != '' }}
run: |
gh release create ${{env.CURRENT_VERSION}} ./LockPDFyMaui/bin/Release/net8.0-android/publish/*.apk --generate-notes
gh release create ${{env.CURRENT_VERSION}} ./LockPDFyMaui/bin/Release/net10.0-android/publish/*.apk --generate-notes
- name: Github prerelease
shell: bash
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release') == false && env.GITHUB_TOKEN != '' }}
run: |
gh release create ${{env.CURRENT_VERSION}} ./LockPDFyMaui/bin/Release/net8.0-android/publish/*.apk --prerelease --generate-notes
gh release create ${{env.CURRENT_VERSION}} ./LockPDFyMaui/bin/Release/net10.0-android/publish/*.apk --prerelease --generate-notes
31 changes: 11 additions & 20 deletions LockPDFyMaui/LockPDFyMaui.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
<TargetFrameworks>net10.0-android</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">
$(TargetFrameworks);net8.0-windows10.0.19041.0
$(TargetFrameworks);net10.0-windows10.0.19041.0
</TargetFrameworks>
<!-- Uncomment to also build the tizen app. You will need to install tizen by following
this: https://github.com/Samsung/Tizen.NET -->
<!-- <TargetFrameworks>$(TargetFrameworks);net8.0-tizen</TargetFrameworks> -->
<!-- <TargetFrameworks>$(TargetFrameworks);net10.0-tizen</TargetFrameworks> -->

<!-- Note for MacCatalyst:
The default runtime is maccatalyst-x64, except in Release config, in which case the default is
Expand Down Expand Up @@ -68,42 +68,42 @@
</PropertyGroup>

<PropertyGroup
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-android|AnyCPU'">
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net10.0-android|AnyCPU'">
<ApplicationTitle>LockPDFy</ApplicationTitle>
</PropertyGroup>

<PropertyGroup
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-ios|AnyCPU'">
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net10.0-ios|AnyCPU'">
<ApplicationTitle>LockPDFy</ApplicationTitle>
</PropertyGroup>

<PropertyGroup
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-maccatalyst|AnyCPU'">
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net10.0-maccatalyst|AnyCPU'">
<ApplicationTitle>LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle>
</PropertyGroup>

<PropertyGroup
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-windows10.0.19041.0|AnyCPU'">
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net10.0-windows10.0.19041.0|AnyCPU'">
<ApplicationTitle>LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle>
</PropertyGroup>

<PropertyGroup
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-android|AnyCPU'">
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net10.0-android|AnyCPU'">
<ApplicationTitle>LockPDFy</ApplicationTitle>
</PropertyGroup>

<PropertyGroup
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-ios|AnyCPU'">
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net10.0-ios|AnyCPU'">
<ApplicationTitle>LockPDFy</ApplicationTitle>
</PropertyGroup>

<PropertyGroup
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-maccatalyst|AnyCPU'">
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net10.0-maccatalyst|AnyCPU'">
<ApplicationTitle>LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle>
</PropertyGroup>

<PropertyGroup
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-windows10.0.19041.0|AnyCPU'">
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net10.0-windows10.0.19041.0|AnyCPU'">
<ApplicationTitle>LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle>
</PropertyGroup>

Expand Down Expand Up @@ -167,13 +167,4 @@
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
</ItemGroup>

<PropertyGroup Condition="'$(OS)' == 'Windows_NT' AND '$(AndroidSdkDirectory)' == ''">
<!--That PropertyGroup fixes the error below:
Xamarin.Android.Tooling.targets(70,5): error XA5300:
The Android SDK directory could not be found. Install the Android SDK by following the instructions at: https://aka.ms/dotnet-android-install-sdk To use a custom SDK path for a command line build, set the 'AndroidSdkDirectory' MSBuild property to the custom path.-->
<AndroidSdkDirectory>$(LOCALAPPDATA)\Android\Sdk</AndroidSdkDirectory>
<!--<Message Text="AndroidSdkDirectory is set to $(AndroidSdkDirectory)" Importance="high" />-->
</PropertyGroup>

</Project>
2 changes: 1 addition & 1 deletion LockPDFyTests/LockPDFyTests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

Expand Down
6 changes: 3 additions & 3 deletions LockPDFyWinforms/LockPDFyWinforms.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<TargetFramework>net10.0-windows</TargetFramework>
<OutputType>WinExe</OutputType>
<RootNamespace>LockPDFyWinforms</RootNamespace>
<AssemblyName>LockPDFy Windows</AssemblyName>
Expand All @@ -19,7 +19,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Windows.Compatibility" Version="8.0.2" />
<PackageReference Include="Microsoft.Windows.Compatibility" Version="10.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\LockPDFy\LockPDFy.csproj" />
Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Windows Store](https://img.shields.io/badge/Windows%20Store-LockPDFy-green?style=flat&logo=windows&link=https://www.microsoft.com/store/productId/9NC5KPZM2ZRM)](https://www.microsoft.com/store/productId/9NC5KPZM2ZRM) [![Obtainium](https://img.shields.io/badge/Obtainium%20Store-LockPDFy-green?style=flat&logo=android)](https://codeuctivity.github.io/obtainium/redirect?r=obtainium://add/https://github.com/stesee/PDFEncrypt)

LockPDFy is a user-friendly, open-source and trade mark claim free tool that swiftly encrypts and decrypts PDF files at no cost. Encrypted PDF files are protected with a password and prevent unauthorized access to sensitive information. Commont PDF Viewers are capable to open PDF that are encrypted by this program. The tool is available for Windows and Android.
LockPDFy is a user-friendly, open-source and trade mark claim free tool that swiftly encrypts and decrypts PDF files at no cost. Encrypted PDF files are protected with a password and prevent unauthorized access to sensitive information. Common PDF Viewers are capable to open PDF that are encrypted by this program. The tool is available for Windows and Android.

## Features

Expand All @@ -16,8 +16,4 @@ LockPDFy is a user-friendly, open-source and trade mark claim free tool that swi

## Windows

![Screenshot](./Documentation/LockPDFy%20Screenshot%20Windows.png "Screenshot")

## History

This project is a fork of the great work found at https://github.com/ryangriggs/PDFEncrypt of Ryan Griggs.
![Screenshot](./Documentation/LockPDFy%20Screenshot%20Windows.png "Screenshot")
4 changes: 2 additions & 2 deletions publishAndroidApp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ dotnet clean
dotnet restore
dotnet build -c Release
dotnet test -c Release --no-build
dotnet publish LockPDFyMaui -f net8.0-android -c Release -p:Version=$Version -p:ApplicationId=$packageName -p:AndroidKeyStore=true -p:AndroidSigningKeyStore=$PWD/myapp.keystore -p:AndroidSigningKeyAlias=myapp -p:AndroidSigningKeyPass=$AndroidSigningPassword -p:AndroidSigningStorePass=$AndroidSigningPassword
explorer .\LockPDFyMaui\bin\Release\net8.0-android\publish\
dotnet publish LockPDFyMaui -f net10.0-android -c Release -p:Version=$Version -p:ApplicationId=$packageName -p:AndroidKeyStore=true -p:AndroidSigningKeyStore=$PWD/myapp.keystore -p:AndroidSigningKeyAlias=myapp -p:AndroidSigningKeyPass=$AndroidSigningPassword -p:AndroidSigningStorePass=$AndroidSigningPassword
explorer .\LockPDFyMaui\bin\Release\net10.0-android\publish\
Loading