Skip to content

Commit c08fdf5

Browse files
committed
Merge branch 'master' of github.com:nativescript-community/https
# Conflicts: # docs/assets/search.js # docs/functions/addInterceptor.html # docs/functions/addNetworkInterceptor.html # docs/functions/cancelAllRequests.html # docs/functions/cancelRequest.html # docs/functions/clearCache.html # docs/functions/clearCookies.html # docs/functions/createRequest.html # docs/functions/disableSSLPinning.html # docs/functions/enableSSLPinning.html # docs/functions/getBinary.html # docs/functions/getClient.html # docs/functions/getFile.html # docs/functions/getFilenameFromUrl.html # docs/functions/getImage.html # docs/functions/getJSON.html # docs/functions/getString.html # docs/functions/parseJSON.html # docs/functions/request.html # docs/functions/setCache.html # docs/index.html # docs/interfaces/Headers.html # docs/interfaces/HttpsRequest.html # docs/interfaces/HttpsRequestObject.html # docs/interfaces/HttpsRequestOptions.html # docs/interfaces/HttpsResponse.html # docs/interfaces/HttpsResponseLegacy.html # docs/modules.html # docs/types/CachePolicy.html # docs/variables/interceptors.html # docs/variables/networkInterceptors.html
2 parents de3f2c1 + 1291612 commit c08fdf5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+8142
-6228
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ yarn-error.log*
2424
.gradle
2525
.project
2626
.yarn
27+
.cxx
2728
tmp/
2829

2930
!.eslintrc.js
@@ -34,6 +35,7 @@ tmp/
3435
devices.js
3536

3637
*.framework
38+
*.xcframework
3739
**/*.js.map
3840
src/**/*.js
3941
packages/**/*.js
@@ -43,6 +45,7 @@ build
4345
Pods
4446
!packages/platforms
4547
/packages/**/*.aar
48+
/demo-snippets/**/*.aar
4649
*.xcuserdatad
4750
/packages/README.md
4851
packages/**/*js.map

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ nmHoistingLimits: workspaces
22

33
nodeLinker: node-modules
44

5-
yarnPath: tools/.yarn/releases/yarn-3.3.1.cjs
5+
yarnPath: tools/.yarn/releases/yarn-3.6.4.cjs

CHANGELOG.md

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,66 +3,81 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6-
## [4.0.16](https://github.com/nativescript-community/https/compare/v4.0.15...v4.0.16) (2023-03-14)
6+
## [4.1.4](https://github.com/nativescript-community/https/compare/v4.1.3...v4.1.4) (2023-10-25)
77

8+
### Bug Fixes
89

