Skip to content

Commit 9349ab8

Browse files
committed
version: 0.10.0
1 parent 6f5c2dc commit 9349ab8

File tree

8 files changed

+23
-20
lines changed

8 files changed

+23
-20
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## [Unreleased]
22

3+
## [0.10.0]
4+
35
### Updated sentry integration
46

57
Sentry updated from 1.7.29 to 4.0.0-beta.1. It is impossible to do this upgrade without breaking changes, so way to set
@@ -29,4 +31,6 @@ public Reporter createReporter() {
2931
- Updated Coroutines and Fuel
3032
- Build infrastructure updated
3133

32-
[unreleased]: https://github.com/EndlessCodeGroup/Inspector/compare/v0.9...develop
34+
[unreleased]: https://github.com/EndlessCodeGroup/Inspector/compare/v0.10.0...develop
35+
36+
[0.10.0]: https://github.com/EndlessCodeGroup/Inspector/compare/v0.9...v0.10.0

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ shadowJar {
9090
tasks.assemble.dependsOn tasks.shadowJar
9191
9292
// Here you can change preferred version of inspector
93-
ext.inspectorVerson = "0.9"
93+
ext.inspectorVerson = "0.10.0"
9494
9595
// Add Inspector as dependency
9696
// 'inspector-bukkit' - implementation of Inspector for Bukkit.
9797
// 'inspector-sentry-reporter' - reporter that we want to use (read above about available reporters)
9898
dependencies {
9999
implementation "ru.endlesscode.inspector:inspector-bukkit:$inspectorVerson"
100100
implementation "ru.endlesscode.inspector:inspector-sentry-reporter:$inspectorVerson"
101-
implementation "ru.endlesscode.inspector:sentry-bukkit:$inspectorVerson" // If you want BukkitPluginSentryClientFactory
101+
implementation "ru.endlesscode.inspector:sentry-bukkit:$inspectorVerson" // If you want SentryBukkitIntegration
102102
}
103103
```
104104

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ subprojects {
1616
description = rootProject.description
1717
base.archivesBaseName = name
1818

19-
version = "0.10.0-SNAPSHOT"
19+
version = "0.10.0"
2020
}
2121

2222
// Configuration for API implementations

inspector-bukkit/src/main/kotlin/Inspector.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class Inspector internal constructor(private val configFile: File, privat
1818
/**
1919
* Version of Inspector.
2020
*/
21-
public const val version: String = "0.9"
21+
public const val version: String = "0.10.0"
2222

2323
// Preserved value for case if global config not contains server ID yet
2424
private val newServerId by lazy { UUID.randomUUID() }

samples/advanced-usage/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ task relocateShadowJar(type: ConfigureShadowRelocation) {
3737
tasks.shadowJar.dependsOn tasks.relocateShadowJar
3838
tasks.assemble.dependsOn tasks.shadowJar
3939

40-
ext.inspectorVerson = "0.9"
40+
ext.inspectorVerson = "0.10.0"
4141

4242
dependencies {
4343
compileOnly(bukkit()) {

samples/hello-maven/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@
108108
<dependency>
109109
<groupId>ru.endlesscode.inspector</groupId>
110110
<artifactId>inspector-bukkit</artifactId>
111-
<version>0.9</version>
111+
<version>0.10.0</version>
112112
<scope>compile</scope>
113113
</dependency>
114114
<dependency>
115115
<groupId>ru.endlesscode.inspector</groupId>
116116
<artifactId>inspector-sentry-reporter</artifactId>
117-
<version>0.9</version>
117+
<version>0.10.0</version>
118118
<scope>compile</scope>
119119
</dependency>
120120
</dependencies>

samples/proguard-minimization/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ shadowJar {
3636
}
3737
tasks.assemble.dependsOn tasks.shadowJar
3838

39-
ext.inspectorVerson = "0.9"
39+
ext.inspectorVerson = "0.10.0"
4040

4141
dependencies {
4242
compileOnly(bukkit()) {

samples/sentry-reporter/README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,26 @@ Reporter that sends reports to [Sentry](https://sentry.io/).
33

44
### Gradle
55
```groovy
6-
ext.inspectorVersion = "0.9"
6+
ext.inspectorVersion = "0.10.0"
77
dependencies {
88
implementation "ru.endlesscode.inspector:inspector-sentry-reporter:$inspectorVersion"
9-
implementation "ru.endlesscode.inspector:sentry-bukkit:$inspectorVersion" // If you want BukkitPluginSentryClientFactory
9+
implementation "ru.endlesscode.inspector:sentry-bukkit:$inspectorVersion" // If you want SentryBukkitIntegration
1010
}
1111
```
1212

1313
## Usage
1414
You should return `SentryReporter` in `createReporter` method:
1515
```java
1616
@Override
17-
protected Reporter createReporter() {
18-
String publicKey = "[YOUR_PUBLIC_KEY_HERE]";
19-
String projectId = "[YOUR_PROJECT_ID_HERE]";
17+
protected Reporter createReporter(){
18+
String dsn="[YOUR_DSN_HERE]";
2019

21-
return new SentryReporter.Builder()
22-
.setDataSourceName(publicKey, projectId)
23-
// If you want more detailed reports, add this, but you also should
24-
// add `sentry-bukkit` dependency before
25-
.setClientFactory(new BukkitPluginSentryClientFactory(this))
26-
.focusOn(this) // this - instance of TrackedPlugin
20+
return new SentryReporter.Builder()
21+
.setDsn(dsn)
22+
// If you want more detailed reports, add this, but you also should
23+
// add `sentry-bukkit` dependency before
24+
.addIntegration(new SentryBukkitIntegration(this))
25+
.focusOn(this) // this - instance of TrackedPlugin
2726
.build();
2827
}
2928
```

0 commit comments

Comments
 (0)