OPS: Update Windows files

This commit is contained in:
Marcos Rodriguez Vélez 2021-07-20 12:21:46 -04:00
parent 361c27a937
commit 4fed24a47c
16 changed files with 125 additions and 222 deletions

View File

@ -50,7 +50,7 @@
6DD410BF266CB13D0087DE03 /* Models.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6DEB4BFA254FBA0E00E9F9AA /* Models.swift */; };
6DD410C0266CB1460087DE03 /* MarketWidget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6D9946622555A660000E52E8 /* MarketWidget.swift */; };
6DF25A9F249DB97E001D06F5 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6DF25A9E249DB97E001D06F5 /* LaunchScreen.storyboard */; };
6DFC807024EA0B6C007B8700 /* EFQRCode in Frameworks */ = {isa = PBXBuildFile; productRef = 6DFC806F24EA0B6C007B8700 /* EFQRCode */; };
6DFC807024EA0B6C007B8700 /* BuildFile in Frameworks */ = {isa = PBXBuildFile; productRef = 6DFC806F24EA0B6C007B8700 /* SwiftPackageProductDependency */; };
6DFC807224EA2FA9007B8700 /* ViewQRCodefaceController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6DFC807124EA2FA9007B8700 /* ViewQRCodefaceController.swift */; };
764B49B1420D4AEB8109BF62 /* libsqlite3.0.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B468CC34D5B41F3950078EF /* libsqlite3.0.tbd */; };
782F075B5DD048449E2DECE9 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = B9D9B3A7B2CB4255876B67AF /* libz.tbd */; };
@ -397,7 +397,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
6DFC807024EA0B6C007B8700 /* EFQRCode in Frameworks */,
6DFC807024EA0B6C007B8700 /* BuildFile in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -837,7 +837,7 @@
);
name = "BlueWalletWatch Extension";
packageProductDependencies = (
6DFC806F24EA0B6C007B8700 /* EFQRCode */,
6DFC806F24EA0B6C007B8700 /* SwiftPackageProductDependency */,
);
productName = "BlueWalletWatch Extension";
productReference = B40D4E3C225841ED00428FCC /* BlueWalletWatch Extension.appex */;
@ -921,7 +921,7 @@
);
mainGroup = 83CBB9F61A601CBA00E9B192;
packageReferences = (
6DFC806E24EA0B6C007B8700 /* XCRemoteSwiftPackageReference "EFQRCode" */,
6DFC806E24EA0B6C007B8700 /* RemoteSwiftPackageReference */,
);
productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
projectDirPath = "";
@ -1960,7 +1960,7 @@
/* End XCConfigurationList section */
/* Begin XCRemoteSwiftPackageReference section */
6DFC806E24EA0B6C007B8700 /* XCRemoteSwiftPackageReference "EFQRCode" */ = {
6DFC806E24EA0B6C007B8700 /* RemoteSwiftPackageReference */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/EFPrefix/EFQRCode.git";
requirement = {
@ -1971,9 +1971,9 @@
/* End XCRemoteSwiftPackageReference section */
/* Begin XCSwiftPackageProductDependency section */
6DFC806F24EA0B6C007B8700 /* EFQRCode */ = {
6DFC806F24EA0B6C007B8700 /* SwiftPackageProductDependency */ = {
isa = XCSwiftPackageProductDependency;
package = 6DFC806E24EA0B6C007B8700 /* XCRemoteSwiftPackageReference "EFQRCode" */;
package = 6DFC806E24EA0B6C007B8700 /* RemoteSwiftPackageReference */;
productName = EFQRCode;
};
/* End XCSwiftPackageProductDependency section */

View File

@ -4,26 +4,26 @@
*
* @format
*/
// const path = require('path');
// const blacklist = require('metro-config/src/defaults/blacklist');
const path = require('path');
const exclusionList = require('metro-config/src/defaults/exclusionList');
module.exports = {
resolver: {
// blacklistRE: blacklist([
// // This stops "react-native run-windows" from causing the metro server to crash if its already running
// new RegExp(`${path.resolve(__dirname, 'windows').replace(/[/\\]/g, '/')}.*`),
// // This prevents "react-native run-windows" from hitting: EBUSY: resource busy or locked, open msbuild.ProjectImports.zip
// /.*\.ProjectImports\.zip/,
// ]),
// },
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
},
blockList: exclusionList([
// This stops "react-native run-windows" from causing the metro server to crash if its already running
new RegExp(
`${path.resolve(__dirname, 'windows').replace(/[/\\]/g, '/')}.*`,
),
// This prevents "react-native run-windows" from hitting: EBUSY: resource busy or locked, open msbuild.ProjectImports.zip
/.*\.ProjectImports\.zip/,
]),
},
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: true,
},
}),
},
};

