We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58b5211 commit c9adc59Copy full SHA for c9adc59
2 files changed
src/main/java/com/auth0/BuildConfig.java
@@ -0,0 +1,6 @@
1
+package com.auth0;
2
+
3
+public interface BuildConfig {
4
+ String NAME = "auth0-java";
5
+ String VERSION = "1.0.0";
6
+}
src/main/java/com/auth0/net/TelemetryInterceptor.java
@@ -1,5 +1,6 @@
package com.auth0.net;
+import com.auth0.BuildConfig;
import okhttp3.Interceptor;
import okhttp3.Response;
@@ -11,7 +12,7 @@ public class TelemetryInterceptor implements Interceptor {
11
12
private boolean enabled;
13
14
public TelemetryInterceptor() {
- this(new Telemetry("auth0-java", "1.0"));
15
+ this(new Telemetry(BuildConfig.NAME, BuildConfig.VERSION));
16
}
17
18
TelemetryInterceptor(Telemetry telemetry) {
0 commit comments