Skip to content

Commit ffd3eed

Browse files
refactor: merge instabug_dart_http_adapter
1 parent 2a76b46 commit ffd3eed

File tree

78 files changed

+2356
-0
lines changed

Some content is hidden

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

78 files changed

+2356
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
version: 2
2+
jobs:
3+
test:
4+
docker:
5+
- image: cirrusci/flutter
6+
steps:
7+
- checkout
8+
- run: flutter doctor
9+
- run: flutter pub get
10+
- run: flutter test
11+
- run: dart analyze --fatal-warnings lib
12+
- run: flutter pub publish --dry-run
13+
14+
release:
15+
docker:
16+
- image: cirrusci/flutter
17+
steps:
18+
- checkout
19+
- run: chmod +x release.sh
20+
- run: ./release.sh
21+
22+
workflows:
23+
version: 2
24+
build-test:
25+
jobs:
26+
- test
27+
- hold:
28+
type: approval
29+
requires:
30+
- test
31+
filters:
32+
branches:
33+
only: master
34+
- release:
35+
requires:
36+
- hold
37+
filters:
38+
branches:
39+
only: master
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Description of the change
2+
> Description goes here
3+
## Type of change
4+
- [ ] Bug fix (non-breaking change that fixes an issue)
5+
- [ ] New feature (non-breaking change that adds functionality)
6+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
7+
## Related issues
8+
> Issue links go here
9+
## Checklists
10+
### Development
11+
- [ ] Lint rules pass locally
12+
- [ ] The code changed/added as part of this pull request has been covered with tests
13+
### Code review
14+
- [ ] This pull request has a descriptive title and information useful to a reviewer
15+
- [ ] Issue from task tracker has a link to this pull request
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
12+
# IntelliJ related
13+
*.iml
14+
*.ipr
15+
*.iws
16+
.idea/
17+
18+
# The .vscode folder contains launch configuration and tasks you configure in
19+
# VS Code which you may wish to be included in version control, so this line
20+
# is commented out by default.
21+
#.vscode/
22+
23+
# Flutter/Dart/Pub related
24+
**/doc/api/
25+
.dart_tool/
26+
.flutter-plugins
27+
.flutter-plugins-dependencies
28+
.packages
29+
.pub-cache/
30+
.pub/
31+
pubspec.lock
32+
build/
33+
coverage/
34+
35+
# Android related
36+
**/android/**/gradle-wrapper.jar
37+
**/android/.gradle
38+
**/android/captures/
39+
**/android/gradlew
40+
**/android/gradlew.bat
41+
**/android/local.properties
42+
**/android/**/GeneratedPluginRegistrant.java
43+
44+
# iOS/XCode related
45+
**/ios/**/*.mode1v3
46+
**/ios/**/*.mode2v3
47+
**/ios/**/*.moved-aside
48+
**/ios/**/*.pbxuser
49+
**/ios/**/*.perspectivev3
50+
**/ios/**/*sync/
51+
**/ios/**/.sconsign.dblite
52+
**/ios/**/.tags*
53+
**/ios/**/.vagrant/
54+
**/ios/**/DerivedData/
55+
**/ios/**/Icon?
56+
**/ios/**/Pods/
57+
**/ios/**/.symlinks/
58+
**/ios/**/profile
59+
**/ios/**/xcuserdata
60+
**/ios/.generated/
61+
**/ios/Flutter/App.framework
62+
**/ios/Flutter/Flutter.framework
63+
**/ios/Flutter/Flutter.podspec
64+
**/ios/Flutter/Generated.xcconfig
65+
**/ios/Flutter/app.flx
66+
**/ios/Flutter/app.zip
67+
**/ios/Flutter/flutter_assets/
68+
**/ios/Flutter/flutter_export_environment.sh
69+
**/ios/ServiceDefinitions.json
70+
**/ios/Runner/GeneratedPluginRegistrant.*
71+
72+
# Exceptions to above rules.
73+
!**/ios/**/default.mode1v3
74+
!**/ios/**/default.mode2v3
75+
!**/ios/**/default.pbxuser
76+
!**/ios/**/default.perspectivev3
77+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## [2.3.0] - 3/11/2022
2+
3+
- Adds support for MultipartRequest.
4+
5+
## [2.2.1] - 2/8/2022
6+
7+
- Bumps [instabug_flutter](https://pub.dev/packages/instabug_flutter) to v11
8+
9+
## [2.2.0] - 11/4/2022
10+
11+
- Adds support for logging network requests using `send` method.
12+
13+
## [2.1.0] - 5/1/2022
14+
15+
- Fixes network log compilation error.
16+
- Adds payload size for network log.
17+
18+
## [2.0.0] - 30/11/2021
19+
20+
- Upgrades to null safety.
21+
22+
## [1.0.0] - 29/7/2019
23+
24+
- Adds implementation for the instabug_http_client library which supports Instabug network logging for the dart library: http.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) Instabug
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# instabug_http_client
2+
3+
A dart package to support Instabug network logging for the external dart [http](https://pub.dev/packages/http) package.
4+
5+
## Getting Started
6+
7+
You can choose to attach all your network requests data to the Instabug reports being sent to the dashboard. See the details below on how to enable the feature for the `http` package.
8+
9+
### Installation
10+
11+
1. Add the dependency to your project `pubspec.yml`:
12+
13+
```yaml
14+
dependencies:
15+
instabug_http_client:
16+
```
17+
18+
2. Install the package by running the following command.
19+
20+
```bash
21+
flutter packages get
22+
```
23+
24+
### Usage
25+
26+
To enable logging, use the custom http client provided by Instabug:
27+
28+
```dart
29+
final client = InstabugHttpClient();
30+
```
31+
32+
Then proceed to use the package normally:
33+
34+
```dart
35+
final response = await client.get(Uri.parse(URL));
36+
```

0 commit comments

Comments
 (0)