Skip to content

Commit c5ed8db

Browse files
authored
Update native libraries 8.3 (#72)
* Bump native sdks to 8.3 * Rename Package to `instabug` * Switch to our own repo for android (master-cp) * updates Readme to include the steps needed to add the maven repo * Updates Changelog
1 parent b29564c commit c5ed8db

File tree

13 files changed

+51
-29
lines changed

13 files changed

+51
-29
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## Version 1.0.0-beta.2 (2019-05-22)
2+
3+
**⚠️ Check the README.md integration steps to add our new maven repository in android**
4+
5+
* Bump native SDK's to version 8.3
6+
* Fixes issue of manually invoking BugReporting
7+
18
## Version 1.0.0-beta.1 (2019-04-16)
29

310
* Adds New Sample App

README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Creating a Flutter app on the Instabug dashboard isn't possible yet. Create a Re
130130

131131
```yaml
132132
dependencies:
133-
instabug_flutter:
133+
instabug:
134134
```
135135
136136
2. Install the package by running the following command.
@@ -144,18 +144,30 @@ flutter packages get
144144
1. To start using Instabug, import it into your Flutter app.
145145

146146
```dart
147-
import 'package:instabug_flutter/Instabug.dart';
147+
import 'package:instabug/Instabug.dart';
148148
```
149149

150-
2. Initialize the SDK in `initState()`. This line enables the SDK with the default behavior and sets it to be shown when the devices is shaken.
150+
2. Initialize the SDK in `initState()`. This line enables the SDK with the default behavior and sets it to be shown when the device is shaken. Ignore this if you're building for Android only.
151151

152152
```dart
153153
Instabug.start('APP_TOKEN', [InvocationEvent.shake]);
154154
```
155155

156+
3. Add the following Maven repository to your project level `build.gradle`
157+
158+
```dart
159+
allprojects {
160+
repositories {
161+
maven {
162+
url "https://sdks.instabug.com/nexus/repository/instabug-cp"
163+
}
164+
}
165+
}
166+
```
167+
156168
Make sure to replace `app_token` with your application token.
157169

158-
3. If your app supports Android, create a new Java class that extends `FlutterApplication` and add it to your `AndroidManifest.xml`.
170+
4. If your app supports Android, create a new Java class that extends `FlutterApplication` and add it to your `AndroidManifest.xml`.
159171

160172
```xml
161173
<application
@@ -164,7 +176,7 @@ Make sure to replace `app_token` with your application token.
164176
</application>
165177
````
166178

167-
4. In your newly created `CustomFlutterApplication` class, override `onCreate()` and add the following code.
179+
5. In your newly created `CustomFlutterApplication` class, override `onCreate()` and add the following code.
168180

169181
```java
170182
ArrayList<String> invocationEvents = new ArrayList<>();

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ android {
3434
}
3535

3636
dependencies {
37-
implementation 'com.instabug.library:instabug:8.2.2'
37+
implementation 'com.instabug.library:instabug:8.3.0.2'
3838
testImplementation 'junit:junit:4.12'
3939
}

android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rootProject.name = 'instabug_flutter'
1+
rootProject.name = 'instabug'

example/android/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ allprojects {
1313
repositories {
1414
google()
1515
jcenter()
16+
maven {
17+
url "https://sdks.instabug.com/nexus/repository/instabug-cp"
18+
}
1619
}
1720
}
1821

example/lib/main.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import 'dart:io' show Platform;
33
import 'dart:typed_data';
44
import 'package:flutter/material.dart';
55
import 'package:flutter/services.dart';
6-
import 'package:instabug_flutter/Instabug.dart';
7-
import 'package:instabug_flutter/BugReporting.dart';
8-
import 'package:instabug_flutter/InstabugLog.dart';
9-
import 'package:instabug_flutter/Surveys.dart';
10-
import 'package:instabug_flutter/FeatureRequests.dart';
11-
import 'package:instabug_flutter/Chats.dart';
12-
import 'package:instabug_flutter/Replies.dart';
6+
import 'package:instabug/Instabug.dart';
7+
import 'package:instabug/BugReporting.dart';
8+
import 'package:instabug/InstabugLog.dart';
9+
import 'package:instabug/Surveys.dart';
10+
import 'package:instabug/FeatureRequests.dart';
11+
import 'package:instabug/Chats.dart';
12+
import 'package:instabug/Replies.dart';
1313

1414
void main() => runApp(MyApp());
1515

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dev_dependencies:
1717
flutter_test:
1818
sdk: flutter
1919

20-
instabug_flutter:
20+
instabug:
2121
path: ../
2222

2323
# For information on the generic Dart part of this file, see the

ios/instabug_flutter.podspec renamed to ios/instabug.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
33
#
44
Pod::Spec.new do |s|
5-
s.name = 'instabug_flutter'
5+
s.name = 'instabug'
66
s.version = '0.0.1'
77
s.summary = 'A new flutter plugin project.'
88
s.description = <<-DESC
@@ -15,7 +15,7 @@ A new flutter plugin project.
1515
s.source_files = 'Classes/**/*'
1616
s.public_header_files = 'Classes/**/*.h'
1717
s.dependency 'Flutter'
18-
s.dependency 'Instabug', '8.2.2'
18+
s.dependency 'Instabug', '8.3'
1919

2020
s.ios.deployment_target = '10.0'
2121
end

lib/BugReporting.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'dart:async';
22
import 'package:flutter/services.dart';
3-
import 'package:instabug_flutter/Instabug.dart';
3+
import 'package:instabug/Instabug.dart';
44

55
enum InvocationOption {
66
commentFieldRequired,

lib/Replies.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'dart:async';
22
import 'package:flutter/foundation.dart';
33
import 'package:flutter/services.dart';
4-
import 'package:instabug_flutter/Instabug.dart';
4+
import 'package:instabug/Instabug.dart';
55
import 'dart:io' show Platform;
66

77

0 commit comments

Comments
 (0)