Skip to content

Commit 718583e

Browse files
authored
Merge pull request #120 from BranchMetrics/SDK-1143-Remove-Poco-Dependency
Sdk 1143 remove poco dependency
2 parents 5bc1bdf + 602159a commit 718583e

File tree

107 files changed

+4864
-1440
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+4864
-1440
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
.vs
55
Debug
66
Release
7+
DebugMD
8+
ReleaseMD
9+
DebugMT
10+
ReleaseMT
711
/build
812
/stage
913
/bin

BranchInstaller/BranchInstaller.sln

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ Global
1414
EndGlobalSection
1515
GlobalSection(ProjectConfigurationPlatforms) = postSolution
1616
{CF182D2E-244F-411E-BFB5-4E19F859804C}.Debug|x64.ActiveCfg = Debug|x86
17+
{CF182D2E-244F-411E-BFB5-4E19F859804C}.Debug|x64.Build.0 = Debug|x86
1718
{CF182D2E-244F-411E-BFB5-4E19F859804C}.Debug|x86.ActiveCfg = Debug|x86
1819
{CF182D2E-244F-411E-BFB5-4E19F859804C}.Debug|x86.Build.0 = Debug|x86
19-
{CF182D2E-244F-411E-BFB5-4E19F859804C}.Release|x64.ActiveCfg = Release|x86
20+
{CF182D2E-244F-411E-BFB5-4E19F859804C}.Release|x64.ActiveCfg = Debug|x86
21+
{CF182D2E-244F-411E-BFB5-4E19F859804C}.Release|x64.Build.0 = Debug|x86
2022
{CF182D2E-244F-411E-BFB5-4E19F859804C}.Release|x86.ActiveCfg = Release|x86
2123
{CF182D2E-244F-411E-BFB5-4E19F859804C}.Release|x86.Build.0 = Release|x86
2224
EndGlobalSection
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//{{NO_DEPENDENCIES}}
2+
// Microsoft Visual C++ generated include file.
3+
// Used by TestBed-Basic.rc
4+
//
5+
#define IDC_MYICON 2
6+
#define IDD_TESTBEDBASIC_DIALOG 102
7+
#define IDS_APP_TITLE 103
8+
#define IDD_ABOUTBOX 103
9+
#define IDM_ABOUT 104
10+
#define IDM_EXIT 105
11+
#define IDI_TESTBEDBASIC 107
12+
#define IDI_SMALL 108
13+
#define IDC_TESTBEDBASIC 109
14+
#define IDC_TESTBED 109
15+
#define IDR_MAINFRAME 128
16+
#define IDC_STATIC -1
17+
18+
// Next default values for new objects
19+
//
20+
#ifdef APSTUDIO_INVOKED
21+
#ifndef APSTUDIO_READONLY_SYMBOLS
22+
#define _APS_NO_MFC 1
23+
#define _APS_NEXT_RESOURCE_VALUE 129
24+
#define _APS_NEXT_COMMAND_VALUE 32771
25+
#define _APS_NEXT_CONTROL_VALUE 1000
26+
#define _APS_NEXT_SYMED_VALUE 110
27+
#endif
28+
#endif
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3+
<Product Id="*" Name="Branch TestBed (Basic)" Language="1033" Version="1.2.3" Manufacturer="Branch Metrics, Inc." UpgradeCode="f66f62db-fbea-4c26-b0e3-ab91241a71da">
4+
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
5+
6+
<MajorUpgrade DowngradeErrorMessage="A newer version of TestBed (Basic) is already installed." />
7+
<Media Cabinet="cab1.cab" EmbedCab="yes" Id="1"/>
8+
9+
<UIRef Id="WixUI_InstallDir_NoLic"/>
10+
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
11+
<Icon Id="branch.exe" SourceFile="branch-badge-dark.ico"/>
12+
<Property Id="ARPPRODUCTICON" Value="branch.exe"/>
13+
<Property Id="ARPHELPLINK" Value="https://help.branch.io/developers-hub/docs/windows-cpp-sdk-overview"/>
14+
<WixVariable Id="WixUIDialogBmp" Value="branch-background.bmp"/>
15+
<WixVariable Id="WixUIBannerBmp" Value="branch-banner.bmp"/>
16+
17+
<Directory Id="TARGETDIR" Name="SourceDir">
18+
<Directory Id="ProgramFilesFolder">
19+
<Directory Id="INSTALLFOLDER" Name="Branch TestBed (Basic)" />
20+
</Directory>
21+
<Directory Id="ProgramMenuFolder">
22+
<Directory Id="ApplicationProgramsFolder" Name="Branch TestBed (Basic)" />
23+
</Directory>
24+
</Directory>
25+
26+
<DirectoryRef Id="INSTALLFOLDER">
27+
<Component Id="TestBedBinary" Guid="b5efe49a-f3f1-4623-b82e-9b2500d8f340">
28+
<File Id="TestBedBinaryFile" Source="$(var.ProjectDir)..\x64\Debug\TestBed-Basic.exe" KeyPath="yes" Checksum="yes">
29+
<Shortcut Id="ApplicationStartMenuShortcut"
30+
Name="Branch TestBed (Basic)"
31+
Directory="ApplicationProgramsFolder"
32+
Description="TestBed QA application without MSIX"
33+
WorkingDirectory="INSTALLFOLDER"
34+
Advertise="yes"
35+
Icon="branch.exe" />
36+
</File>
37+
<File Id="TestBedPdb" Source="$(var.ProjectDir)..\x64\Debug\TestBed-Basic.pdb" />
38+
</Component>
39+
<Component Id="WelcomePage" Guid="fc9d0d52-7c4e-4402-b189-db6711b3d154">
40+
<File Id="Welcome.html" Source="$(var.ProjectDir)..\Welcome.html" KeyPath="yes">
41+
<Shortcut Id="WelcomePageShortcut"
42+
Name="Welcome Page"
43+
Directory="ApplicationProgramsFolder"
44+
Description="Welcome Page for Branch TestBed (Basic)"
45+
Advertise="yes"
46+
Icon="branch.exe" />
47+
</File>
48+
<File Id="WelcomePageBackground" Source="$(var.ProjectDir)..\branch-badge-dark.png" />
49+
<File Id="WelcomePageFavicon" Source="$(var.ProjectDir)..\small.ico" />
50+
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall" Directory="ApplicationProgramsFolder"/>
51+
</Component>
52+
<Component Id="TestBedURIScheme" Guid="502eb451-4bb1-4f67-8016-ba0009fb8d6a">
53+
<!-- Add Registry entries for URI redirection -->
54+
<!-- testbedbasic is the URI scheme from the Branch Dashboard -->
55+
<RegistryKey Root="HKCU" Key="SOFTWARE\Classes\testbedbasic" >
56+
<RegistryValue Value="Branch TestBed (Basic)" Type="string" />
57+
<RegistryValue Name="URL Protocol" Value="" Type="string" />
58+
<RegistryKey Key="DefaultIcon">
59+
<RegistryValue Value="[INSTALLFOLDER]TestBed-Basic.exe,1" Type="string"/>
60+
</RegistryKey>
61+
<RegistryKey Key="shell\open\command">
62+
<RegistryValue Value='"[INSTALLFOLDER]TestBed-Basic.exe" "%1"' Type="string"/>
63+
</RegistryKey>
64+
</RegistryKey>
65+
</Component>
66+
</DirectoryRef>
67+
68+
<Feature Id="ProductFeature" Title="TestBed (Basic) Application" Level="1" AllowAdvertise="yes" TypicalDefault="advertise">
69+
<ComponentRef Id="TestBedBinary" />
70+
<ComponentRef Id="TestBedURIScheme"/>
71+
<ComponentRef Id="WelcomePage"/>
72+
</Feature>
73+
</Product>
74+
</Wix>
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" InitialTargets="EnsureWixToolsetInstalled" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
6+
<ProductVersion>3.10</ProductVersion>
7+
<ProjectGuid>ac67aa34-e2de-470d-bd7d-b87218da186d</ProjectGuid>
8+
<SchemaVersion>2.0</SchemaVersion>
9+
<OutputName>TestBed-Basic</OutputName>
10+
<OutputType>Package</OutputType>
11+
<SignOutput>true</SignOutput>
12+
</PropertyGroup>
13+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
14+
<OutputPath>bin\$(Configuration)\</OutputPath>
15+
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
16+
<DefineConstants>Debug</DefineConstants>
17+
</PropertyGroup>
18+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
19+
<OutputPath>bin\$(Configuration)\</OutputPath>
20+
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
21+
</PropertyGroup>
22+
<ItemGroup>
23+
<Compile Include="Product.wxs" />
24+
<Compile Include="WixUI_InstallDir_NoLic.wxs" />
25+
</ItemGroup>
26+
<ItemGroup>
27+
<ProjectReference Include="..\TestBed-Basic.vcxproj">
28+
<Name>TestBed-Basic</Name>
29+
<Project>{f3a5bf87-3e17-4fb9-9002-86a5aba3ab9c}</Project>
30+
<Private>True</Private>
31+
<DoNotHarvest>True</DoNotHarvest>
32+
<RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
33+
<RefTargetDir>INSTALLFOLDER</RefTargetDir>
34+
</ProjectReference>
35+
</ItemGroup>
36+
<ItemGroup>
37+
<WixExtension Include="WixUIExtension">
38+
<HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
39+
<Name>WixUIExtension</Name>
40+
</WixExtension>
41+
</ItemGroup>
42+
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />
43+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " />
44+
<Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' ">
45+
<Error Text="The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" />
46+
</Target>
47+
<!-- https://wixtoolset.org/documentation/manual/v3/overview/insignia.html for these targets and the SignOutput property -->
48+
<Target Name="SignCabs">
49+
<Exec Command="&quot;C:\Program Files (x86)\Windows Kits\10\App Certification Kit\Signtool.exe&quot; sign /a &quot;%(SignCabs.FullPath)&quot;" />
50+
</Target>
51+
<Target Name="SignMsi">
52+
<Exec Command="&quot;C:\Program Files (x86)\Windows Kits\10\App Certification Kit\Signtool.exe&quot; sign /a &quot;%(SignMsi.FullPath)&quot;" />
53+
</Target>
54+
<!--
55+
To modify your build process, add your task inside one of the targets below and uncomment it.
56+
Other similar extension points exist, see Wix.targets.
57+
<Target Name="BeforeBuild">
58+
</Target>
59+
<Target Name="AfterBuild">
60+
</Target>
61+
-->
62+
</Project>
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!--
4+
Copyright (c) Microsoft Corporation. All rights reserved.
5+
6+
The use and distribution terms for this software are covered by the
7+
Common Public License 1.0 (http://opensource.org/licenses/cpl1.0.php)
8+
which can be found in the file CPL.TXT at the root of this distribution.
9+
By using this software in any fashion, you are agreeing to be bound by
10+
the terms of this license.
11+
12+
You must not remove this notice, or any other, from this software.
13+
-->
14+
<!--
15+
First-time install dialog sequence:
16+
- WixUI_WelcomeDlg
17+
- WixUI_LicenseAgreementDlg
18+
- WixUI_InstallDirDlg
19+
- WixUI_VerifyReadyDlg
20+
- WixUI_DiskCostDlg
21+
22+
Maintenance dialog sequence:
23+
- WixUI_MaintenanceWelcomeDlg
24+
- WixUI_MaintenanceTypeDlg
25+
- WixUI_InstallDirDlg
26+
- WixUI_VerifyReadyDlg
27+
28+
Patch dialog sequence:
29+
- WixUI_WelcomeDlg
30+
- WixUI_VerifyReadyDlg
31+
32+
-->
33+
34+
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
35+
<Fragment>
36+
<UI Id="WixUI_InstallDir_NoLic">
37+
<TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
38+
<TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
39+
<TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" />
40+
41+
<Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
42+
<Property Id="WixUI_Mode" Value="InstallDir" />
43+
44+
<DialogRef Id="BrowseDlg" />
45+
<DialogRef Id="DiskCostDlg" />
46+
<DialogRef Id="ErrorDlg" />
47+
<DialogRef Id="FatalError" />
48+
<DialogRef Id="FilesInUse" />
49+
<DialogRef Id="MsiRMFilesInUse" />
50+
<DialogRef Id="PrepareDlg" />
51+
<DialogRef Id="ProgressDlg" />
52+
<DialogRef Id="ResumeDlg" />
53+
<DialogRef Id="UserExit" />
54+
55+
<Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath" Order="3">1</Publish>
56+
<Publish Dialog="BrowseDlg" Control="OK" Event="SpawnDialog" Value="InvalidDirDlg" Order="4"><![CDATA[WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
57+
58+
<Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish>
59+
60+
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg">NOT Installed</Publish>
61+
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">Installed AND PATCH</Publish>
62+
63+
<Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish>
64+
<Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
65+
<Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath" Order="2">NOT WIXUI_DONTVALIDATEPATH</Publish>
66+
<Publish Dialog="InstallDirDlg" Control="Next" Event="SpawnDialog" Value="InvalidDirDlg" Order="3"><![CDATA[NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
67+
<Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="4">WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1"</Publish>
68+
<Publish Dialog="InstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
69+
<Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" Order="2">1</Publish>
70+
71+
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="InstallDirDlg" Order="1">NOT Installed</Publish>
72+
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2">Installed AND NOT PATCH</Publish>
73+
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2">Installed AND PATCH</Publish>
74+
75+
<Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg">1</Publish>
76+
77+
<Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
78+
<Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
79+
<Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg">1</Publish>
80+
81+
<Property Id="ARPNOMODIFY" Value="1" />
82+
</UI>
83+
84+
<UIRef Id="WixUI_Common" />
85+
</Fragment>
86+
</Wix>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#pragma once
2+
3+
#include "resource.h"

0 commit comments

Comments
 (0)