Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

[WIP] UI overhaul #52

Merged
merged 394 commits into from
Mar 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
394 commits
Select commit Hold shift + click to select a range
98f9d0e
Fixed "Clear cache" not scrolling to cache
COM8 Feb 4, 2019
bc9e612
Added the reconnect button logic
COM8 Feb 8, 2019
c365be9
Started adding the account info OMEMO control
COM8 Feb 8, 2019
5f43f1d
Added the refresh and reset OMEMO devices logic
COM8 Feb 9, 2019
816ea9c
Finished the account info OMEMO control
COM8 Feb 10, 2019
dbffe25
Second part of the previous commit
COM8 Feb 10, 2019
11e86bd
Potential fix for #5 wrong fingerprints
COM8 Feb 10, 2019
9bbf379
Fixed QRCode not using QRCode text
COM8 Feb 10, 2019
f237877
Fixed not catching errors during sending messages
COM8 Feb 10, 2019
8823e9e
Fixed crash if account properties change while the account info dialo…
COM8 Feb 10, 2019
89386e6
Reorganized DataTempalets and Contexts
COM8 Feb 10, 2019
159b491
Removed the margin at the bottom of the chat messages window
COM8 Feb 10, 2019
5bc7ea0
Updated the App Center NuGet packages
COM8 Feb 11, 2019
5b17d18
Fixed speech bubble FontIcon size
COM8 Feb 11, 2019
f38f2a7
Fixed ListView crash on phones
COM8 Feb 11, 2019
55c8999
Fixed OMEMO refresh devices
COM8 Feb 11, 2019
819563b
Fixed crashes if OMEMO keys are corrupted
COM8 Feb 12, 2019
5fb0653
Started the UI overhaul #50
COM8 Dec 15, 2018
eb5f2f6
Started adding the Chats page
COM8 Dec 15, 2018
88400ef
Added dummy chat master and details controls
COM8 Dec 15, 2018
10de44f
Started adding the MasterDetailsControl view model
COM8 Dec 15, 2018
5f0a201
Added more ChatMasterControl related properties
COM8 Dec 16, 2018
daf1303
Fixed message state brush
COM8 Dec 17, 2018
2ee56fd
Fixed account presence
COM8 Dec 17, 2018
03cc220
Fixed chat state XEP
COM8 Dec 17, 2018
de3d846
Added the chat details header
COM8 Dec 17, 2018
8910c40
Started adding chat details
COM8 Dec 17, 2018
be65d32
Started creating a new style for the chat box
COM8 Dec 19, 2018
276a542
Added chat filter and search
COM8 Dec 19, 2018
2fcdec6
Fixed showing custom title bar on mobile devices
COM8 Dec 19, 2018
eb47f4d
Fixed Acrylic brush conversion for mobile devices
COM8 Dec 19, 2018
bbab6c3
Updated the UI layout
COM8 Dec 20, 2018
efe336e
Updated the chats query text box style
COM8 Dec 20, 2018
3ac70f3
Updated the chat message text box style
COM8 Dec 20, 2018
6d72896
Updated the chat details send and clip button style
COM8 Dec 20, 2018
95cab4f
Removed unused style setter
COM8 Dec 20, 2018
a6e652d
Backported the WindowsCommunityToolkit VisualTree
COM8 Dec 20, 2018
2acd1e9
Removed deleted file
COM8 Dec 20, 2018
1d02fdf
Started adding the UI components for chat messages
COM8 Dec 20, 2018
c5e31d2
More work done on chat messages
COM8 Dec 21, 2018
c599cd1
Not doing an expensive UI thread call if already running in the UI th…
COM8 Dec 21, 2018
c29ccd8
More SpeechBubbleControl preparations
COM8 Dec 23, 2018
d520bc8
Added chat message shift + enter and enter to send spport
COM8 Dec 23, 2018
b045ddc
Removed unused and debug code
COM8 Dec 23, 2018
6d45133
Added a speech bubble context menu
COM8 Dec 24, 2018
f9f2105
Updated chat page style
COM8 Dec 24, 2018
9087a8e
Updated DataTemplates set value
COM8 Dec 24, 2018
0d8fb6d
Added a master header animation
COM8 Dec 24, 2018
37124a8
Added a first version of the new settings overview page
COM8 Dec 24, 2018
aba4280
Started adding reveal effects to buttons
COM8 Dec 25, 2018
9a3697d
Updated NuGet packages
COM8 Dec 25, 2018
b25970a
Updated and removed not used NuGet packages and references
COM8 Dec 25, 2018
9fe80c3
Updated the settings style
COM8 Dec 25, 2018
0e250ff
Added a back button
COM8 Dec 25, 2018
eaadccf
Moved the settings header into the title bar
COM8 Dec 25, 2018
48daf56
Added a drop shadow to the settings title bar
COM8 Dec 26, 2018
061d57d
Small tweaks to the UI style
COM8 Dec 26, 2018
55e5009
Made loading chat messages able to be canceled
COM8 Dec 26, 2018
7ea721e
Fixed chat message not showing the current value
COM8 Dec 26, 2018
9451de3
Added the SpeechBubbleTextContentControl
COM8 Dec 26, 2018
52b7331
Started adding the image speech bubble content
COM8 Dec 26, 2018
c1c81ae
Fixed loading images
COM8 Dec 27, 2018
e811827
Preparations fro image start/stop/cancel download
COM8 Dec 27, 2018
4210bd4
Added the unread marker logic
COM8 Dec 27, 2018
45ee7ce
Added the SpeechBubbleTopControl and logic
COM8 Dec 27, 2018
83e56b3
Small UI updates to the speech bubbles
COM8 Dec 27, 2018
a2e2312
Added a caption text brush
COM8 Dec 28, 2018
f0b3a3c
Tweaked the dark theme colors
COM8 Dec 30, 2018
a7a0554
Tweaked the light theme colors
COM8 Dec 30, 2018
2bc3513
Updated the gold brush for the light theme
COM8 Dec 30, 2018
cccbb7c
Speech bubbles always have the same font color now
COM8 Dec 30, 2018
d7be544
Removed the unused SpeechBubbleContentSendStateControl
COM8 Dec 30, 2018
64abe39
Added the splash_screen.png to .gitignore
COM8 Dec 30, 2018
df7c337
Added an exteded spash screen
COM8 Dec 30, 2018
43749f6
Added random JID generation
COM8 Dec 31, 2018
e6dd58a
Added the splash screen image as no chat selected template
COM8 Dec 31, 2018
03cacbb
Added a SpeechBubbleErrorControl
COM8 Dec 31, 2018
e142f27
Switched to the back ported MasterDetailsView to fix back button beha…
COM8 Jan 3, 2019
5e8142d
Fixed master pane size and threshold
COM8 Jan 3, 2019
646f63c
Updated the settings page title bar drop shadow
COM8 Jan 3, 2019
db3fa32
Updating the UI once the application theme changed
COM8 Jan 3, 2019
4ecc697
Added send message logic
COM8 Jan 4, 2019
3217bf4
Fixed encrypted and cc logo not showing
COM8 Jan 4, 2019
f7d165c
Added on new chat message and message changed support
COM8 Jan 4, 2019
004c047
Fixed OMEMO error messages not showing
COM8 Jan 4, 2019
9d495fd
Updated the extended splash screen
COM8 Jan 5, 2019
6e71523
Showing the new splash screen for chats
COM8 Jan 5, 2019
737a704
Fixed send chat messages getting marked as read not send
COM8 Jan 5, 2019
23abba1
Started adding the chat settings page
COM8 Jan 6, 2019
83cafac
Finished the chat settings page
COM8 Jan 7, 2019
2bd06e0
Started adding the misc settings page
COM8 Jan 7, 2019
4bee50e
Done more work on the misc settings page
COM8 Jan 10, 2019
2df0b9f
Added the "About and links" section
COM8 Jan 11, 2019
da970ea
Finished log level selection
COM8 Jan 11, 2019
e3e0824
Updated the more button background
COM8 Jan 11, 2019
9bccb89
Updated the chat input background
COM8 Jan 12, 2019
861da35
Updated the settings reveal effects
COM8 Jan 12, 2019
e1f68c4
Updated the settings selection control margins
COM8 Jan 12, 2019
fb03d37
Renamed "Special thanks to..." to "Credits"
COM8 Jan 12, 2019
6f12f8a
Added a confirm dialog
COM8 Jan 12, 2019
5dc1d10
Updated the content dialog and content dialog button style
COM8 Jan 13, 2019
e10e6e6
Added the clear cache dialog
COM8 Jan 13, 2019
28d306c
Fixed logs and image folder size
COM8 Jan 13, 2019
c88f0e0
Finished the misc settings page
COM8 Jan 13, 2019
ddd3086
Added the data settings page
COM8 Jan 13, 2019
9e2c362
Added the background task settings page
COM8 Jan 13, 2019
1b35e95
Finished the data settings page
COM8 Jan 13, 2019
498aaae
Fixed KeyboardAccelerator API not available
COM8 Jan 13, 2019
eca4833
Fixed settings phone compatibility
COM8 Jan 15, 2019
c5d024b
Switched to Windows SDK version 10.0.15063.0 TextBox styles
COM8 Jan 15, 2019
99c6b25
Overriding compute intensive resources on lower end devices
COM8 Jan 15, 2019
1914596
Forcing the chat page to stay cached
COM8 Jan 16, 2019
5fcd06b
Fixed hardware/software back buttons not working
COM8 Jan 16, 2019
6ef7b19
Further performance improvements for mobile devices
COM8 Jan 16, 2019
d173c26
Fixed settings selection control not zooming out again
COM8 Jan 16, 2019
78aede4
Moved the SettingsSelectionControl into the right namespace
COM8 Jan 16, 2019
57cee39
Replaced acrylic for the light theme on mobile devices
COM8 Jan 16, 2019
0900bd8
Updated the build number to 0.14.0.0
COM8 Jan 17, 2019
d1b66bd
Started adding the accounts settings page
COM8 Jan 17, 2019
888a989
Fixed interaction not working when page was cached
COM8 Jan 19, 2019
e0ca805
Reordered the account settings page categories
COM8 Jan 19, 2019
183e60f
Added the basic account control layout
COM8 Jan 19, 2019
6010d62
More UI work done on the accounts settings page
COM8 Jan 19, 2019
68e352f
Removed the chat details header background
COM8 Jan 19, 2019
63338b4
Removed unused code
COM8 Jan 19, 2019
0e1ddd7
Added the chat details header background again to improve contrast
COM8 Jan 19, 2019
e105478
Removed the unused XMPP logo
COM8 Jan 20, 2019
4aaa984
Set the text foreground brush for links
COM8 Jan 21, 2019
3d51260
Experimental round speech bubbles
COM8 Jan 21, 2019
f724208
Added account limit infos
COM8 Jan 21, 2019
b0f7358
Started moving stuff to the shared project and updated project min an…
COM8 Jan 25, 2019
6cce2fa
Fixed duplicate attributes
COM8 Jan 25, 2019
14c0e53
Removed old shared project
COM8 Jan 25, 2019
03d4f20
Made the XMPPUser able to report property changes
COM8 Jan 25, 2019
71c4427
Added account enable/disable logic
COM8 Jan 25, 2019
f91798b
Started adding connection error infos
COM8 Jan 25, 2019
8534063
Added the account connection state indication logic
COM8 Jan 26, 2019
6041df5
Started adding the account info dialog
COM8 Jan 26, 2019
fcb3b94
Added account error info
COM8 Jan 26, 2019
dc2a1e4
Fixed account info crash
COM8 Jan 26, 2019
dac5e92
Added account error control fallback values
COM8 Jan 26, 2019
ff5480a
Updated the UWPX logo uwpx.github.io/#1 #50
COM8 Jan 27, 2019
e4028e1
Fixed the splash screen scaling for mobile devices
COM8 Jan 27, 2019
5a5465b
Added the credits page
COM8 Jan 27, 2019
4e09331
Improved folder size calculation performance
COM8 Jan 27, 2019
a45e641
Backported the SlidableListItem from the WindowsCommunityToolkit
COM8 Jan 27, 2019
c5233b1
Added more chat master logic
COM8 Jan 27, 2019
319d889
Made speech bubbles square again
COM8 Jan 29, 2019
6d84a97
Fixed showing full date if message is from today
COM8 Jan 29, 2019
22b15c8
Typo
COM8 Jan 31, 2019
32e0a0e
Code cleanup
COM8 Feb 2, 2019
a372088
Fixed clear cache button
COM8 Feb 3, 2019
02f17ec
Started adding chat background support
COM8 Feb 3, 2019
656b2a9
Fixed copyright symbol not showing on some phones
COM8 Feb 3, 2019
0aa26d2
Added a small settings overview
COM8 Feb 3, 2019
64207d5
Fixed "Clear cache" not scrolling to cache
COM8 Feb 4, 2019
3d75315
Added the reconnect button logic
COM8 Feb 8, 2019
29590bb
Started adding the account info OMEMO control
COM8 Feb 8, 2019
8416164
Added the refresh and reset OMEMO devices logic
COM8 Feb 9, 2019
ea83137
Finished the account info OMEMO control
COM8 Feb 10, 2019
3b221d1
Second part of the previous commit
COM8 Feb 10, 2019
c043b41
Potential fix for #5 wrong fingerprints
COM8 Feb 10, 2019
ab1582c
Fixed QRCode not using QRCode text
COM8 Feb 10, 2019
10fa8e0
Fixed not catching errors during sending messages
COM8 Feb 10, 2019
489dc62
Fixed crash if account properties change while the account info dialo…
COM8 Feb 10, 2019
32f8aac
Reorganized DataTempalets and Contexts
COM8 Feb 10, 2019
f56009a
Removed the margin at the bottom of the chat messages window
COM8 Feb 10, 2019
e84bfc9
Updated the App Center NuGet packages
COM8 Feb 11, 2019
0bc2de9
Fixed speech bubble FontIcon size
COM8 Feb 11, 2019
32b0cbc
Fixed ListView crash on phones
COM8 Feb 11, 2019
0f10b60
Fixed OMEMO refresh devices
COM8 Feb 11, 2019
5439cc2
Rebased on master
COM8 Feb 12, 2019
8f3f2e4
Fixed ExtendedSplashScreenPage background not scaling
COM8 Feb 12, 2019
8d6f4a2
Updated the app icons
COM8 Feb 12, 2019
da96a8f
Moved the OMEMO button right next to the more button
COM8 Feb 13, 2019
63464db
Updated the OMEMO chat enable/disable flyout
COM8 Feb 16, 2019
b238f96
Added logic for entering and leaving MUC controls
COM8 Feb 16, 2019
46c2448
Fixed chat gets unselected if the chats order changes
COM8 Feb 16, 2019
2ddc0a3
Fixed back navigation for master details not working
COM8 Feb 16, 2019
1543a59
Made the DB more robust
COM8 Feb 17, 2019
dd3179b
Updated NuGet packages
COM8 Feb 17, 2019
7cf6ae3
Fixed UI freeze if a new chat message arrives/gets send
COM8 Feb 17, 2019
01a2e49
Added an option to enable/disable OMEMO by default for new chats
COM8 Feb 17, 2019
62d49aa
Added an option to disable device vibration for new chat messages
COM8 Feb 17, 2019
dfdb30d
Fixed image download state and progress not updating correctly
COM8 Feb 17, 2019
f915bb7
Removed debug code
COM8 Feb 17, 2019
054a73b
Started refactoring the image download process
COM8 Feb 17, 2019
726cc53
Switched to a Task (consumer producer) based downloader @KingKili
COM8 Feb 22, 2019
c18b213
Added a better workaround for praeclarum/sqlite-net#761
COM8 Feb 22, 2019
1bb02ac
Showing the app name on the medium, large and wide tile
COM8 Feb 22, 2019
2b62483
Cleaned up the project properties
COM8 Feb 24, 2019
4a54934
Added RFC 7622 based JID parts parsing and validation
COM8 Feb 27, 2019
ab33ba6
Added JID parser and validation unit tests
COM8 Feb 27, 2019
dd87aa2
Converted the "UWP XMPP Client" project to a class library and remove…
COM8 Feb 28, 2019
764f8b3
Part one for fixing unit tests
COM8 Feb 28, 2019
ee23597
Removed already ported controls
COM8 Mar 2, 2019
cb40248
Fixed unable to build release builds and run unit tests
COM8 Mar 2, 2019
873a471
Fixed logger not loading config
COM8 Mar 2, 2019
f66312a
Fixed some cases for invalid JID parsing and validating
COM8 Mar 2, 2019
dab2f34
Fixed hardware back button not working
COM8 Mar 2, 2019
2bde072
Fixed crash for old devices (phones)
COM8 Mar 2, 2019
95be8bf
Added an option to enable/disable debug settings
COM8 Mar 3, 2019
b2cfa25
Updated the version to 0.14.0.0
COM8 Mar 3, 2019
d17fe47
Added the test button to debug settings
COM8 Mar 3, 2019
cedd58b
Added spam detection debug settings
COM8 Mar 3, 2019
a67afde
Fixed chat presence not updating the UI
COM8 Mar 3, 2019
ba1b693
Fixed trying to build for neutral architecture
COM8 Mar 5, 2019
40d7a8b
Fixed the OMEMO fingerprint!
COM8 Mar 5, 2019
34185d2
Updated UI margins
COM8 Mar 5, 2019
bb62d0b
Fixed changing OMEMO enabled not saving.
COM8 Mar 5, 2019
9c850c5
Fixed reloads chat messages if for example the chat presence changes
COM8 Mar 5, 2019
6fe6195
Updated the log level boarder
COM8 Mar 5, 2019
16e84af
Fixed unable to scroll to spam section
COM8 Mar 5, 2019
b6877d6
Recalculating logs and image cache folder size on deleted
COM8 Mar 5, 2019
f189348
Updated the chat master pane background
COM8 Mar 5, 2019
c3681af
Added a certificate info control
COM8 Mar 5, 2019
fddae48
Removed the refactored certificate control
COM8 Mar 5, 2019
45e586d
Updated the account info dialog controls
COM8 Mar 7, 2019
46e6668
Merge branch 'UI-Overhaul' of https://github.com/UWPX/UWPX-Client int…
COM8 Mar 7, 2019
35e2864
Added presence probe and account actions support
COM8 Mar 7, 2019
5674b7b
Added the donate settings page
COM8 Mar 8, 2019
234c5ba
Fixed some UI margin and labeling inconsistencies
COM8 Mar 8, 2019
427ca76
Added theme changing settings
COM8 Mar 8, 2019
5a1ee19
Started adding the personalize preview
COM8 Mar 8, 2019
a2f431a
Fixed OMEMO messages getting not marked as send if send
COM8 Mar 8, 2019
00b9c71
Fixed not updating unencrypted send message status
COM8 Mar 8, 2019
baa10e4
Added support for deleting chat messages
COM8 Mar 8, 2019
cc534f7
Started adding the add account page
COM8 Mar 9, 2019
dbaded2
Started adding add account page logic
COM8 Mar 9, 2019
460ffaa
Fixed typo
COM8 Mar 9, 2019
0639d9a
Added more add account page logic
COM8 Mar 9, 2019
81c43fa
Updated NuGet packages
COM8 Mar 10, 2019
3a65042
Updated the certificate details column width
COM8 Mar 10, 2019
35c746a
Finished the add account page logic
COM8 Mar 10, 2019
4969426
Finished the add account page
COM8 Mar 10, 2019
5a5efff
Removed already refactored classes
COM8 Mar 10, 2019
78bd2b9
Added all missing pages based on their deprecated version for now unt…
COM8 Mar 10, 2019
58ffa18
Added the what's new dialog
COM8 Mar 10, 2019
83ff96a
Added a navigation fallback case
COM8 Mar 10, 2019
7a7401b
Added the initial start dialog
COM8 Mar 10, 2019
30774da
Disconnection the account before deletion
COM8 Mar 10, 2019
027f76a
Fixed dummy chat sender
COM8 Mar 12, 2019
a5277a4
Fixed info flyout not wrapping
COM8 Mar 12, 2019
b0d604d
Fixed OMEMO beeing enabled for MUCs
COM8 Mar 12, 2019
239435c
Update README.md
COM8 Mar 12, 2019
74f1d23
Update README.md
COM8 Mar 12, 2019
bd98a45
Update README.md
COM8 Mar 12, 2019
2ce7090
Merge branch 'UI-Overhaul' of https://github.com/COM8/UWP-XMPP-Client…
COM8 Mar 12, 2019
e7a46bc
Fixed image being to big
COM8 Mar 12, 2019
a58091c
Released v.0.14.0.0
COM8 Mar 12, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion AES_GCM/AES_GCM.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
<AppContainerApplication>true</AppContainerApplication>
<ApplicationType>Windows Store</ApplicationType>
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformMinVersion>10.0.15063.0</WindowsTargetPlatformMinVersion>
<ApplicationTypeRevision>10.0</ApplicationTypeRevision>
</PropertyGroup>
Expand Down
57 changes: 40 additions & 17 deletions BackgroundSocket/BackgroundSocket.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{2343CA08-3D0A-4412-A0ED-E8E68E0E208B}</ProjectGuid>
<ProjectGuid>{94944B01-6CE9-42BB-9180-7682BCE2298F}</ProjectGuid>
<OutputType>winmdobj</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>BackgroundSocket</RootNamespace>
<AssemblyName>BackgroundSocket</AssemblyName>
<DefaultLanguage>de-DE</DefaultLanguage>
<DefaultLanguage>en-US</DefaultLanguage>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.16299.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.10586.0</TargetPlatformMinVersion>
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.17763.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.15063.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
Expand All @@ -27,6 +27,7 @@
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand All @@ -36,6 +37,7 @@
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<PlatformTarget>x86</PlatformTarget>
Expand All @@ -44,9 +46,9 @@
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<PlatformTarget>x86</PlatformTarget>
Expand All @@ -55,9 +57,9 @@
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
<PlatformTarget>ARM</PlatformTarget>
Expand All @@ -66,9 +68,9 @@
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
<PlatformTarget>ARM</PlatformTarget>
Expand All @@ -77,9 +79,31 @@
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM64'">
<PlatformTarget>ARM64</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\ARM64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM64'">
<PlatformTarget>ARM64</PlatformTarget>
<OutputPath>bin\ARM64\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<PlatformTarget>x64</PlatformTarget>
Expand All @@ -88,9 +112,9 @@
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<PlatformTarget>x64</PlatformTarget>
Expand All @@ -99,36 +123,35 @@
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Compile Include="Classes\BackgroundSocketHandler.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.2.2</Version>
<Version>6.2.3</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Classes\Events\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Logging\Logging.csproj">
<Project>{53bb5463-9646-4f79-be97-3d73473aad92}</Project>
<Project>{0c1fb090-4492-441d-b182-c999df71f917}</Project>
<Name>Logging</Name>
</ProjectReference>
<ProjectReference Include="..\XMPP_API\XMPP_API.csproj">
<Project>{899fb043-af8b-4294-95b6-1482c79459ac}</Project>
<Project>{64b9a47f-d404-4d0b-a34a-bec280c5ff6b}</Project>
<Name>XMPP_API</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Classes\Events\" />
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion BackgroundSocket/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("BackgroundSocket")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand Down
17 changes: 16 additions & 1 deletion Component_Tests/Classes/Crypto/Test_CryptoUtils.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using libsignal;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -123,5 +124,19 @@ public void Test_CryptoUtils_HexToByteArray()
string saltStringHex = CryptoUtils.byteArrayToHexString(salt);
Assert.IsTrue(saltStringHex.Equals(saltStringHexRef));
}