9-
### Features
10+
* **angular:** xhr factory import ([71a3609](https://github.com/nativescript-community/https/commit/71a3609abd8a0180f1519b051b02e633605bdfe1))
1011

11-
* `cancelAllRequests` ([3a014bc](https://github.com/nativescript-community/https/commit/3a014bc9fe797d9b1405b9ed75348fba776d6eb2))
12+
## [4.1.3](https://github.com/nativescript-community/https/compare/v4.1.2...v4.1.3) (2023-10-19)
1213

14+
### Features
1315

16+
* **angular:** handle params ([eff8222](https://github.com/nativescript-community/https/commit/eff82226bf4727b73d8484014245956248931d70))
1417

18+
## [4.1.2](https://github.com/nativescript-community/https/compare/v4.1.1...v4.1.2) (2023-08-30)
1519

20+
### Bug Fixes
1621

17-
## [4.0.15](https://github.com/nativescript-community/https/compare/v4.0.14...v4.0.15) (2023-03-06)
22+
* **android:** toBitmapAsync is not a function error fix ([63b19f0](https://github.com/nativescript-community/https/commit/63b19f03334d8ae742dddc47d48db530d88db63f))
23+
* **ios:** base URL for AFHTTPSessionManager ([0ee4640](https://github.com/nativescript-community/https/commit/0ee46405eed8fe2902b01ddb1f871f604424bf51))
24+
* **ios:** non legacy report format fix ([1cec77e](https://github.com/nativescript-community/https/commit/1cec77ef3144c4840fb205142aa4d7e761262196))
1825

26+
## [4.1.1](https://github.com/nativescript-community/https/compare/v4.1.0...v4.1.1) (2023-07-03)
1927

2028
### Bug Fixes
2129

22-
* **android:** update to latest okhttp lib ([c4b7870](https://github.com/nativescript-community/https/commit/c4b78703637e21bbfa84647d7f8a6f07348c9f44))
30+
* angular build ([0290951](https://github.com/nativescript-community/https/commit/0290951a20d41a9158e406f6120ea9f2a1459219))
31+
* angular code formatting & error handling ([e1893e4](https://github.com/nativescript-community/https/commit/e1893e4481793abecf32bb44ef6185c498935d2d))
32+
* call async methods to prevent android.os.NetworkOnMainThreadException errors ([ec82cef](https://github.com/nativescript-community/https/commit/ec82cef78897de459f879b42f3a83eb7504d5fec))
2333

34+
# [4.1.0](https://github.com/nativescript-community/https/compare/v4.0.17...v4.1.0) (2023-04-30)
2435

2536
### Features
2637

27-
* **android:** support passing custom RequestBody as `content` parameter ([4e5b513](https://github.com/nativescript-community/https/commit/4e5b5136f19487a87911638ef4b9fc7a174dd619))
38+
* angular module ([dc3761a](https://github.com/nativescript-community/https/commit/dc3761ac33d99ddaa35d47e56c3275774af647f1))
39+
* angular support ([ff92deb](https://github.com/nativescript-community/https/commit/ff92deb51bc95605c02eafe9ae4f066434fe8dcd))
2840

41+
## [4.0.17](https://github.com/nativescript-community/https/compare/v4.0.16...v4.0.17) (2023-03-20)
2942

43+
### Bug Fixes
3044

45+
* **android:** support native data for form data parameters ([47e9002](https://github.com/nativescript-community/https/commit/47e9002ddd4c1ec8acf106035e36c6649829ae85))
3146

47+
## [4.0.16](https://github.com/nativescript-community/https/compare/v4.0.15...v4.0.16) (2023-03-14)
3248

33-
## [4.0.14](https://github.com/nativescript-community/https/compare/v4.0.13...v4.0.14) (2023-02-15)
49+
### Features
3450

51+
* `cancelAllRequests` ([3a014bc](https://github.com/nativescript-community/https/commit/3a014bc9fe797d9b1405b9ed75348fba776d6eb2))
52+
53+
## [4.0.15](https://github.com/nativescript-community/https/compare/v4.0.14...v4.0.15) (2023-03-06)
3554

3655
### Bug Fixes
3756

38-
* **android:** cookiesEnabled: false fixed ([94f6bb1](https://github.com/nativescript-community/https/commit/94f6bb18c546ef1e427730d45cc71a4726f9ab39))
57+
* **android:** update to latest okhttp lib ([c4b7870](https://github.com/nativescript-community/https/commit/c4b78703637e21bbfa84647d7f8a6f07348c9f44))
3958

59+
### Features
4060

61+
* **android:** support passing custom RequestBody as `content` parameter ([4e5b513](https://github.com/nativescript-community/https/commit/4e5b5136f19487a87911638ef4b9fc7a174dd619))
4162

63+
## [4.0.14](https://github.com/nativescript-community/https/compare/v4.0.13...v4.0.14) (2023-02-15)
4264

65+
### Bug Fixes
4366

44-
## [4.0.13](https://github.com/nativescript-community/https/compare/v4.0.12...v4.0.13) (2023-01-24)
67+
* **android:** cookiesEnabled: false fixed ([94f6bb1](https://github.com/nativescript-community/https/commit/94f6bb18c546ef1e427730d45cc71a4726f9ab39))
4568

69+
## [4.0.13](https://github.com/nativescript-community/https/compare/v4.0.12...v4.0.13) (2023-01-24)
4670

4771
### Bug Fixes
4872

4973
* **android:** native-api-usage fix ([0f5ca06](https://github.com/nativescript-community/https/commit/0f5ca062c06c0f2c31677be8c528c1b072070e50))
5074

51-
52-
53-
54-
5575
## [4.0.12](https://github.com/nativescript-community/https/compare/v4.0.11...v4.0.12) (2023-01-23)
5676

57-
5877
### Bug Fixes
5978

6079
* **android:** improved native-api-usage ([5e32bb0](https://github.com/nativescript-community/https/commit/5e32bb08e3f95c75e0ec05d0594294911eda72af))
6180

62-
63-
64-
65-
6681
## [4.0.11](https://github.com/nativescript-community/https/compare/v4.0.10...v4.0.11) (2022-12-05)
6782

6883
### Features

README.md

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,103 @@ One easy solution is t modify `~/.gitconfig` and add
441441
[](#questions)
442442

443443

444+
[](#questions)
445+
446+
## Questions
447+
448+
If you have any questions/issues/comments please feel free to create an issue or start a conversation in the [NativeScript Community Discord](https://nativescript.org/discord).
449+
450+
[](#demos-and-development)
451+
452+
## Demos and Development
453+
454+
455+
### Repo Setup
456+
457+
The repo uses submodules. If you did not clone with ` --recursive` then you need to call
458+
```
459+
git submodule update --init
460+
```
461+
462+
The package manager used to install and link dependencies must be `pnpm` or `yarn`. `npm` wont work.
463+
464+
To develop and test:
465+
if you use `yarn` then run `yarn`
466+
if you use `pnpm` then run `pnpm i`
467+
468+
**Interactive Menu:**
469+
470+
To start the interactive menu, run `npm start` (or `yarn start` or `pnpm start`). This will list all of the commonly used scripts.
471+
472+
### Build
473+
474+
```bash
475+
npm run build.all
476+
```
477+
WARNING: it seems `yarn build.all` wont always work (not finding binaries in `node_modules/.bin`) which is why the doc explicitly uses `npm run`
478+
479+
### Demos
480+
481+
```bash
482+
npm run demo.[ng|react|svelte|vue].[ios|android]
483+
484+
npm run demo.svelte.ios # Example
485+
```
486+
487+
Demo setup is a bit special in the sense that if you want to modify/add demos you dont work directly in `demo-[ng|react|svelte|vue]`
488+
Instead you work in `demo-snippets/[ng|react|svelte|vue]`
489+
You can start from the `install.ts` of each flavor to see how to register new demos
490+
491+
492+
[](#contributing)
493+
494+
## Contributing
495+
496+
### Update repo
497+
498+
You can update the repo files quite easily
499+
500+
First update the submodules
501+
502+
```bash
503+
npm run update
504+
```
505+
506+
Then commit the changes
507+
Then update common files
508+
509+
```bash
510+
npm run sync
511+
```
512+
Then you can run `yarn|pnpm`, commit changed files if any
513+
514+
### Update readme
515+
```bash
516+
npm run readme
517+
```
518+
519+
### Update doc
520+
```bash
521+
npm run doc
522+
```
523+
524+
### Publish
525+
526+
The publishing is completely handled by `lerna` (you can add `-- --bump major` to force a major release)
527+
Simply run
528+
```shell
529+
npm run publish
530+
```
531+
532+
### modifying submodules
533+
534+
The repo uses https:// for submodules which means you won't be able to push directly into the submodules.
535+
One easy solution is t modify `~/.gitconfig` and add
536+
```
537+
[url "ssh://[email protected]/"]
538+
pushInsteadOf = https://github.com/
539+
```
540+
444541
[](#questions)
445542

446543
## Questions

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"readme": true,
3-
"angular": false,
3+
"angular": true,
44
"demos": [
55
"vue"
66
]

docs/assets/highlight.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
--dark-hl-6: #B5CEA8;
1616
--light-hl-7: #A31515;
1717
--dark-hl-7: #CE9178;
18-
--light-hl-8: #AF00DB;
19-
--dark-hl-8: #C586C0;
20-
--light-hl-9: #795E26;
21-
--dark-hl-9: #DCDCAA;
18+
--light-hl-8: #795E26;
19+
--dark-hl-8: #DCDCAA;
20+
--light-hl-9: #AF00DB;
21+
--dark-hl-9: #C586C0;
2222
--light-hl-10: #000000;
2323
--dark-hl-10: #C8C8C8;
2424
--light-hl-11: #800000;

docs/assets/main.js

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/navigation.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)