Skip to content

Commit

Permalink
Merge pull request #201 from auth0/fix-telemetry-version
Browse files Browse the repository at this point in the history
Dynamically obtain the project version for telemetry
  • Loading branch information
lbalmaceda authored May 1, 2019
2 parents b7bc099 + af3c4e9 commit 1672aca
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ buildscript {
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'gradle.plugin.com.auth0.gradle:oss-library:0.8.0'
classpath 'gradle.plugin.com.auth0.gradle:oss-library:0.9.0'
}
}

Expand Down
6 changes: 0 additions & 6 deletions src/main/java/com/auth0/BuildConfig.java

This file was deleted.

3 changes: 1 addition & 2 deletions src/main/java/com/auth0/net/TelemetryInterceptor.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.auth0.net;

import com.auth0.BuildConfig;
import okhttp3.Interceptor;
import okhttp3.Response;

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

public TelemetryInterceptor() {
this(new Telemetry(BuildConfig.NAME, BuildConfig.VERSION));
this(new Telemetry("auth0-java", Telemetry.class.getPackage().getImplementationVersion()));
}

TelemetryInterceptor(Telemetry telemetry) {
Expand Down

0 comments on commit 1672aca

Please sign in to comment.