mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-10 23:59:42 +08:00
Added support react-native-windows dotNet Added example for react-native-windows UWP based Added example for react-native-windows dotNet based Project structure: CodePush.Shared - shared code between UWP and dotNet CodePush - UWP specific code CodePush.Net46 - dotNet specific code For UWP solution it needs to be added the following projects: CodePush.Shared CodePush For dotNet solution it needs to be added the following projects: CodePush.Shared CodePush.Net46 Examples: Examples\CodePushDemoApp\windows\CodePushDemoApp.sln the solution contains both examples (UWP and dotNet). Notes Example for ARM configuration has not been tested. Since there is no changes in UWP part of implementation, there is low risk of failure. In this implementation we tried to reuse UWP library as much as possible. The following issues are relevant for both platforms: ZipFile.ExtractToDirectory is not reliable and throws exception if: folder exists already path is too long (> 250 chars) Un-zipping is quite long operation. Does it make sense for async? await UpdateUtils.UnzipBundleAsync(downloadFile.Path, unzippedFolder.Path);
56 lines
2.3 KiB
C#
56 lines
2.3 KiB
C#
using System.Reflection;
|
|
using System.Resources;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using System.Windows;
|
|
|
|
// General Information about an assembly is controlled through the following
|
|
// set of attributes. Change these attribute values to modify the information
|
|
// associated with an assembly.
|
|
[assembly: AssemblyTitle("CodePushDemoApp.Wpf")]
|
|
[assembly: AssemblyDescription("")]
|
|
[assembly: AssemblyConfiguration("")]
|
|
[assembly: AssemblyCompany("")]
|
|
[assembly: AssemblyProduct("CodePushDemoApp.Wpf")]
|
|
[assembly: AssemblyCopyright("Copyright © 2017")]
|
|
[assembly: AssemblyTrademark("")]
|
|
[assembly: AssemblyCulture("")]
|
|
|
|
// Setting ComVisible to false makes the types in this assembly not visible
|
|
// to COM components. If you need to access a type in this assembly from
|
|
// COM, set the ComVisible attribute to true on that type.
|
|
[assembly: ComVisible(false)]
|
|
|
|
//In order to begin building localizable applications, set
|
|
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
|
|
//inside a <PropertyGroup>. For example, if you are using US english
|
|
//in your source files, set the <UICulture> to en-US. Then uncomment
|
|
//the NeutralResourceLanguage attribute below. Update the "en-US" in
|
|
//the line below to match the UICulture setting in the project file.
|
|
|
|
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
|
|
|
|
|
|
[assembly: ThemeInfo(
|
|
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
|
//(used if a resource is not found in the page,
|
|
// or application resource dictionaries)
|
|
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
|
//(used if a resource is not found in the page,
|
|
// app, or any theme specific resource dictionaries)
|
|
)]
|
|
|
|
|
|
// Version information for an assembly consists of the following four values:
|
|
//
|
|
// Major Version
|
|
// Minor Version
|
|
// Build Number
|
|
// Revision
|
|
//
|
|
// You can specify all the values or you can default the Build and Revision Numbers
|
|
// by using the '*' as shown below:
|
|
// [assembly: AssemblyVersion("1.0.*")]
|
|
[assembly: AssemblyVersion("1.0.0.0")]
|
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|