Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 8e04d38

Browse files
committed
Removing setDeploymentKey
1 parent 6f6ed8e commit 8e04d38

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

CodePush.ios.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,6 @@ function log(message) {
114114
console.log(`[CodePush] ${message}`)
115115
}
116116

117-
function setDeploymentKey(deploymentKey) {
118-
return NativeCodePush.setDeploymentKey(deploymentKey)
119-
.then(() => {
120-
// Mark the local copy of the config data
121-
// as invalid since we just modified it
122-
// on the native end.
123-
isConfigValid = false;
124-
});
125-
}
126-
127117
var testConfig;
128118
var testSdk;
129119

package-mixins.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
var extend = require("extend");
21
var { NativeAppEventEmitter } = require("react-native");
32

43
module.exports = (NativeCodePush) => {
@@ -25,7 +24,7 @@ module.exports = (NativeCodePush) => {
2524
return NativeCodePush.downloadUpdate(this)
2625
.then((downloadedPackage) => {
2726
downloadProgressSubscription && downloadProgressSubscription.remove();
28-
return extend({}, downloadedPackage, local);
27+
return Object.assign({}, downloadedPackage, local);
2928
})
3029
.catch((error) => {
3130
downloadProgressSubscription && downloadProgressSubscription.remove();

0 commit comments

Comments
 (0)