Skip to content

Commit c9adc59

Browse files
committed
migrate library version and name to BuildConfig interface
1 parent 58b5211 commit c9adc59

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.auth0.net;
22

3+
import com.auth0.BuildConfig;
34
import okhttp3.Interceptor;
45
import okhttp3.Response;
56

@@ -11,7 +12,7 @@ public class TelemetryInterceptor implements Interceptor {
1112
private boolean enabled;
1213

1314
public TelemetryInterceptor() {
14-
this(new Telemetry("auth0-java", "1.0"));
15+
this(new Telemetry(BuildConfig.NAME, BuildConfig.VERSION));
1516
}
1617

1718
TelemetryInterceptor(Telemetry telemetry) {

0 commit comments

Comments
 (0)