diff --git a/CodePush.podspec b/CodePush.podspec index 86994fce..b92d1ae9 100644 --- a/CodePush.podspec +++ b/CodePush.podspec @@ -9,7 +9,7 @@ Pod::Spec.new do |s| s.author = package['author'] s.license = package['license'] s.homepage = package['homepage'] - s.source = { :git => 'https://github.com/microsoft/react-native-code-push.git', :tag => "v#{s.version}"} + s.source = { :git => 'https://github.com/appzung/react-native-code-push.git', :tag => "v#{s.version}"} s.ios.deployment_target = '7.0' s.tvos.deployment_target = '9.0' s.preserve_paths = '*.js' @@ -17,8 +17,8 @@ Pod::Spec.new do |s| s.source_files = 'ios/CodePush/*.{h,m}' s.public_header_files = ['ios/CodePush/CodePush.h'] - # Note: Even though there are copy/pasted versions of some of these dependencies in the repo, - # we explicitly let CocoaPods pull in the versions below so all dependencies are resolved and + # Note: Even though there are copy/pasted versions of some of these dependencies in the repo, + # we explicitly let CocoaPods pull in the versions below so all dependencies are resolved and # linked properly at a parent workspace level. s.dependency 'React-Core' s.dependency 'SSZipArchive', '~> 2.2.2' diff --git a/LICENSE.md b/LICENSE.md index 09dae6fa..248849b9 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,8 +1,8 @@ -Microsoft CodePush Plugin for React Native +AppZung CodePush Plugin for React Native -Copyright (c) Microsoft Corporation +Copyright (c) Louis Lagrange and Louis Lagrange Consulting -All rights reserved. +All rights reserved. MIT License @@ -10,4 +10,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/android/app/src/main/java/com/microsoft/codepush/react/CodePush.java b/android/app/src/main/java/com/microsoft/codepush/react/CodePush.java index 923dd151..b360c8d0 100644 --- a/android/app/src/main/java/com/microsoft/codepush/react/CodePush.java +++ b/android/app/src/main/java/com/microsoft/codepush/react/CodePush.java @@ -40,7 +40,7 @@ public class CodePush implements ReactPackage { // Config properties. private String mDeploymentKey; - private static String mServerUrl = "https://codepush.appcenter.ms/"; + private static String mServerUrl = "https://codepush.appzung.com/"; private Context mContext; private final boolean mIsDebugMode; diff --git a/docs/api-android.md b/docs/api-android.md index 460f4ef3..db3e6d8d 100644 --- a/docs/api-android.md +++ b/docs/api-android.md @@ -11,7 +11,7 @@ Since `autolinking` uses `react-native.config.js` to link plugins, constructors ``` * __Server Url__ - used for specifying CodePush Server Url. - The Default value: "https://codepush.appcenter.ms/" is overridden by adding your path to `strings.xml` with name `CodePushServerUrl`. CodePush automatically gets this property and will use this path to send requests. For example: + The Default value: "https://codepush.appzung.com/" is overridden by adding your path to `strings.xml` with name `CodePushServerUrl`. CodePush automatically gets this property and will use this path to send requests. For example: ```xml https://yourcodepush.server.com ``` @@ -36,7 +36,7 @@ Constructs the CodePush client runtime and represents the `ReactPackage` instanc - __CodePush(String deploymentKey, Context context, boolean isDebugMode, Integer publicKeyResourceDescriptor)__ - Equivalent to the previous constructor, but allows you to specify the public key resource descriptor needed to read public key content. Please refer to [Code Signing](setup-android.md#code-signing-setup) section for more details about the Code Signing Feature. -- __CodePush(String deploymentKey, Context context, boolean isDebugMode, String serverUrl)__ Constructor allows you to specify CodePush Server Url. The Default value: `"https://codepush.appcenter.ms/"` is overridden by value specified in `serverUrl`. +- __CodePush(String deploymentKey, Context context, boolean isDebugMode, String serverUrl)__ Constructor allows you to specify CodePush Server Url. The Default value: `"https://codepush.appzung.com/"` is overridden by value specified in `serverUrl`. ##### Builder @@ -62,7 +62,7 @@ As an alternative to constructors *you can also use `CodePushBuilder`* to setup * __public CodePushBuilder setIsDebugMode(boolean isDebugMode)__ - allows you to specify whether you want the CodePush runtime to be in debug mode or not. Default value: `false`. -* __public CodePushBuilder setServerUrl(String serverUrl)__ - allows you to specify CodePush Server Url. Default value: `"https://codepush.appcenter.ms/"`. +* __public CodePushBuilder setServerUrl(String serverUrl)__ - allows you to specify CodePush Server Url. Default value: `"https://codepush.appzung.com/"`. * __public CodePushBuilder setPublicKeyResourceDescriptor(int publicKeyResourceDescriptor)__ - allows you to specify Public Key resource descriptor which will be used for reading Public Key content for `strings.xml` file. Please refer to [Code Signing](setup-android.md#code-signing-setup) section for more detailed information about purpose of this parameter. diff --git a/docs/setup-ios.md b/docs/setup-ios.md index 2351b1e9..020c515b 100644 --- a/docs/setup-ios.md +++ b/docs/setup-ios.md @@ -228,9 +228,8 @@ In order to effectively make use of the `Staging` and `Production` deployments t CodePush plugin makes HTTPS requests to the following domains: -- codepush.appcenter.ms -- codepush.blob.core.windows.net -- codepushupdates.azureedge.net +- codepush.appzung.com +- release-package-files-eu.appzung.com If you want to change the default HTTP security configuration for any of these domains, you have to define the [`NSAppTransportSecurity` (ATS)][ats] configuration inside your __Info.plist__ file: @@ -243,7 +242,7 @@ If you want to change the default HTTP security configuration for any of these d NSExceptionDomains - codepush.appcenter.ms + codepush.appzung.com diff --git a/ios/CodePush/CodePushConfig.m b/ios/CodePush/CodePushConfig.m index 029d4180..dc1db845 100644 --- a/ios/CodePush/CodePushConfig.m +++ b/ios/CodePush/CodePushConfig.m @@ -46,7 +46,7 @@ - (instancetype)init } if (!serverURL) { - serverURL = @"https://codepush.appcenter.ms/"; + serverURL = @"https://codepush.appzung.com/"; } _configDictionary = [NSMutableDictionary dictionary]; diff --git a/package.json b/package.json index d4dfc189..cfefb132 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,10 @@ { - "name": "react-native-code-push", - "version": "1000.0.0-beta", + "name": "@appzung/react-native-code-push", + "version": "6.4.2", "description": "React Native plugin for the CodePush service", "main": "CodePush.js", "typings": "typings/react-native-code-push.d.ts", - "homepage": "https://microsoft.github.io/code-push", - "keywords": [ - "react-native", - "code", - "push" - ], - "author": "Microsoft Corporation", + "author": "Louis Lagrange (https://github.com/Minishlink)", "license": "MIT", "scripts": { "clean": "shx rm -rf bin", @@ -30,10 +24,6 @@ "test:debugger:ios": "mocha --recursive --inspect-brk=0.0.0.0 bin/test --ios", "tslint": "tslint -c tslint.json test/**/*.ts" }, - "repository": { - "type": "git", - "url": "https://github.com/microsoft/react-native-code-push" - }, "dependencies": { "code-push": "^4.0.2", "glob": "^7.1.6", diff --git a/windows/CodePush.Shared/CodePushConstants.cs b/windows/CodePush.Shared/CodePushConstants.cs index 27f48e8e..f5f3a226 100644 --- a/windows/CodePush.Shared/CodePushConstants.cs +++ b/windows/CodePush.Shared/CodePushConstants.cs @@ -3,7 +3,7 @@ internal class CodePushConstants { internal const string BinaryModifiedTimeKey = "binaryModifiedTime"; - internal const string CodePushServerUrl = "https://codepush.appcenter.ms/"; + internal const string CodePushServerUrl = "https://codepush.appzung.com/"; internal const string CodePushFolderPrefix = "CodePush"; internal const string CodePushPreferences = "CodePush"; internal const string CurrentPackageKey = "currentPackage";