2
package-lock.json generated
View File

@ -19223,7 +19223,7 @@
}
},
"scryptsy": {
"version": "file:blue_modules/scryptsy",
"version": "file:https:/registry.npmjs.org/scryptsy/-/scryptsy-2.1.0.tgz",
"integrity": "sha512-1CdSqHQowJBnMAFyPEBRfqag/YP9OF394FV+4YREIJX4ljD7OxvQRDayyoyyCk+senRjSkP6VnUNQmVQqB6g7w=="
},
"secp256k1": {

View File

@ -55,7 +55,8 @@
"lint": "eslint *.js screen/**/*.js blue_modules/*.js class/**/*.js models/ loc/ tests/**/*.js components/**/*.js components/*.js",
"lint:fix": "npm run lint -- --fix",
"lint:quickfix": "git status --porcelain | grep -v '\\.json' | grep '\\.js' --color=never | awk '{print $2}' | xargs eslint --fix; exit 0",
"unit": "jest tests/unit/*"
"unit": "jest tests/unit/*",
"windows": "react-native run-windows"
},
"jest": {
"preset": "react-native",
@ -169,7 +170,7 @@
"react-native-watch-connectivity": "1.0.3",
"react-native-webview": "11.6.4",
"react-native-widget-center": "https://github.com/BlueWallet/react-native-widget-center#e2e9a9038b76d096bf929a87105a97a0a7095001",
"react-native-windows": "0.64.14",
"react-native-windows": "^0.64.0-0",
"react-test-render": "1.1.2",
"readable-stream": "3.6.0",
"realm": "10.6.0",

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Microsoft.ReactNative Experimental Features">
<!--
Changes compilation to assume use of WinUI 3 instead of System XAML.
Requires creation of new project.
See https://microsoft.github.io/react-native-windows/docs/winui3
-->
<UseWinUI3>false</UseWinUI3>
<!--
Compiles Hermes-related code and sets it to the default JS engine.
Requires the "ReactNative.Hermes.Windows" NuGet package.
See https://microsoft.github.io/react-native-windows/docs/hermes
-->
<UseHermes>false</UseHermes>
</PropertyGroup>
</Project>

14
windows/NuGet.Config Normal file
View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="repositoryPath" value="packages" />
</config>
<packageSources>
<clear />
<add key="Nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="react-native" value="https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources>
<clear />
</disabledPackageSources>
</configuration>

View File

@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29215.179
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bluewallet", "bluewallet\bluewallet.vcxproj", "{3B23E606-7EFC-44B4-818B-41A6525E4C9E}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bluewallet", "bluewallet\bluewallet.vcxproj", "{9A7ACA3E-5742-401A-B142-14184B1E685C}"
ProjectSection(ProjectDependencies) = postProject
{F7D32BD0-2749-483E-9A0D-1635EF7E3136} = {F7D32BD0-2749-483E-9A0D-1635EF7E3136}
EndProjectSection
@ -35,18 +35,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Mso", "..\node_modules\reac
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Include", "..\node_modules\react-native-windows\include\Include.vcxitems", "{EF074BA1-2D54-4D49-A28E-5E040B47CD2E}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ReactNativeAsyncStorage", "../node_modules/@react-native-async-storage/async-storage/windows/ReactNativeAsyncStorage/ReactNativeAsyncStorage.vcxproj", "{4855D892-E16C-404D-8286-0089E0F7F9C4}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ReactNativeCameraCPP", "../node_modules/react-native-camera/windows/ReactNativeCameraCPP/ReactNativeCameraCPP.vcxproj", "{7432C343-CC07-4BC7-9BD0-8C467BE0F018}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "RNDeviceInfoCPP", "../node_modules/react-native-device-info/windows/RNDeviceInfoCPP/RNDeviceInfoCPP.vcxproj", "{3E3931F2-4735-4417-8CB0-33668A7314D6}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "RNLocalize", "../node_modules/react-native-localize/windows/RNLocalize/RNLocalize.vcxproj", "{10E2379C-4264-444A-8656-B3D7E83ACB44}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ReactNativeWebView", "../node_modules/react-native-webview/windows/ReactNativeWebView/ReactNativeWebView.vcxproj", "{729D9AF8-CD9E-4427-9F6C-FB757E287729}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WebViewBridgeComponent", "../node_modules/react-native-webview/windows/WebViewBridgeComponent/WebViewBridgeComponent.vcxproj", "{FCB612AD-FACC-410C-828C-24B5940B2762}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
..\node_modules\react-native-windows\JSI\Shared\JSI.Shared.vcxitems*{0cc28589-39e4-4288-b162-97b959f8b843}*SharedItemsImports = 9
@ -72,30 +60,30 @@ Global
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Debug|ARM.ActiveCfg = Debug|ARM
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Debug|ARM.Build.0 = Debug|ARM
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Debug|ARM.Deploy.0 = Debug|ARM
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Debug|ARM64.ActiveCfg = Debug|ARM64
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Debug|ARM64.Build.0 = Debug|ARM64
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Debug|ARM64.Deploy.0 = Debug|ARM64
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Debug|x64.ActiveCfg = Debug|x64
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Debug|x64.Build.0 = Debug|x64
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Debug|x64.Deploy.0 = Debug|x64
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Debug|x86.ActiveCfg = Debug|Win32
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Debug|x86.Build.0 = Debug|Win32
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Debug|x86.Deploy.0 = Debug|Win32
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Release|ARM.ActiveCfg = Release|ARM
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Release|ARM.Build.0 = Release|ARM
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Release|ARM.Deploy.0 = Release|ARM
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Release|ARM64.ActiveCfg = Release|ARM64
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Release|ARM64.Build.0 = Release|ARM64
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Release|ARM64.Deploy.0 = Release|ARM64
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Release|x64.ActiveCfg = Release|x64
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Release|x64.Build.0 = Release|x64
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Release|x64.Deploy.0 = Release|x64
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Release|x86.ActiveCfg = Release|Win32
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Release|x86.Build.0 = Release|Win32
{3B23E606-7EFC-44B4-818B-41A6525E4C9E}.Release|x86.Deploy.0 = Release|Win32
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Debug|ARM.ActiveCfg = Debug|ARM
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Debug|ARM.Build.0 = Debug|ARM
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Debug|ARM.Deploy.0 = Debug|ARM
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Debug|ARM64.ActiveCfg = Debug|ARM64
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Debug|ARM64.Build.0 = Debug|ARM64
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Debug|ARM64.Deploy.0 = Debug|ARM64
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Debug|x64.ActiveCfg = Debug|x64
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Debug|x64.Build.0 = Debug|x64
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Debug|x64.Deploy.0 = Debug|x64
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Debug|x86.ActiveCfg = Debug|Win32
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Debug|x86.Build.0 = Debug|Win32
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Debug|x86.Deploy.0 = Debug|Win32
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Release|ARM.ActiveCfg = Release|ARM
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Release|ARM.Build.0 = Release|ARM
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Release|ARM.Deploy.0 = Release|ARM
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Release|ARM64.ActiveCfg = Release|ARM64
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Release|ARM64.Build.0 = Release|ARM64
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Release|ARM64.Deploy.0 = Release|ARM64
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Release|x64.ActiveCfg = Release|x64
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Release|x64.Build.0 = Release|x64
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Release|x64.Deploy.0 = Release|x64
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Release|x86.ActiveCfg = Release|Win32
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Release|x86.Build.0 = Release|Win32
{9A7ACA3E-5742-401A-B142-14184B1E685C}.Release|x86.Deploy.0 = Release|Win32
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Debug|ARM.ActiveCfg = Debug|ARM
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Debug|ARM.Build.0 = Debug|ARM
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Debug|ARM64.ActiveCfg = Debug|ARM64
@ -176,102 +164,6 @@ Global
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Release|x64.Build.0 = Release|x64
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Release|x86.ActiveCfg = Release|Win32
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Release|x86.Build.0 = Release|Win32
{4855D892-E16C-404D-8286-0089E0F7F9C4}.Debug|ARM.ActiveCfg = Debug|ARM
{4855D892-E16C-404D-8286-0089E0F7F9C4}.Debug|ARM.Build.0 = Debug|ARM
{4855D892-E16C-404D-8286-0089E0F7F9C4}.Debug|ARM64.ActiveCfg = Debug|ARM64
{4855D892-E16C-404D-8286-0089E0F7F9C4}.Debug|ARM64.Build.0 = Debug|ARM64
{4855D892-E16C-404D-8286-0089E0F7F9C4}.Debug|x64.ActiveCfg = Debug|x64
{4855D892-E16C-404D-8286-0089E0F7F9C4}.Debug|x64.Build.0 = Debug|x64
{4855D892-E16C-404D-8286-0089E0F7F9C4}.Debug|x86.ActiveCfg = Debug|Win32
{4855D892-E16C-404D-8286-0089E0F7F9C4}.Debug|x86.Build.0 = Debug|Win32
{4855D892-E16C-404D-8286-0089E0F7F9C4}.Release|ARM.ActiveCfg = Release|ARM
{4855D892-E16C-404D-8286-0089E0F7F9C4}.Release|ARM.Build.0 = Release|ARM
{4855D892-E16C-404D-8286-0089E0F7F9C4}.Release|ARM64.ActiveCfg = Release|ARM64
{4855D892-E16C-404D-8286-0089E0F7F9C4}.Release|ARM64.Build.0 = Release|ARM64
{4855D892-E16C-404D-8286-0089E0F7F9C4}.Release|x64.ActiveCfg = Release|x64
{4855D892-E16C-404D-8286-0089E0F7F9C4}.Release|x64.Build.0 = Release|x64
{4855D892-E16C-404D-8286-0089E0F7F9C4}.Release|x86.ActiveCfg = Release|Win32
{4855D892-E16C-404D-8286-0089E0F7F9C4}.Release|x86.Build.0 = Release|Win32
{7432C343-CC07-4BC7-9BD0-8C467BE0F018}.Debug|ARM.ActiveCfg = Debug|ARM
{7432C343-CC07-4BC7-9BD0-8C467BE0F018}.Debug|ARM.Build.0 = Debug|ARM
{7432C343-CC07-4BC7-9BD0-8C467BE0F018}.Debug|ARM64.ActiveCfg = Debug|ARM64
{7432C343-CC07-4BC7-9BD0-8C467BE0F018}.Debug|ARM64.Build.0 = Debug|ARM64
{7432C343-CC07-4BC7-9BD0-8C467BE0F018}.Debug|x64.ActiveCfg = Debug|x64
{7432C343-CC07-4BC7-9BD0-8C467BE0F018}.Debug|x64.Build.0 = Debug|x64
{7432C343-CC07-4BC7-9BD0-8C467BE0F018}.Debug|x86.ActiveCfg = Debug|Win32
{7432C343-CC07-4BC7-9BD0-8C467BE0F018}.Debug|x86.Build.0 = Debug|Win32
{7432C343-CC07-4BC7-9BD0-8C467BE0F018}.Release|ARM.ActiveCfg = Release|ARM
{7432C343-CC07-4BC7-9BD0-8C467BE0F018}.Release|ARM.Build.0 = Release|ARM
{7432C343-CC07-4BC7-9BD0-8C467BE0F018}.Release|ARM64.ActiveCfg = Release|ARM64
{7432C343-CC07-4BC7-9BD0-8C467BE0F018}.Release|ARM64.Build.0 = Release|ARM64
{7432C343-CC07-4BC7-9BD0-8C467BE0F018}.Release|x64.ActiveCfg = Release|x64
{7432C343-CC07-4BC7-9BD0-8C467BE0F018}.Release|x64.Build.0 = Release|x64
{7432C343-CC07-4BC7-9BD0-8C467BE0F018}.Release|x86.ActiveCfg = Release|Win32
{7432C343-CC07-4BC7-9BD0-8C467BE0F018}.Release|x86.Build.0 = Release|Win32
{3E3931F2-4735-4417-8CB0-33668A7314D6}.Debug|ARM.ActiveCfg = Debug|ARM
{3E3931F2-4735-4417-8CB0-33668A7314D6}.Debug|ARM.Build.0 = Debug|ARM
{3E3931F2-4735-4417-8CB0-33668A7314D6}.Debug|ARM64.ActiveCfg = Debug|ARM64
{3E3931F2-4735-4417-8CB0-33668A7314D6}.Debug|ARM64.Build.0 = Debug|ARM64
{3E3931F2-4735-4417-8CB0-33668A7314D6}.Debug|x64.ActiveCfg = Debug|x64
{3E3931F2-4735-4417-8CB0-33668A7314D6}.Debug|x64.Build.0 = Debug|x64
{3E3931F2-4735-4417-8CB0-33668A7314D6}.Debug|x86.ActiveCfg = Debug|Win32
{3E3931F2-4735-4417-8CB0-33668A7314D6}.Debug|x86.Build.0 = Debug|Win32
{3E3931F2-4735-4417-8CB0-33668A7314D6}.Release|ARM.ActiveCfg = Release|ARM
{3E3931F2-4735-4417-8CB0-33668A7314D6}.Release|ARM.Build.0 = Release|ARM
{3E3931F2-4735-4417-8CB0-33668A7314D6}.Release|ARM64.ActiveCfg = Release|ARM64
{3E3931F2-4735-4417-8CB0-33668A7314D6}.Release|ARM64.Build.0 = Release|ARM64
{3E3931F2-4735-4417-8CB0-33668A7314D6}.Release|x64.ActiveCfg = Release|x64
{3E3931F2-4735-4417-8CB0-33668A7314D6}.Release|x64.Build.0 = Release|x64
{3E3931F2-4735-4417-8CB0-33668A7314D6}.Release|x86.ActiveCfg = Release|Win32
{3E3931F2-4735-4417-8CB0-33668A7314D6}.Release|x86.Build.0 = Release|Win32
{10E2379C-4264-444A-8656-B3D7E83ACB44}.Debug|ARM.ActiveCfg = Debug|ARM
{10E2379C-4264-444A-8656-B3D7E83ACB44}.Debug|ARM.Build.0 = Debug|ARM
{10E2379C-4264-444A-8656-B3D7E83ACB44}.Debug|ARM64.ActiveCfg = Debug|ARM64
{10E2379C-4264-444A-8656-B3D7E83ACB44}.Debug|ARM64.Build.0 = Debug|ARM64
{10E2379C-4264-444A-8656-B3D7E83ACB44}.Debug|x64.ActiveCfg = Debug|x64
{10E2379C-4264-444A-8656-B3D7E83ACB44}.Debug|x64.Build.0 = Debug|x64
{10E2379C-4264-444A-8656-B3D7E83ACB44}.Debug|x86.ActiveCfg = Debug|Win32
{10E2379C-4264-444A-8656-B3D7E83ACB44}.Debug|x86.Build.0 = Debug|Win32
{10E2379C-4264-444A-8656-B3D7E83ACB44}.Release|ARM.ActiveCfg = Release|ARM
{10E2379C-4264-444A-8656-B3D7E83ACB44}.Release|ARM.Build.0 = Release|ARM
{10E2379C-4264-444A-8656-B3D7E83ACB44}.Release|ARM64.ActiveCfg = Release|ARM64
{10E2379C-4264-444A-8656-B3D7E83ACB44}.Release|ARM64.Build.0 = Release|ARM64
{10E2379C-4264-444A-8656-B3D7E83ACB44}.Release|x64.ActiveCfg = Release|x64
{10E2379C-4264-444A-8656-B3D7E83ACB44}.Release|x64.Build.0 = Release|x64
{10E2379C-4264-444A-8656-B3D7E83ACB44}.Release|x86.ActiveCfg = Release|Win32
{10E2379C-4264-444A-8656-B3D7E83ACB44}.Release|x86.Build.0 = Release|Win32
{729D9AF8-CD9E-4427-9F6C-FB757E287729}.Debug|ARM.ActiveCfg = Debug|ARM
{729D9AF8-CD9E-4427-9F6C-FB757E287729}.Debug|ARM.Build.0 = Debug|ARM
{729D9AF8-CD9E-4427-9F6C-FB757E287729}.Debug|ARM64.ActiveCfg = Debug|ARM64
{729D9AF8-CD9E-4427-9F6C-FB757E287729}.Debug|ARM64.Build.0 = Debug|ARM64
{729D9AF8-CD9E-4427-9F6C-FB757E287729}.Debug|x64.ActiveCfg = Debug|x64
{729D9AF8-CD9E-4427-9F6C-FB757E287729}.Debug|x64.Build.0 = Debug|x64
{729D9AF8-CD9E-4427-9F6C-FB757E287729}.Debug|x86.ActiveCfg = Debug|Win32
{729D9AF8-CD9E-4427-9F6C-FB757E287729}.Debug|x86.Build.0 = Debug|Win32
{729D9AF8-CD9E-4427-9F6C-FB757E287729}.Release|ARM.ActiveCfg = Release|ARM
{729D9AF8-CD9E-4427-9F6C-FB757E287729}.Release|ARM.Build.0 = Release|ARM
{729D9AF8-CD9E-4427-9F6C-FB757E287729}.Release|ARM64.ActiveCfg = Release|ARM64
{729D9AF8-CD9E-4427-9F6C-FB757E287729}.Release|ARM64.Build.0 = Release|ARM64
{729D9AF8-CD9E-4427-9F6C-FB757E287729}.Release|x64.ActiveCfg = Release|x64
{729D9AF8-CD9E-4427-9F6C-FB757E287729}.Release|x64.Build.0 = Release|x64
{729D9AF8-CD9E-4427-9F6C-FB757E287729}.Release|x86.ActiveCfg = Release|Win32
{729D9AF8-CD9E-4427-9F6C-FB757E287729}.Release|x86.Build.0 = Release|Win32
{FCB612AD-FACC-410C-828C-24B5940B2762}.Debug|ARM.ActiveCfg = Debug|ARM
{FCB612AD-FACC-410C-828C-24B5940B2762}.Debug|ARM.Build.0 = Debug|ARM
{FCB612AD-FACC-410C-828C-24B5940B2762}.Debug|ARM64.ActiveCfg = Debug|ARM64
{FCB612AD-FACC-410C-828C-24B5940B2762}.Debug|ARM64.Build.0 = Debug|ARM64
{FCB612AD-FACC-410C-828C-24B5940B2762}.Debug|x64.ActiveCfg = Debug|x64
{FCB612AD-FACC-410C-828C-24B5940B2762}.Debug|x64.Build.0 = Debug|x64
{FCB612AD-FACC-410C-828C-24B5940B2762}.Debug|x86.ActiveCfg = Debug|Win32
{FCB612AD-FACC-410C-828C-24B5940B2762}.Debug|x86.Build.0 = Debug|Win32
{FCB612AD-FACC-410C-828C-24B5940B2762}.Release|ARM.ActiveCfg = Release|ARM
{FCB612AD-FACC-410C-828C-24B5940B2762}.Release|ARM.Build.0 = Release|ARM
{FCB612AD-FACC-410C-828C-24B5940B2762}.Release|ARM64.ActiveCfg = Release|ARM64
{FCB612AD-FACC-410C-828C-24B5940B2762}.Release|ARM64.Build.0 = Release|ARM64
{FCB612AD-FACC-410C-828C-24B5940B2762}.Release|x64.ActiveCfg = Release|x64
{FCB612AD-FACC-410C-828C-24B5940B2762}.Release|x64.Build.0 = Release|x64
{FCB612AD-FACC-410C-828C-24B5940B2762}.Release|x86.ActiveCfg = Release|Win32
{FCB612AD-FACC-410C-828C-24B5940B2762}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@ -5,14 +5,13 @@
#include "AutolinkedNativeModules.g.h"
#include "ReactPackageProvider.h"
using namespace winrt::bluewallet;
using namespace winrt::bluewallet::implementation;
using namespace winrt;
using namespace Windows::UI::Xaml;
using namespace Windows::UI::Xaml::Controls;
using namespace Windows::UI::Xaml::Navigation;
using namespace Windows::ApplicationModel;
namespace winrt::bluewallet::implementation
{
/// <summary>
/// Initializes the singleton application object. This is the first line of
/// authored code executed, and as such is the logical equivalent of main() or
@ -25,7 +24,7 @@ App::App() noexcept
InstanceSettings().UseWebDebugger(false);
InstanceSettings().UseFastRefresh(false);
#else
JavaScriptMainModuleName(L"index");
JavaScriptBundleFile(L"index");
InstanceSettings().UseWebDebugger(true);
InstanceSettings().UseFastRefresh(true);
#endif
@ -53,7 +52,19 @@ void App::OnLaunched(activation::LaunchActivatedEventArgs const& e)
super::OnLaunched(e);
Frame rootFrame = Window::Current().Content().as<Frame>();
rootFrame.Navigate(xaml_typename<bluewallet::MainPage>(), box_value(e.Arguments()));
rootFrame.Navigate(xaml_typename<MainPage>(), box_value(e.Arguments()));
}
/// <summary>
/// Invoked when the application is activated by some means other than normal launching.
/// </summary>
void App::OnActivated(Activation::IActivatedEventArgs const &e) {
auto preActivationContent = Window::Current().Content();
super::OnActivated(e);
if (!preActivationContent && Window::Current()) {
Frame rootFrame = Window::Current().Content().as<Frame>();
rootFrame.Navigate(xaml_typename<MainPage>(), nullptr);
}
}
/// <summary>
@ -77,3 +88,5 @@ void App::OnNavigationFailed(IInspectable const&, NavigationFailedEventArgs cons
{
throw hresult_error(E_FAIL, hstring(L"Failed to load Page ") + e.SourcePageType().Name);
}
} // namespace winrt::bluewallet::implementation

View File

@ -10,6 +10,7 @@ namespace winrt::bluewallet::implementation
{
App() noexcept;
void OnLaunched(activation::LaunchActivatedEventArgs const&);
void OnActivated(Windows::ApplicationModel::Activation::IActivatedEventArgs const &e);
void OnSuspending(IInspectable const&, Windows::ApplicationModel::SuspendingEventArgs const&);
void OnNavigationFailed(IInspectable const&, Windows::UI::Xaml::Navigation::NavigationFailedEventArgs const&);
private:

View File

@ -3,36 +3,12 @@
#include "pch.h"
#include "AutolinkedNativeModules.g.h"
// Includes from @react-native-async-storage/async-storage
#include <winrt/ReactNativeAsyncStorage.h>
// Includes from react-native-camera
#include <winrt/ReactNativeCameraCPP.h>
// Includes from react-native-device-info
#include <winrt/RNDeviceInfoCPP.h>
// Includes from react-native-localize
#include <winrt/RNLocalize.h>
// Includes from react-native-webview
#include <winrt/ReactNativeWebView.h>
namespace winrt::Microsoft::ReactNative
{
void RegisterAutolinkedNativeModulePackages(winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::ReactNative::IReactPackageProvider> const& packageProviders)
{
// IReactPackageProviders from @react-native-async-storage/async-storage
packageProviders.Append(winrt::ReactNativeAsyncStorage::ReactPackageProvider());
// IReactPackageProviders from react-native-camera
packageProviders.Append(winrt::ReactNativeCameraCPP::ReactPackageProvider());
// IReactPackageProviders from react-native-device-info
packageProviders.Append(winrt::RNDeviceInfoCPP::ReactPackageProvider());
// IReactPackageProviders from react-native-localize
packageProviders.Append(winrt::RNLocalize::ReactPackageProvider());
// IReactPackageProviders from react-native-webview
packageProviders.Append(winrt::ReactNativeWebView::ReactPackageProvider());
UNREFERENCED_PARAMETER(packageProviders);
}
}

View File

@ -3,4 +3,4 @@
<!-- AutolinkedNativeModules.g.props contents generated by "react-native autolink-windows" -->
<PropertyGroup>
</PropertyGroup>
</Project>
</Project>

View File

@ -2,25 +2,5 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- AutolinkedNativeModules.g.targets contents generated by "react-native autolink-windows" -->
<ItemGroup>
<!-- Projects from @react-native-async-storage/async-storage -->
<ProjectReference Include="$(ProjectDir)../../node_modules/@react-native-async-storage/async-storage/windows/ReactNativeAsyncStorage/ReactNativeAsyncStorage.vcxproj">
<Project>{4855D892-E16C-404D-8286-0089E0F7F9C4}</Project>
</ProjectReference>
<!-- Projects from react-native-camera -->
<ProjectReference Include="$(ProjectDir)../../node_modules/react-native-camera/windows/ReactNativeCameraCPP/ReactNativeCameraCPP.vcxproj">
<Project>{7432c343-cc07-4bc7-9bd0-8c467be0f018}</Project>
</ProjectReference>
<!-- Projects from react-native-device-info -->
<ProjectReference Include="$(ProjectDir)../../node_modules/react-native-device-info/windows/RNDeviceInfoCPP/RNDeviceInfoCPP.vcxproj">
<Project>{3e3931f2-4735-4417-8cb0-33668a7314d6}</Project>
</ProjectReference>
<!-- Projects from react-native-localize -->
<ProjectReference Include="$(ProjectDir)../../node_modules/react-native-localize/windows/RNLocalize/RNLocalize.vcxproj">
<Project>{10e2379c-4264-444a-8656-b3d7e83acb44}</Project>
</ProjectReference>
<!-- Projects from react-native-webview -->
<ProjectReference Include="$(ProjectDir)../../node_modules/react-native-webview/windows/ReactNativeWebView/ReactNativeWebView.vcxproj">
<Project>{729d9af8-cd9e-4427-9f6c-fb757e287729}</Project>
</ProjectReference>
</ItemGroup>
</Project>

View File

@ -7,11 +7,11 @@
IgnorableNamespaces="uap mp">
<Identity
Name="734d2cec-f8c5-4e8d-a7e5-1e5e25863c5f"
Name="4215159e-3bf1-4b5b-8a26-a40de47b48e2"
Publisher="CN=marcosrodriguezvelez"
Version="1.0.0.0" />
<mp:PhoneIdentity PhoneProductId="734d2cec-f8c5-4e8d-a7e5-1e5e25863c5f" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
<mp:PhoneIdentity PhoneProductId="4215159e-3bf1-4b5b-8a26-a40de47b48e2" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
<Properties>
<DisplayName>bluewallet</DisplayName>

View File

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="16.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.props')" />
<Import Project="..\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.props')" />
<Import Project="$(SolutionDir)\ExperimentalFeatures.props" Condition="Exists('$(SolutionDir)\ExperimentalFeatures.props')" />
<PropertyGroup Label="Globals">
<CppWinRTOptimized>true</CppWinRTOptimized>
<CppWinRTRootNamespaceAutoMerge>true</CppWinRTRootNamespaceAutoMerge>
<MinimalCoreWin>true</MinimalCoreWin>
<ProjectGuid>{3b23e606-7efc-44b4-818b-41a6525e4c9e}</ProjectGuid>
<ProjectGuid>{9a7aca3e-5742-401a-b142-14184b1e685c}</ProjectGuid>
<ProjectName>bluewallet</ProjectName>
<RootNamespace>bluewallet</RootNamespace>
<DefaultLanguage>en-US</DefaultLanguage>
@ -175,21 +176,21 @@
</ImportGroup>
<Target Name="EnsureReactNativeWindowsTargets" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references targets in your node_modules\react-native-windows folder. The missing file is {0}.</ErrorText>
<ErrorText>This project references targets in your node_modules\react-native-windows folder that are missing. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.props')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.props'))" />
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.targets'))" />
</Target>
<ImportGroup Label="ExtensionTargets">
<Import Project="..\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.targets')" />
<Import Project="..\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.targets')" />
<Import Project="..\packages\$(WinUIPackageName).$(WinUIPackageVersion)\build\native\$(WinUIPackageName).targets" Condition="Exists('..\packages\$(WinUIPackageName).$(WinUIPackageVersion)\build\native\$(WinUIPackageName).targets')" />
</ImportGroup>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.props'))" />
<Error Condition="!Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.targets'))" />
<Error Condition="!Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.props'))" />
<Error Condition="!Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.targets'))" />
<Error Condition="!Exists('..\packages\$(WinUIPackageName).$(WinUIPackageVersion)\build\native\$(WinUIPackageName).targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\$(WinUIPackageName).$(WinUIPackageVersion)\build\native\$(WinUIPackageName).targets'))" />
</Target>
</Project>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.Windows.CppWinRT" version="2.0.200615.7" targetFramework="native" />
<package id="Microsoft.Windows.CppWinRT" version="2.0.210312.4" targetFramework="native" />
<package id="Microsoft.UI.Xaml" version="2.3.191129002" targetFramework="native" />
</packages>

View File

@ -1,4 +1,4 @@
#pragma once
#pragma once
#define NOMINMAX
@ -24,3 +24,4 @@
#include <winrt/Microsoft.UI.Xaml.Controls.h>
#include <winrt/Microsoft.UI.Xaml.Media.h>
#include <winrt/Microsoft.UI.Xaml.XamlTypeInfo.h>
using namespace winrt::Windows::Foundation;