You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> 💁♂️ Note that we don't actually use those folders, but the `app` folder in `platforms/ios/<appname>/app` and `platforms/android/app/src/main/assets/app`, the benefit of which is we don't "care" if you use Webpack or Uglify or whatever tools you use to minify or scramble your app's assets.
41
+
40
42
### What can't (and won't):
41
43
- NativeScript platform updates. Example: bumping `tns-android` from version 2.5.1 to 2.5.2.
42
44
- Plugins updates that also require a different version of a native library it depends on.
@@ -45,14 +47,16 @@ So as long as you don't change versions of dependencies and tns platforms in you
45
47
can push happily. And if you do bump a version of a dependency make sure there are no changed platform libraries.
46
48
47
49
## Getting Started
48
-
TODO test this workflow!
50
+
> ⚠️ TODO test this workflow!
49
51
50
52
#### Globally install the NativeScript-compatible CodePush CLI
51
53
52
54
```shell
53
55
npm i -g nativescript-code-push-cli
54
56
```
55
57
58
+
> 💁♂️ This will also add the global `nativescript-code-push` command to your machine.
@@ -164,6 +169,8 @@ The easiest way to do this is to use the `release-nativescript` command in our C
164
169
|targetBinaryVersion|t||Semver expression that specifies the binary app version(s) this release is targeting (e.g. 1.1.0, ~1.2.3).
165
170
|mandatory|m|not set, so "optional"|This specifies whether the update should be considered mandatory or not (e.g. it includes a critical security fix). This attribute is simply round tripped to the client, who can then decide if and how they would like to enforce it. This is flag, so its absence indicates an optional release.
> Make sure to create a release build first, so use the same command that you'd use for app store distribution, just don't send it to the AppStore. You can even webpack bundle and uglify your app, it's all transparent to this plugin.
192
+
> Make sure to create a *release build* first, so use the same command that you'd use for app store distribution, just don't send it to the AppStore. You can even Webpack and Uglify your app, it's all transparent to this plugin.
186
193
187
194
> When releasing updates to CodePush, you do not need to bump your app's version since you aren't modifying the app store version at all. CodePush will automatically generate a "label" for each release you make (e.g. `v3`) in order to help identify it within your release history.
188
195
189
-
### Did folks install the update?
196
+
### Which releases did I create and what are the install metrics?
190
197
Using a command like this will tell you how many apps have the update installed:
it("expects a deploymentKey to be passed in",function(done){
10
+
try{
11
+
CodePush.sync({});
12
+
fail("Should have thrown an errot due to a missing deploymentKey");
13
+
}catch(error){
14
+
expect(error).toEqual(newError("Missing deploymentKey, pass it as part of the first parameter of the 'sync' function: { deploymentKey: 'your-key' }"));
15
+
done();
16
+
}
17
+
});
18
+
19
+
it("expects a valid deploymentKey to be passed in",function(done){
0 commit comments