Skip to content

Commit ea39491

Browse files
authored
Release/initial release (#2)
* πŸ”₯ delete files that should not be tracked * ✨ add gitignore * πŸ“ change instabug package name to instabug_flutter * ✨ add release with CI * πŸŽ‰ Bump version to 1.0.0
1 parent 15bb087 commit ea39491

13 files changed

+173
-82
lines changed

β€Ž.circleci/config.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,28 @@ jobs:
1010
- run: flutter test
1111
- run: dartanalyzer --options analysis_options.yaml --fatal-warnings lib
1212

13+
release:
14+
docker:
15+
- image: cirrusci/flutter
16+
steps:
17+
- checkout
18+
- run: ./release.sh
19+
1320
workflows:
1421
version: 2
1522
build-test:
1623
jobs:
17-
- test
24+
- test
25+
- hold:
26+
type: approval
27+
requires:
28+
- test
29+
filters:
30+
branches:
31+
only: master
32+
- release:
33+
requires:
34+
- hold
35+
filters:
36+
branches:
37+
only: master

β€Ž.flutter-plugins

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Ž.gitignore

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
### Flutter ###
2+
**/doc/api/
3+
.dart_tool/
4+
.flutter-plugins
5+
.packages
6+
.pub-cache/
7+
.pub/
8+
pubspec.lock
9+
build/
10+
11+
### Android ###
12+
gen-external-apklibs
13+
14+
# OS-specific files
15+
.DS_Store
16+
.DS_Store?
17+
._*
18+
.Trashes
19+
20+
# Built application files
21+
*.apk
22+
*.aab
23+
24+
# Files for the ART/Dalvik VM
25+
*.dex
26+
27+
# Generated files
28+
bin/
29+
gen/
30+
31+
# Gradle files
32+
!/gradle/wrapper/gradle-wrapper.jar
33+
**/android/**/gradle-wrapper.jar
34+
**/android/gradlew
35+
/*/*/build/
36+
.gradle/
37+
38+
# Local configuration file (sdk path, etc)
39+
/*/local.properties
40+
**/android/**/GeneratedPluginRegistrant.java
41+
/*/out
42+
43+
# Log Files
44+
*.log
45+
46+
# Android Studio Navigation editor temp files
47+
.navigation/
48+
49+
# Android Studio captures folder
50+
**/android/captures/
51+
52+
# IntelliJ
53+
*.iml
54+
.idea/
55+
56+
# Keystore files
57+
*.jks
58+
*.keystore
59+
60+
# Signing files
61+
.signing/
62+
63+
# External native build folder generated in Android Studio 2.2 and later
64+
.externalNativeBuild
65+
66+
# Google Services (e.g. APIs or Firebase)
67+
google-services.json
68+
69+
# lint
70+
lint/intermediates/
71+
lint/generated/
72+
lint/outputs/
73+
lint/tmp/
74+
75+
### IOS ###
76+
**/ios/**/*.mode1v3
77+
**/ios/**/*.mode2v3
78+
**/ios/**/*.moved-aside
79+
**/ios/**/*.pbxuser
80+
**/ios/**/*.perspectivev3
81+
**/ios/**/*sync/
82+
**/ios/**/.sconsign.dblite
83+
**/ios/**/.tags*
84+
**/ios/**/.vagrant/
85+
**/ios/**/DerivedData/
86+
**/ios/**/Icon?
87+
**/ios/**/Pods/
88+
**/ios/**/.symlinks/
89+
**/ios/**/profile
90+
**/ios/**/xcuserdata
91+
**/ios/.generated/
92+
**/ios/Flutter/App.framework
93+
**/ios/Flutter/Flutter.framework
94+
**/ios/Flutter/Generated.xcconfig
95+
**/ios/Flutter/app.flx
96+
**/ios/Flutter/app.zip
97+
**/ios/Flutter/flutter_assets/
98+
**/ios/ServiceDefinitions.json
99+
**/ios/Runner/GeneratedPluginRegistrant.*
100+
101+
# Exceptions to above rules.
102+
!**/ios/**/default.mode1v3
103+
!**/ios/**/default.mode2v3
104+
!**/ios/**/default.pbxuser
105+
!**/ios/**/default.perspectivev3
106+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

β€Ž.packages

Lines changed: 0 additions & 26 deletions
This file was deleted.

β€ŽCHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
## [0.0.1] - TODO: Add release date.
1+
## [1.0.0] - 29/7/2019.
22

3-
* TODO: Describe initial release.
3+
* Adds implementation for the instabug_http_client library which supports Instabug network logging for the dart library: http.
File renamed without changes.

β€Žios/Flutter/Generated.xcconfig

Lines changed: 0 additions & 8 deletions
This file was deleted.

β€Žios/Runner/GeneratedPluginRegistrant.m

Lines changed: 0 additions & 14 deletions
This file was deleted.

β€Žlib/instabug_http_client.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class InstabugHttpClient extends InstabugHttpLogger implements http.Client {
2626

2727

2828
@override
29-
Future<http.Response> delete(url, {Map<String, String> headers}) {
29+
Future<http.Response> delete(dynamic url, {Map<String, String> headers}) {
3030
DateTime startTime = DateTime.now();
3131
return client.delete(url, headers: headers).then((response) {
3232
logger.logHttpResponse(response, startTime: startTime);
@@ -35,7 +35,7 @@ class InstabugHttpClient extends InstabugHttpLogger implements http.Client {
3535
}
3636

3737
@override
38-
Future<http.Response> get(url, {Map<String, String> headers}) {
38+
Future<http.Response> get(dynamic url, {Map<String, String> headers}) {
3939

4040
DateTime startTime = DateTime.now();
4141
return client.get(url, headers: headers).then((response) {
@@ -45,7 +45,7 @@ class InstabugHttpClient extends InstabugHttpLogger implements http.Client {
4545
}
4646

4747
@override
48-
Future<http.Response> head(url, {Map<String, String> headers}) {
48+
Future<http.Response> head(dynamic url, {Map<String, String> headers}) {
4949
DateTime startTime = DateTime.now();
5050
return client.head(url, headers: headers).then((response) {
5151
logger.logHttpResponse(response, startTime: startTime);
@@ -54,7 +54,7 @@ class InstabugHttpClient extends InstabugHttpLogger implements http.Client {
5454
}
5555

5656
@override
57-
Future<http.Response> patch(url, {Map<String, String> headers, body, Encoding encoding}) {
57+
Future<http.Response> patch(dynamic url, {Map<String, String> headers, dynamic body, Encoding encoding}) {
5858
DateTime startTime = DateTime.now();
5959
return client.patch(url, headers: headers, encoding: encoding).then((response) {
6060
logger.logHttpResponse(response, startTime: startTime);
@@ -63,7 +63,7 @@ class InstabugHttpClient extends InstabugHttpLogger implements http.Client {
6363
}
6464

6565
@override
66-
Future<http.Response> post(url, {Map<String, String> headers, body, Encoding encoding}) {
66+
Future<http.Response> post(dynamic url, {Map<String, String> headers, dynamic body, Encoding encoding}) {
6767
DateTime startTime = DateTime.now();
6868
return client.post(url, headers: headers, encoding: encoding).then((response) {
6969
logger.logHttpResponse(response, startTime: startTime);
@@ -72,7 +72,7 @@ class InstabugHttpClient extends InstabugHttpLogger implements http.Client {
7272
}
7373

7474
@override
75-
Future<http.Response> put(url, {Map<String, String> headers, body, Encoding encoding}) {
75+
Future<http.Response> put(dynamic url, {Map<String, String> headers, dynamic body, Encoding encoding}) {
7676
DateTime startTime = DateTime.now();
7777
return client.put(url, headers: headers, encoding: encoding).then((response) {
7878
logger.logHttpResponse(response, startTime: startTime);
@@ -81,14 +81,14 @@ class InstabugHttpClient extends InstabugHttpLogger implements http.Client {
8181
}
8282

8383
@override
84-
Future<String> read(url, {Map<String, String> headers}) {
84+
Future<String> read(dynamic url, {Map<String, String> headers}) {
8585
return client.read(url, headers: headers).then((response) {
8686
return response;
8787
});
8888
}
8989

9090
@override
91-
Future<Uint8List> readBytes(url, {Map<String, String> headers}) {
91+
Future<Uint8List> readBytes(dynamic url, {Map<String, String> headers}) {
9292
return client.readBytes(url, headers: headers).then((response) {
9393
return response;
9494
});

β€Žlib/instabug_http_logger.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
import 'package:instabug/NetworkLogger.dart';
3-
import 'package:instabug/models/network_data.dart';
2+
import 'package:instabug_flutter/NetworkLogger.dart';
3+
import 'package:instabug_flutter/models/network_data.dart';
44
import 'package:http/http.dart' as http;
55
import 'package:meta/meta.dart';
66

β€Žpubspec.lock

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Generated by pub
2-
# See https://www.dartlang.org/tools/pub/glossary#lockfile
2+
# See https://dart.dev/tools/pub/glossary#lockfile
33
packages:
44
async:
55
dependency: transitive
66
description:
77
name: async
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "2.0.8"
10+
version: "2.2.0"
1111
boolean_selector:
1212
dependency: transitive
1313
description:
@@ -53,20 +53,20 @@ packages:
5353
url: "https://pub.dartlang.org"
5454
source: hosted
5555
version: "3.1.3"
56-
instabug:
56+
instabug_flutter:
5757
dependency: "direct main"
5858
description:
59-
path: "../Instabug-Flutter"
60-
relative: true
61-
source: path
62-
version: "1.0.0-beta.3"
59+
name: instabug_flutter
60+
url: "https://pub.dartlang.org"
61+
source: hosted
62+
version: "1.0.0"
6363
matcher:
6464
dependency: transitive
6565
description:
6666
name: matcher
6767
url: "https://pub.dartlang.org"
6868
source: hosted
69-
version: "0.12.3+1"
69+
version: "0.12.5"
7070
meta:
7171
dependency: transitive
7272
description:
@@ -94,14 +94,14 @@ packages:
9494
name: pedantic
9595
url: "https://pub.dartlang.org"
9696
source: hosted
97-
version: "1.4.0"
97+
version: "1.7.0"
9898
quiver:
9999
dependency: transitive
100100
description:
101101
name: quiver
102102
url: "https://pub.dartlang.org"
103103
source: hosted
104-
version: "2.0.1"
104+
version: "2.0.3"
105105
sky_engine:
106106
dependency: transitive
107107
description: flutter
@@ -113,7 +113,7 @@ packages:
113113
name: source_span
114114
url: "https://pub.dartlang.org"
115115
source: hosted
116-
version: "1.5.4"
116+
version: "1.5.5"
117117
stack_trace:
118118
dependency: transitive
119119
description:
@@ -127,7 +127,7 @@ packages:
127127
name: stream_channel
128128
url: "https://pub.dartlang.org"
129129
source: hosted
130-
version: "1.6.8"
130+
version: "2.0.0"
131131
string_scanner:
132132
dependency: transitive
133133
description:
@@ -148,7 +148,7 @@ packages:
148148
name: test_api
149149
url: "https://pub.dartlang.org"
150150
source: hosted
151-
version: "0.2.2"
151+
version: "0.2.5"
152152
typed_data:
153153
dependency: transitive
154154
description:
@@ -164,4 +164,4 @@ packages:
164164
source: hosted
165165
version: "2.0.8"
166166
sdks:
167-
dart: ">=2.1.0 <3.0.0"
167+
dart: ">=2.2.2 <3.0.0"

β€Žpubspec.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: instabug_http_client
22
description: A new Flutter package project.
3-
version: 0.0.1
3+
version: 1.0.0
44
author:
55
homepage:
66

@@ -10,11 +10,7 @@ environment:
1010
dependencies:
1111
flutter:
1212
sdk: flutter
13-
instabug:
14-
# git:
15-
# url: https://github.com/Instabug/instabug-flutter.git
16-
# ref: feature/networkLoggin
17-
path: ../Instabug-Flutter
13+
instabug_flutter: ^1.0.0
1814
http:
1915

2016
dev_dependencies:

0 commit comments

Comments
Β (0)