From 6bca50fb778db1aa800851077474f268399dada4 Mon Sep 17 00:00:00 2001 From: Luciano Balmaceda Date: Wed, 7 Sep 2016 11:10:14 -0300 Subject: [PATCH] fix wrong auth0.android lib version sent in telemetry --- lib/src/main/java/com/auth0/android/lock/Lock.java | 4 ++-- .../main/java/com/auth0/android/lock/PasswordlessLock.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/main/java/com/auth0/android/lock/Lock.java b/lib/src/main/java/com/auth0/android/lock/Lock.java index a14ede46f..820d3ca5b 100644 --- a/lib/src/main/java/com/auth0/android/lock/Lock.java +++ b/lib/src/main/java/com/auth0/android/lock/Lock.java @@ -209,8 +209,8 @@ public Lock build(@NonNull Activity activity) { Log.v(TAG, "Lock instance created"); if (options.getAccount().getTelemetry() != null) { - Log.v(TAG, String.format("Using Telemetry %s (%s) and Library %s", Constants.LIBRARY_NAME, com.auth0.android.lock.BuildConfig.VERSION_NAME, BuildConfig.VERSION_NAME)); - options.getAccount().setTelemetry(new Telemetry(Constants.LIBRARY_NAME, com.auth0.android.lock.BuildConfig.VERSION_NAME, BuildConfig.VERSION_NAME)); + Log.v(TAG, String.format("Using Telemetry %s (%s) and Library %s", Constants.LIBRARY_NAME, com.auth0.android.lock.BuildConfig.VERSION_NAME, com.auth0.android.auth0.BuildConfig.VERSION_NAME)); + options.getAccount().setTelemetry(new Telemetry(Constants.LIBRARY_NAME, com.auth0.android.lock.BuildConfig.VERSION_NAME, com.auth0.android.auth0.BuildConfig.VERSION_NAME)); } final Lock lock = new Lock(options, callback); diff --git a/lib/src/main/java/com/auth0/android/lock/PasswordlessLock.java b/lib/src/main/java/com/auth0/android/lock/PasswordlessLock.java index d7ae8a127..28684b1cb 100644 --- a/lib/src/main/java/com/auth0/android/lock/PasswordlessLock.java +++ b/lib/src/main/java/com/auth0/android/lock/PasswordlessLock.java @@ -199,8 +199,8 @@ public PasswordlessLock build(@NonNull Activity activity) { Log.v(TAG, "PasswordlessLock instance created"); if (options.getAccount().getTelemetry() != null) { - Log.v(TAG, String.format("Using Telemetry %s (%s) and Library %s", Constants.LIBRARY_NAME, com.auth0.android.lock.BuildConfig.VERSION_NAME, BuildConfig.VERSION_NAME)); - options.getAccount().setTelemetry(new Telemetry(Constants.LIBRARY_NAME, com.auth0.android.lock.BuildConfig.VERSION_NAME, BuildConfig.VERSION_NAME)); + Log.v(TAG, String.format("Using Telemetry %s (%s) and Library %s", Constants.LIBRARY_NAME, com.auth0.android.lock.BuildConfig.VERSION_NAME, com.auth0.android.auth0.BuildConfig.VERSION_NAME)); + options.getAccount().setTelemetry(new Telemetry(Constants.LIBRARY_NAME, com.auth0.android.lock.BuildConfig.VERSION_NAME, com.auth0.android.auth0.BuildConfig.VERSION_NAME)); } final PasswordlessLock lock = new PasswordlessLock(options, callback);