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

Commit ae19e24

Browse files
author
Will Anderson
committed
Add stubs for methods to mix into package objects
1 parent f890664 commit ae19e24

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

package-mixins.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = (NativeCodePush) => {
2+
return {
3+
remote: {
4+
download: function download() {
5+
// Use the downloaded package info. Native code will save the package info
6+
// so that the client knows what the current package version is.
7+
return NativeCodePush.downloadUpdate(this);
8+
}
9+
},
10+
local: {
11+
}
12+
};
13+
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"main": "CodePush.ios.js",
55
"keywords": "react-native",
66
"dependencies": {
7-
"code-push": "file:../website/sdk/bin"
7+
"code-push": "file:../website/sdk/bin",
8+
"extend": "^3.0.0"
89
},
910
"devDependencies": {
1011
"react-native": "^0.10.0"

0 commit comments

Comments
 (0)