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
Copy file name to clipboardExpand all lines: README.md
+6-19Lines changed: 6 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -1,37 +1,24 @@
1
1
# Background Upload plugin for the NativeScript framework
2
-
[**How to use the plugin, see: source/README.md**](nativescript-background-http/)
3
-
4
2
## iOS
5
3
The iOS API is implemented in JavaScript.
6
4
7
5
## Android
8
6
The minimum supported API level is 18 and the background file upload is handled by the [android-upload-service](https://github.com/alexbbb/android-upload-service) Open-Source library.
9
7
10
8
## Examples
11
-
To run the example open a terminal and run in the root of the repo:
12
-
```
13
-
npm install
14
-
```
15
9
16
-
This will start the server included in `examples/www`:
10
+
To run the demo open a terminal at the root of the repo and start the server included in `demo-server` with the command:
17
11
```
18
-
npm start
12
+
npm run start-server
19
13
```
20
14
21
-
Open a second terminal, again at the root of the repo.
22
-
This will create a link from the nativescript-background-http to the examples/SimpleBackgroundHttp's node_modules so you can build and run the plugin from source:
15
+
Then, open a second terminal, again at the root of the repo and execute (for Android):
23
16
```
24
-
npm run link
17
+
npm run start-demo-android
25
18
```
26
-
27
-
To compile the TypeScript of the plugin:
28
-
```
29
-
npm run tsc
30
-
```
31
-
32
-
Then to run the app:
19
+
OR (for iOS)
33
20
```
34
-
tns run android --path examples/SimpleBackgroundHttp
0 commit comments