react-native-blob-util 0.16.3 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +29 -3
- package/Migration.md +41 -0
- package/README.md +13 -6
- package/android/build.gradle +19 -1
- package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilBody.java +6 -6
- package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilFS.java +12 -8
- package/android/src/main/java/com/ReactNativeBlobUtil/{ReactNativeBlobUtil.java → ReactNativeBlobUtilImpl.java} +19 -78
- package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilMediaCollection.java +5 -5
- package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilPackage.java +31 -21
- package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilReq.java +25 -23
- package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilStream.java +6 -6
- package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilUtils.java +2 -2
- package/android/src/main/java/com/ReactNativeBlobUtil/Utils/MimeType.java +1 -1
- package/android/src/newarch/java/com/ReactNativeBlobUtil/ReactNativeBlobUtil.java +281 -0
- package/android/src/oldarch/java/com/ReactNativeBlobUtil/ReactNativeBlobUtil.java +242 -0
- package/android.js +2 -3
- package/class/ReactNativeBlobUtilFile.js +1 -13
- package/class/ReactNativeBlobUtilReadStream.js +1 -2
- package/class/ReactNativeBlobUtilSession.js +1 -2
- package/class/ReactNativeBlobUtilWriteStream.js +1 -3
- package/codegenSpecs/NativeBlobUtils.js +77 -0
- package/fetch.js +2 -2
- package/fs.js +15 -22
- package/index.js +2 -2
- package/ios/ReactNativeBlobUtil/ReactNativeBlobUtil.h +10 -1
- package/ios/ReactNativeBlobUtil/{ReactNativeBlobUtil.m → ReactNativeBlobUtil.mm} +334 -41
- package/ios/{ReactNativeBlobUtilConst.m → ReactNativeBlobUtilConst.mm} +0 -0
- package/ios/ReactNativeBlobUtilFS.h +5 -5
- package/ios/{ReactNativeBlobUtilFS.m → ReactNativeBlobUtilFS.mm} +32 -26
- package/ios/{ReactNativeBlobUtilFileTransformer.m → ReactNativeBlobUtilFileTransformer.mm} +0 -0
- package/ios/ReactNativeBlobUtilNetwork.h +2 -2
- package/ios/{ReactNativeBlobUtilNetwork.m → ReactNativeBlobUtilNetwork.mm} +15 -17
- package/ios/{ReactNativeBlobUtilProgress.m → ReactNativeBlobUtilProgress.mm} +4 -4
- package/ios/{ReactNativeBlobUtilReqBuilder.m → ReactNativeBlobUtilReqBuilder.mm} +4 -4
- package/ios/ReactNativeBlobUtilRequest.h +4 -2
- package/ios/{ReactNativeBlobUtilRequest.m → ReactNativeBlobUtilRequest.mm} +16 -11
- package/ios.js +2 -3
- package/mediacollection.js +2 -4
- package/package.json +7 -2
- package/react-native-blob-util.podspec +21 -1
- package/examples/ReactNativeBlobUtil/.buckconfig +0 -6
- package/examples/ReactNativeBlobUtil/.eslintrc.js +0 -4
- package/examples/ReactNativeBlobUtil/.prettierrc.js +0 -6
- package/examples/ReactNativeBlobUtil/App.js +0 -698
- package/examples/ReactNativeBlobUtil/index.js +0 -9
- package/examples/ReactNativeBlobUtil/metro.config.js +0 -27
- package/examples/ReactNativeBlobUtil/package.json +0 -31
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/App.cpp +0 -80
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/App.h +0 -20
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/App.idl +0 -3
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/App.xaml +0 -10
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/Assets/LockScreenLogo.scale-200.png +0 -0
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/Assets/SplashScreen.scale-200.png +0 -0
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/Assets/Square150x150Logo.scale-200.png +0 -0
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/Assets/Square44x44Logo.scale-200.png +0 -0
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/Assets/Square44x44Logo.targetsize-24_altform-unplated.png +0 -0
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/Assets/StoreLogo.png +0 -0
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/Assets/Wide310x150Logo.scale-200.png +0 -0
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/AutolinkedNativeModules.g.cpp +0 -18
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/AutolinkedNativeModules.g.h +0 -10
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/AutolinkedNativeModules.g.targets +0 -11
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/MainPage.cpp +0 -24
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/MainPage.h +0 -21
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/MainPage.idl +0 -8
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/MainPage.xaml +0 -16
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/Package.appxmanifest +0 -50
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/PropertySheet.props +0 -16
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/ReactNativeBlobUtilWin.vcxproj +0 -196
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/ReactNativeBlobUtilWin.vcxproj.filters +0 -65
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/ReactNativeBlobUtilWin_TemporaryKey.pfx +0 -0
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/ReactPackageProvider.cpp +0 -18
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/ReactPackageProvider.h +0 -15
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/packages.config +0 -5
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/pch.cpp +0 -1
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/pch.h +0 -26
- package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin.sln +0 -207
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Metro configuration for React Native
|
|
3
|
-
* https://github.com/facebook/react-native
|
|
4
|
-
*
|
|
5
|
-
* @format
|
|
6
|
-
*/
|
|
7
|
-
const path = require('path');
|
|
8
|
-
const blacklist = require('metro-config/src/defaults/blacklist');
|
|
9
|
-
|
|
10
|
-
module.exports = {
|
|
11
|
-
resolver: {
|
|
12
|
-
blacklistRE: blacklist([
|
|
13
|
-
// This stops "react-native run-windows" from causing the metro server to crash if its already running
|
|
14
|
-
new RegExp(`${path.resolve(__dirname, 'windows').replace(/[/\\]/g, '/')}.*`),
|
|
15
|
-
// This prevents "react-native run-windows" from hitting: EBUSY: resource busy or locked, open msbuild.ProjectImports.zip
|
|
16
|
-
/.*\.ProjectImports\.zip/,
|
|
17
|
-
]),
|
|
18
|
-
},
|
|
19
|
-
transformer: {
|
|
20
|
-
getTransformOptions: async () => ({
|
|
21
|
-
transform: {
|
|
22
|
-
experimentalImportSupport: false,
|
|
23
|
-
inlineRequires: false,
|
|
24
|
-
},
|
|
25
|
-
}),
|
|
26
|
-
},
|
|
27
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ReactNativeBlobUtilWin",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"private": true,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"android": "react-native run-android",
|
|
7
|
-
"ios": "react-native run-ios",
|
|
8
|
-
"start": "react-native start",
|
|
9
|
-
"test": "jest",
|
|
10
|
-
"lint": "eslint ."
|
|
11
|
-
},
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"react": "16.13.1",
|
|
14
|
-
"react-native": "^0.63.0",
|
|
15
|
-
"react-native-windows": "^0.64.0",
|
|
16
|
-
"react-native-blob-util": "^0.12.0"
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@babel/core": "^7.8.4",
|
|
20
|
-
"@babel/runtime": "^7.8.4",
|
|
21
|
-
"@react-native-community/eslint-config": "^1.1.0",
|
|
22
|
-
"babel-jest": "^25.1.0",
|
|
23
|
-
"eslint": "^6.5.1",
|
|
24
|
-
"jest": "^25.1.0",
|
|
25
|
-
"metro-react-native-babel-preset": "^0.59.0",
|
|
26
|
-
"react-test-renderer": "16.13.1"
|
|
27
|
-
},
|
|
28
|
-
"jest": {
|
|
29
|
-
"preset": "react-native"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
#include "pch.h"
|
|
2
|
-
|
|
3
|
-
#include "App.h"
|
|
4
|
-
|
|
5
|
-
#include "AutolinkedNativeModules.g.h"
|
|
6
|
-
#include "ReactPackageProvider.h"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
using namespace winrt::ReactNativeBlobUtilWin;
|
|
10
|
-
using namespace winrt::ReactNativeBlobUtilWin::implementation;
|
|
11
|
-
using namespace winrt;
|
|
12
|
-
using namespace Windows::UI::Xaml;
|
|
13
|
-
using namespace Windows::UI::Xaml::Controls;
|
|
14
|
-
using namespace Windows::UI::Xaml::Navigation;
|
|
15
|
-
using namespace Windows::ApplicationModel;
|
|
16
|
-
|
|
17
|
-
/// <summary>
|
|
18
|
-
/// Initializes the singleton application object. This is the first line of
|
|
19
|
-
/// authored code executed, and as such is the logical equivalent of main() or
|
|
20
|
-
/// WinMain().
|
|
21
|
-
/// </summary>
|
|
22
|
-
App::App() noexcept
|
|
23
|
-
{
|
|
24
|
-
#if BUNDLE
|
|
25
|
-
JavaScriptBundleFile(L"index.windows");
|
|
26
|
-
InstanceSettings().UseWebDebugger(false);
|
|
27
|
-
InstanceSettings().UseFastRefresh(false);
|
|
28
|
-
#else
|
|
29
|
-
JavaScriptMainModuleName(L"index");
|
|
30
|
-
InstanceSettings().UseWebDebugger(true);
|
|
31
|
-
InstanceSettings().UseFastRefresh(true);
|
|
32
|
-
#endif
|
|
33
|
-
|
|
34
|
-
#if _DEBUG
|
|
35
|
-
InstanceSettings().UseDeveloperSupport(true);
|
|
36
|
-
#else
|
|
37
|
-
InstanceSettings().UseDeveloperSupport(false);
|
|
38
|
-
#endif
|
|
39
|
-
|
|
40
|
-
RegisterAutolinkedNativeModulePackages(PackageProviders()); // Includes any autolinked modules
|
|
41
|
-
|
|
42
|
-
PackageProviders().Append(make<ReactPackageProvider>()); // Includes all modules in this project
|
|
43
|
-
|
|
44
|
-
InitializeComponent();
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/// <summary>
|
|
48
|
-
/// Invoked when the application is launched normally by the end user. Other entry points
|
|
49
|
-
/// will be used such as when the application is launched to open a specific file.
|
|
50
|
-
/// </summary>
|
|
51
|
-
/// <param name="e">Details about the launch request and process.</param>
|
|
52
|
-
void App::OnLaunched(activation::LaunchActivatedEventArgs const& e)
|
|
53
|
-
{
|
|
54
|
-
super::OnLaunched(e);
|
|
55
|
-
|
|
56
|
-
Frame rootFrame = Window::Current().Content().as<Frame>();
|
|
57
|
-
rootFrame.Navigate(xaml_typename<ReactNativeBlobUtilWin::MainPage>(), box_value(e.Arguments()));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/// <summary>
|
|
61
|
-
/// Invoked when application execution is being suspended. Application state is saved
|
|
62
|
-
/// without knowing whether the application will be terminated or resumed with the contents
|
|
63
|
-
/// of memory still intact.
|
|
64
|
-
/// </summary>
|
|
65
|
-
/// <param name="sender">The source of the suspend request.</param>
|
|
66
|
-
/// <param name="e">Details about the suspend request.</param>
|
|
67
|
-
void App::OnSuspending([[maybe_unused]] IInspectable const& sender, [[maybe_unused]] SuspendingEventArgs const& e)
|
|
68
|
-
{
|
|
69
|
-
// Save application state and stop any background activity
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/// <summary>
|
|
73
|
-
/// Invoked when Navigation to a certain page fails
|
|
74
|
-
/// </summary>
|
|
75
|
-
/// <param name="sender">The Frame which failed navigation</param>
|
|
76
|
-
/// <param name="e">Details about the navigation failure</param>
|
|
77
|
-
void App::OnNavigationFailed(IInspectable const&, NavigationFailedEventArgs const& e)
|
|
78
|
-
{
|
|
79
|
-
throw hresult_error(E_FAIL, hstring(L"Failed to load Page ") + e.SourcePageType().Name);
|
|
80
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#pragma once
|
|
2
|
-
|
|
3
|
-
#include "App.xaml.g.h"
|
|
4
|
-
|
|
5
|
-
namespace activation = winrt::Windows::ApplicationModel::Activation;
|
|
6
|
-
|
|
7
|
-
namespace winrt::ReactNativeBlobUtilWin::implementation
|
|
8
|
-
{
|
|
9
|
-
struct App : AppT<App>
|
|
10
|
-
{
|
|
11
|
-
App() noexcept;
|
|
12
|
-
void OnLaunched(activation::LaunchActivatedEventArgs const&);
|
|
13
|
-
void OnSuspending(IInspectable const&, Windows::ApplicationModel::SuspendingEventArgs const&);
|
|
14
|
-
void OnNavigationFailed(IInspectable const&, Windows::UI::Xaml::Navigation::NavigationFailedEventArgs const&);
|
|
15
|
-
private:
|
|
16
|
-
using super = AppT<App>;
|
|
17
|
-
};
|
|
18
|
-
} // namespace winrt::ReactNativeBlobUtilWin::implementation
|
|
19
|
-
|
|
20
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<react:ReactApplication
|
|
2
|
-
x:Class="ReactNativeBlobUtilWin.App"
|
|
3
|
-
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
4
|
-
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
5
|
-
xmlns:local="using:ReactNativeBlobUtilWin"
|
|
6
|
-
xmlns:react="using:Microsoft.ReactNative">
|
|
7
|
-
<Application.Resources>
|
|
8
|
-
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
|
|
9
|
-
</Application.Resources>
|
|
10
|
-
</react:ReactApplication>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/AutolinkedNativeModules.g.cpp
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// AutolinkedNativeModules.g.cpp contents generated by "react-native autolink-windows"
|
|
2
|
-
// clang-format off
|
|
3
|
-
#include "pch.h"
|
|
4
|
-
#include "AutolinkedNativeModules.g.h"
|
|
5
|
-
|
|
6
|
-
// Includes from ReactNativeBlobUtil
|
|
7
|
-
#include <winrt/ReactNativeBlobUtil.h>
|
|
8
|
-
|
|
9
|
-
namespace winrt::Microsoft::ReactNative
|
|
10
|
-
{
|
|
11
|
-
|
|
12
|
-
void RegisterAutolinkedNativeModulePackages(winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::ReactNative::IReactPackageProvider> const& packageProviders)
|
|
13
|
-
{
|
|
14
|
-
// IReactPackageProviders from ReactNativeBlobUtil
|
|
15
|
-
packageProviders.Append(winrt::ReactNativeBlobUtil::ReactPackageProvider());
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
}
|
package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/AutolinkedNativeModules.g.h
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// AutolinkedNativeModules.g.h contents generated by "react-native autolink-windows"
|
|
2
|
-
|
|
3
|
-
#pragma once
|
|
4
|
-
|
|
5
|
-
namespace winrt::Microsoft::ReactNative
|
|
6
|
-
{
|
|
7
|
-
|
|
8
|
-
void RegisterAutolinkedNativeModulePackages(winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::ReactNative::IReactPackageProvider> const& packageProviders);
|
|
9
|
-
|
|
10
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
-
<!-- AutolinkedNativeModules.g.targets contents generated by "react-native autolink-windows" -->
|
|
4
|
-
<ItemGroup>
|
|
5
|
-
<!-- Projects from ReactNativeBlobUtil -->
|
|
6
|
-
<!-- We use direct dependecy instead to develop the ReactNativeBlobUtil component -->
|
|
7
|
-
<ProjectReference Include="..\..\..\..\windows\ReactNativeBlobUtil\ReactNativeBlobUtil.vcxproj">
|
|
8
|
-
<Project>{cdde3311-efd2-462d-8551-93637a7fae92}</Project>
|
|
9
|
-
</ProjectReference>
|
|
10
|
-
</ItemGroup>
|
|
11
|
-
</Project>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#include "pch.h"
|
|
2
|
-
#include "MainPage.h"
|
|
3
|
-
#if __has_include("MainPage.g.cpp")
|
|
4
|
-
#include "MainPage.g.cpp"
|
|
5
|
-
#endif
|
|
6
|
-
|
|
7
|
-
#include "App.h"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
using namespace winrt;
|
|
12
|
-
using namespace Windows::UI::Xaml;
|
|
13
|
-
|
|
14
|
-
namespace winrt::ReactNativeBlobUtilWin::implementation
|
|
15
|
-
{
|
|
16
|
-
MainPage::MainPage()
|
|
17
|
-
{
|
|
18
|
-
InitializeComponent();
|
|
19
|
-
auto app = Application::Current().as<App>();
|
|
20
|
-
ReactRootView().ReactNativeHost(app->Host());
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#pragma once
|
|
2
|
-
#include "MainPage.g.h"
|
|
3
|
-
#include <winrt/Microsoft.ReactNative.h>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
namespace winrt::ReactNativeBlobUtilWin::implementation
|
|
7
|
-
{
|
|
8
|
-
struct MainPage : MainPageT<MainPage>
|
|
9
|
-
{
|
|
10
|
-
MainPage();
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
namespace winrt::ReactNativeBlobUtilWin::factory_implementation
|
|
15
|
-
{
|
|
16
|
-
struct MainPage : MainPageT<MainPage, implementation::MainPage>
|
|
17
|
-
{
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<Page
|
|
2
|
-
x:Class="ReactNativeBlobUtilWin.MainPage"
|
|
3
|
-
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
4
|
-
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
5
|
-
xmlns:local="using:ReactNativeBlobUtilWin"
|
|
6
|
-
xmlns:react="using:Microsoft.ReactNative"
|
|
7
|
-
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
8
|
-
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
9
|
-
mc:Ignorable="d"
|
|
10
|
-
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
|
11
|
-
<react:ReactRootView
|
|
12
|
-
x:Name="ReactRootView"
|
|
13
|
-
ComponentName="ReactNativeBlobUtilWin"
|
|
14
|
-
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
|
|
15
|
-
MinHeight="400"/>
|
|
16
|
-
</Page>
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
|
|
3
|
-
<Package
|
|
4
|
-
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
|
|
5
|
-
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
|
|
6
|
-
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
|
|
7
|
-
IgnorableNamespaces="uap mp">
|
|
8
|
-
|
|
9
|
-
<Identity
|
|
10
|
-
Name="cf7fc71c-3c45-4933-b6e1-d925ae04770b"
|
|
11
|
-
Publisher="CN=andre"
|
|
12
|
-
Version="1.0.0.0" />
|
|
13
|
-
|
|
14
|
-
<mp:PhoneIdentity PhoneProductId="cf7fc71c-3c45-4933-b6e1-d925ae04770b" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
|
|
15
|
-
|
|
16
|
-
<Properties>
|
|
17
|
-
<DisplayName>ReactNativeBlobUtilWin</DisplayName>
|
|
18
|
-
<PublisherDisplayName>andre</PublisherDisplayName>
|
|
19
|
-
<Logo>Assets\StoreLogo.png</Logo>
|
|
20
|
-
</Properties>
|
|
21
|
-
|
|
22
|
-
<Dependencies>
|
|
23
|
-
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
|
|
24
|
-
</Dependencies>
|
|
25
|
-
|
|
26
|
-
<Resources>
|
|
27
|
-
<Resource Language="x-generate"/>
|
|
28
|
-
</Resources>
|
|
29
|
-
|
|
30
|
-
<Applications>
|
|
31
|
-
<Application
|
|
32
|
-
Id="App"
|
|
33
|
-
Executable="$targetnametoken$.exe"
|
|
34
|
-
EntryPoint="ReactNativeBlobUtilWin.App">
|
|
35
|
-
<uap:VisualElements
|
|
36
|
-
DisplayName="ReactNativeBlobUtilWin"
|
|
37
|
-
Square150x150Logo="Assets\Square150x150Logo.png"
|
|
38
|
-
Square44x44Logo="Assets\Square44x44Logo.png"
|
|
39
|
-
Description="ReactNativeBlobUtilWin"
|
|
40
|
-
BackgroundColor="transparent">
|
|
41
|
-
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/>
|
|
42
|
-
<uap:SplashScreen Image="Assets\SplashScreen.png" />
|
|
43
|
-
</uap:VisualElements>
|
|
44
|
-
</Application>
|
|
45
|
-
</Applications>
|
|
46
|
-
|
|
47
|
-
<Capabilities>
|
|
48
|
-
<Capability Name="internetClient" />
|
|
49
|
-
</Capabilities>
|
|
50
|
-
</Package>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
-
<ImportGroup Label="PropertySheets" />
|
|
4
|
-
<PropertyGroup Label="UserMacros" />
|
|
5
|
-
<!--
|
|
6
|
-
To customize common C++/WinRT project properties:
|
|
7
|
-
* right-click the project node
|
|
8
|
-
* expand the Common Properties item
|
|
9
|
-
* select the C++/WinRT property page
|
|
10
|
-
|
|
11
|
-
For more advanced scenarios, and complete documentation, please see:
|
|
12
|
-
https://github.com/Microsoft/xlang/tree/master/src/package/cppwinrt/nuget
|
|
13
|
-
-->
|
|
14
|
-
<PropertyGroup />
|
|
15
|
-
<ItemDefinitionGroup />
|
|
16
|
-
</Project>
|
package/examples/ReactNativeBlobUtil/windows/ReactNativeBlobUtilWin/ReactNativeBlobUtilWin.vcxproj
DELETED
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<Project ToolsVersion="16.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
-
<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')" />
|
|
4
|
-
<PropertyGroup Label="Globals">
|
|
5
|
-
<CppWinRTOptimized>true</CppWinRTOptimized>
|
|
6
|
-
<CppWinRTRootNamespaceAutoMerge>true</CppWinRTRootNamespaceAutoMerge>
|
|
7
|
-
<MinimalCoreWin>true</MinimalCoreWin>
|
|
8
|
-
<ProjectGuid>{15b116b3-7fd7-492e-a8f0-11135d797aa4}</ProjectGuid>
|
|
9
|
-
<ProjectName>ReactNativeBlobUtilWin</ProjectName>
|
|
10
|
-
<RootNamespace>ReactNativeBlobUtilWin</RootNamespace>
|
|
11
|
-
<DefaultLanguage>en-US</DefaultLanguage>
|
|
12
|
-
<MinimumVisualStudioVersion>16.0</MinimumVisualStudioVersion>
|
|
13
|
-
<AppContainerApplication>true</AppContainerApplication>
|
|
14
|
-
<ApplicationType>Windows Store</ApplicationType>
|
|
15
|
-
<ApplicationTypeRevision>10.0</ApplicationTypeRevision>
|
|
16
|
-
<WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0.18362.0</WindowsTargetPlatformVersion>
|
|
17
|
-
<WindowsTargetPlatformMinVersion>10.0.16299.0</WindowsTargetPlatformMinVersion>
|
|
18
|
-
<PackageCertificateKeyFile>ReactNativeBlobUtilWin_TemporaryKey.pfx</PackageCertificateKeyFile>
|
|
19
|
-
<PackageCertificateThumbprint>86164DA8B9CE3CC7796EB2E118D02FFB7EAE053B</PackageCertificateThumbprint>
|
|
20
|
-
<PackageCertificatePassword>password</PackageCertificatePassword>
|
|
21
|
-
</PropertyGroup>
|
|
22
|
-
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
23
|
-
<PropertyGroup Label="ReactNativeWindowsProps">
|
|
24
|
-
<ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
|
|
25
|
-
<!-- We use this project for developing the CodePush module. We disable autolinking to use it from the source location -->
|
|
26
|
-
<RunAutolinkCheck>false</RunAutolinkCheck>
|
|
27
|
-
</PropertyGroup>
|
|
28
|
-
<ItemGroup Label="ProjectConfigurations">
|
|
29
|
-
<ProjectConfiguration Include="Debug|ARM">
|
|
30
|
-
<Configuration>Debug</Configuration>
|
|
31
|
-
<Platform>ARM</Platform>
|
|
32
|
-
</ProjectConfiguration>
|
|
33
|
-
<ProjectConfiguration Include="Debug|ARM64">
|
|
34
|
-
<Configuration>Debug</Configuration>
|
|
35
|
-
<Platform>ARM64</Platform>
|
|
36
|
-
</ProjectConfiguration>
|
|
37
|
-
<ProjectConfiguration Include="Debug|Win32">
|
|
38
|
-
<Configuration>Debug</Configuration>
|
|
39
|
-
<Platform>Win32</Platform>
|
|
40
|
-
</ProjectConfiguration>
|
|
41
|
-
<ProjectConfiguration Include="Debug|x64">
|
|
42
|
-
<Configuration>Debug</Configuration>
|
|
43
|
-
<Platform>x64</Platform>
|
|
44
|
-
</ProjectConfiguration>
|
|
45
|
-
<ProjectConfiguration Include="Release|ARM">
|
|
46
|
-
<Configuration>Release</Configuration>
|
|
47
|
-
<Platform>ARM</Platform>
|
|
48
|
-
</ProjectConfiguration>
|
|
49
|
-
<ProjectConfiguration Include="Release|ARM64">
|
|
50
|
-
<Configuration>Release</Configuration>
|
|
51
|
-
<Platform>ARM64</Platform>
|
|
52
|
-
</ProjectConfiguration>
|
|
53
|
-
<ProjectConfiguration Include="Release|Win32">
|
|
54
|
-
<Configuration>Release</Configuration>
|
|
55
|
-
<Platform>Win32</Platform>
|
|
56
|
-
</ProjectConfiguration>
|
|
57
|
-
<ProjectConfiguration Include="Release|x64">
|
|
58
|
-
<Configuration>Release</Configuration>
|
|
59
|
-
<Platform>x64</Platform>
|
|
60
|
-
</ProjectConfiguration>
|
|
61
|
-
</ItemGroup>
|
|
62
|
-
<PropertyGroup Label="Configuration">
|
|
63
|
-
<ConfigurationType>Application</ConfigurationType>
|
|
64
|
-
<CharacterSet>Unicode</CharacterSet>
|
|
65
|
-
</PropertyGroup>
|
|
66
|
-
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
|
|
67
|
-
<UseDebugLibraries>true</UseDebugLibraries>
|
|
68
|
-
<LinkIncremental>true</LinkIncremental>
|
|
69
|
-
</PropertyGroup>
|
|
70
|
-
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
|
|
71
|
-
<UseDebugLibraries>false</UseDebugLibraries>
|
|
72
|
-
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
73
|
-
<LinkIncremental>false</LinkIncremental>
|
|
74
|
-
</PropertyGroup>
|
|
75
|
-
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
76
|
-
<ImportGroup Label="ExtensionSettings">
|
|
77
|
-
</ImportGroup>
|
|
78
|
-
<ImportGroup Label="PropertySheets">
|
|
79
|
-
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
80
|
-
</ImportGroup>
|
|
81
|
-
<ImportGroup Label="PropertySheets">
|
|
82
|
-
<Import Project="PropertySheet.props" />
|
|
83
|
-
</ImportGroup>
|
|
84
|
-
<ImportGroup Label="ReactNativeWindowsPropertySheets">
|
|
85
|
-
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\external\Microsoft.ReactNative.Uwp.CppApp.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.props')" />
|
|
86
|
-
<Import Project="..\packages\$(WinUIPackageProps)" Condition="'$(WinUIPackageProps)'!='' And Exists('..\packages\$(WinUIPackageProps)')" />
|
|
87
|
-
</ImportGroup>
|
|
88
|
-
<PropertyGroup Label="UserMacros" />
|
|
89
|
-
<ItemDefinitionGroup>
|
|
90
|
-
<ClCompile>
|
|
91
|
-
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
92
|
-
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
|
93
|
-
<PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile>
|
|
94
|
-
<WarningLevel>Level4</WarningLevel>
|
|
95
|
-
<AdditionalOptions>%(AdditionalOptions) /bigobj</AdditionalOptions>
|
|
96
|
-
<DisableSpecificWarnings>4453;28204</DisableSpecificWarnings>
|
|
97
|
-
</ClCompile>
|
|
98
|
-
</ItemDefinitionGroup>
|
|
99
|
-
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
|
|
100
|
-
<ClCompile>
|
|
101
|
-
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
102
|
-
</ClCompile>
|
|
103
|
-
</ItemDefinitionGroup>
|
|
104
|
-
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
|
|
105
|
-
<ClCompile>
|
|
106
|
-
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
107
|
-
</ClCompile>
|
|
108
|
-
</ItemDefinitionGroup>
|
|
109
|
-
<ItemGroup>
|
|
110
|
-
<ClInclude Include="MainPage.h">
|
|
111
|
-
<DependentUpon>MainPage.xaml</DependentUpon>
|
|
112
|
-
<SubType>Code</SubType>
|
|
113
|
-
</ClInclude>
|
|
114
|
-
<ClInclude Include="ReactPackageProvider.h" />
|
|
115
|
-
<ClInclude Include="AutolinkedNativeModules.g.h" />
|
|
116
|
-
<ClInclude Include="pch.h" />
|
|
117
|
-
<ClInclude Include="App.h">
|
|
118
|
-
<DependentUpon>App.xaml</DependentUpon>
|
|
119
|
-
</ClInclude>
|
|
120
|
-
</ItemGroup>
|
|
121
|
-
<ItemGroup>
|
|
122
|
-
<ApplicationDefinition Include="App.xaml">
|
|
123
|
-
<SubType>Designer</SubType>
|
|
124
|
-
</ApplicationDefinition>
|
|
125
|
-
</ItemGroup>
|
|
126
|
-
<ItemGroup>
|
|
127
|
-
<AppxManifest Include="Package.appxmanifest">
|
|
128
|
-
<SubType>Designer</SubType>
|
|
129
|
-
</AppxManifest>
|
|
130
|
-
</ItemGroup>
|
|
131
|
-
<ItemGroup>
|
|
132
|
-
<Image Include="Assets\LockScreenLogo.scale-200.png" />
|
|
133
|
-
<Image Include="Assets\SplashScreen.scale-200.png" />
|
|
134
|
-
<Image Include="Assets\Square150x150Logo.scale-200.png" />
|
|
135
|
-
<Image Include="Assets\Square44x44Logo.scale-200.png" />
|
|
136
|
-
<Image Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
|
|
137
|
-
<Image Include="Assets\StoreLogo.png" />
|
|
138
|
-
<Image Include="Assets\Wide310x150Logo.scale-200.png" />
|
|
139
|
-
</ItemGroup>
|
|
140
|
-
<ItemGroup>
|
|
141
|
-
<ClCompile Include="MainPage.cpp">
|
|
142
|
-
<DependentUpon>MainPage.xaml</DependentUpon>
|
|
143
|
-
<SubType>Code</SubType>
|
|
144
|
-
</ClCompile>
|
|
145
|
-
<ClCompile Include="ReactPackageProvider.cpp" />
|
|
146
|
-
<ClCompile Include="AutolinkedNativeModules.g.cpp" />
|
|
147
|
-
<ClCompile Include="pch.cpp">
|
|
148
|
-
<PrecompiledHeader>Create</PrecompiledHeader>
|
|
149
|
-
</ClCompile>
|
|
150
|
-
<ClCompile Include="App.cpp">
|
|
151
|
-
<DependentUpon>App.xaml</DependentUpon>
|
|
152
|
-
</ClCompile>
|
|
153
|
-
<ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
|
|
154
|
-
</ItemGroup>
|
|
155
|
-
<ItemGroup>
|
|
156
|
-
<Midl Include="App.idl">
|
|
157
|
-
<DependentUpon>App.xaml</DependentUpon>
|
|
158
|
-
</Midl>
|
|
159
|
-
<Midl Include="MainPage.idl">
|
|
160
|
-
<DependentUpon>MainPage.xaml</DependentUpon>
|
|
161
|
-
<SubType>Code</SubType>
|
|
162
|
-
</Midl>
|
|
163
|
-
</ItemGroup>
|
|
164
|
-
<ItemGroup>
|
|
165
|
-
<None Include="packages.config" />
|
|
166
|
-
<None Include="PropertySheet.props" />
|
|
167
|
-
</ItemGroup>
|
|
168
|
-
<ItemGroup>
|
|
169
|
-
<Page Include="MainPage.xaml">
|
|
170
|
-
<SubType>Designer</SubType>
|
|
171
|
-
</Page>
|
|
172
|
-
</ItemGroup>
|
|
173
|
-
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
174
|
-
<ImportGroup Label="ReactNativeWindowsTargets">
|
|
175
|
-
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.targets" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.targets')" />
|
|
176
|
-
</ImportGroup>
|
|
177
|
-
<Target Name="EnsureReactNativeWindowsTargets" BeforeTargets="PrepareForBuild">
|
|
178
|
-
<PropertyGroup>
|
|
179
|
-
<ErrorText>This project references targets in your node_modules\react-native-windows folder. The missing file is {0}.</ErrorText>
|
|
180
|
-
</PropertyGroup>
|
|
181
|
-
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.props')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.props'))" />
|
|
182
|
-
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.targets'))" />
|
|
183
|
-
</Target>
|
|
184
|
-
<ImportGroup Label="ExtensionTargets">
|
|
185
|
-
<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')" />
|
|
186
|
-
<Import Project="..\packages\$(WinUIPackageName).$(WinUIPackageVersion)\build\native\$(WinUIPackageName).targets" Condition="Exists('..\packages\$(WinUIPackageName).$(WinUIPackageVersion)\build\native\$(WinUIPackageName).targets')" />
|
|
187
|
-
</ImportGroup>
|
|
188
|
-
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
|
189
|
-
<PropertyGroup>
|
|
190
|
-
<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>
|
|
191
|
-
</PropertyGroup>
|
|
192
|
-
<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'))" />
|
|
193
|
-
<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'))" />
|
|
194
|
-
<Error Condition="!Exists('..\packages\$(WinUIPackageName).$(WinUIPackageVersion)\build\native\$(WinUIPackageName).targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\$(WinUIPackageName).$(WinUIPackageVersion)\build\native\$(WinUIPackageName).targets'))" />
|
|
195
|
-
</Target>
|
|
196
|
-
</Project>
|