[TestCategory("Crypto")]
[TestMethod]
public void Test_CryptoUtils_GenOmemoFingerprint()
{
string identKeyPairSerializedHex = "0a210511dbad7fcece74492f390f0a2a8387c543e802ab7f2176e303e28840559c41521220a082ae07fd8941536457cb2f3e4b560a87991d380f02af460b5204e46ca7b15a";
byte[] identKeyPairSerialized = CryptoUtils.hexStringToByteArray(identKeyPairSerializedHex);
IdentityKeyPair identKeyPair = new IdentityKeyPair(identKeyPairSerialized);

string outputRef = "11dbad7f cece7449 2f390f0a 2a8387c5 43e802ab 7f2176e3 03e28840 559c4152";
string output = CryptoUtils.generateOmemoFingerprint(identKeyPair.getPublicKey(), false);

Assert.AreEqual(outputRef, output);
}
}
}
156 changes: 156 additions & 0 deletions Component_Tests/Classes/Misc/Test_JidParser.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using XMPP_API.Classes;

namespace Component_Tests.Classes.Misc
{
/// <summary>
/// Examples from: https://tools.ietf.org/html/rfc7622#section-3.5
/// </summary>
[TestClass]
public class Test_JidParser
{
[TestCategory("Misc")]
[TestMethod]
public void Test_IsBareJid_1()
{
string s = "[email protected]";
Assert.IsTrue(Utils.isBareJid(s));
}

[TestCategory("Misc")]
[TestMethod]
public void Test_IsBareJid_2()
{
string s = "foo\\[email protected]";
Assert.IsTrue(Utils.isBareJid(s));
}

[TestCategory("Misc")]
[TestMethod]
public void Test_IsBareJid_3()
{
string s = "[email protected]";
Assert.IsTrue(Utils.isBareJid(s));
}

[TestCategory("Misc")]
[TestMethod]
public void Test_IsBareJid_4()
{
string s = "fu&#xDF;[email protected]";
//Assert.IsTrue(Utils.isBareJid(s)); // TODO: Fix RFC 7622 encoding
}

[TestCategory("Misc")]
[TestMethod]
public void Test_IsBareJid_5()
{
string s = "&#x3C0;@example.com";
//Assert.IsTrue(Utils.isBareJid(s)); // TODO: Fix RFC 7622 encoding
}

[TestCategory("Misc")]
[TestMethod]
public void Test_IsBareJid_6()
{
string s = "\"juliet\"@example.com";
Assert.IsFalse(Utils.isBareJid(s));
}

[TestCategory("Misc")]
[TestMethod]
public void Test_IsBareJid_7()
{
string s = "foo [email protected]";
Assert.IsFalse(Utils.isBareJid(s));
}

[TestCategory("Misc")]
[TestMethod]
public void Test_IsBareJid_8()
{
string s = "juliet@";
Assert.IsFalse(Utils.isBareJid(s));
}

[TestCategory("Misc")]
[TestMethod]
public void Test_IsFullJid_1()
{
string s = "[email protected]/foo";
Assert.IsTrue(Utils.isFullJid(s));
}

[TestCategory("Misc")]
[TestMethod]
public void Test_IsFullJid_2()
{
string s = "[email protected]/foo bar";
Assert.IsTrue(Utils.isFullJid(s));
}

[TestCategory("Misc")]
[TestMethod]
public void Test_IsFullJid_3()
{
string s = "[email protected]/foo@bar";
Assert.IsTrue(Utils.isFullJid(s));
}

[TestCategory("Misc")]
[TestMethod]
public void Test_IsFullJid_4()
{
string s = "&#x3A3;@example.com/foo";
//Assert.IsTrue(Utils.isFullJid(s)); // TODO: Fix RFC 7622 encoding
}

[TestCategory("Misc")]
[TestMethod]
public void Test_IsFullJid_5()
{
string s = "&#x3C3;@example.com/foo";
//Assert.IsTrue(Utils.isFullJid(s)); // TODO: Fix RFC 7622 encoding
}

[TestCategory("Misc")]
[TestMethod]
public void Test_IsFullJid_6()
{
string s = "&#x3C2;@example.com/foo";
//Assert.IsTrue(Utils.isFullJid(s)); // TODO: Fix RFC 7622 encoding
}

[TestCategory("Misc")]
[TestMethod]
public void Test_IsFullJid_7()
{
string s = "[email protected]/&#x265A";
Assert.IsTrue(Utils.isFullJid(s));
}

[TestCategory("Misc")]
[TestMethod]
public void Test_IsFullJid_8()
{
string s = "[email protected]/[email protected]";
Assert.IsTrue(Utils.isFullJid(s));
}

[TestCategory("Misc")]
[TestMethod]
public void Test_IsFullJid_9()
{
string s = "[email protected]/ foo";
Assert.IsFalse(Utils.isFullJid(s));
}

[TestCategory("Misc")]
[TestMethod]
public void Test_IsFullJid_10()
{
string s = "@example.com/";
Assert.IsFalse(Utils.isFullJid(s));
}
}
}
Loading