-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from bugsnag/releases/v2.2.0
v2.2.0 Release
- Loading branch information
Showing
44 changed files
with
379 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
.../android/app/src/main/java/com/bugsnag/flutter/test/app/scenario/NativeCrashScenario.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
package com.bugsnag.flutter.test.app.scenario; | ||
|
||
import androidx.annotation.Nullable; | ||
import android.content.Context; | ||
|
||
import io.flutter.plugin.common.MethodCall; | ||
|
||
public class NativeCrashScenario extends Scenario { | ||
@Override | ||
public void run(@Nullable String extraConfig) { | ||
public void run(Context context, MethodCall call) { | ||
throw new RuntimeException("crash from Java"); | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...pp/src/main/java/com/bugsnag/flutter/test/app/scenario/NativeProjectPackagesScenario.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.bugsnag.flutter.test.app.scenario; | ||
|
||
import android.content.Context; | ||
|
||
import com.bugsnag.android.Bugsnag; | ||
import com.bugsnag.android.Configuration; | ||
import com.bugsnag.android.EndpointConfiguration; | ||
|
||
import java.util.LinkedHashSet; | ||
import java.util.Objects; | ||
import java.util.Set; | ||
|
||
import io.flutter.plugin.common.MethodCall; | ||
|
||
public class NativeProjectPackagesScenario extends Scenario { | ||
@Override | ||
public void run(Context context, MethodCall call) { | ||
|
||
Configuration configuration = Configuration.load(context); | ||
configuration.setApiKey("abc12312312312312312312312312312"); | ||
configuration.setEndpoints(new EndpointConfiguration( | ||
Objects.requireNonNull(call.argument("notifyEndpoint")), | ||
Objects.requireNonNull(call.argument("sessionEndpoint")))); | ||
|
||
Set<String> projectPackages = new LinkedHashSet<>(); | ||
projectPackages.add("test_package"); | ||
projectPackages.add("MazeRunner"); | ||
projectPackages.add("com.bugsnag.flutter.test.app"); | ||
configuration.setProjectPackages(projectPackages); | ||
|
||
Bugsnag.start(context, configuration); | ||
} | ||
} |
6 changes: 4 additions & 2 deletions
6
...ixtures/app/android/app/src/main/java/com/bugsnag/flutter/test/app/scenario/Scenario.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
package com.bugsnag.flutter.test.app.scenario; | ||
|
||
import androidx.annotation.Nullable; | ||
import android.content.Context; | ||
|
||
import io.flutter.plugin.common.MethodCall; | ||
|
||
public abstract class Scenario { | ||
public abstract void run(@Nullable String extraConfig); | ||
public abstract void run(Context context, MethodCall call); | ||
} |
Oops, something went wrong.