|
7 | 7 | import android.os.Bundle; |
8 | 8 | import android.os.StrictMode; |
9 | 9 | import android.support.annotation.Nullable; |
10 | | -import android.support.annotation.StringRes; |
11 | 10 | import android.support.annotation.VisibleForTesting; |
12 | 11 | import android.support.test.espresso.idling.CountingIdlingResource; |
13 | 12 | import android.support.v7.app.AlertDialog; |
|
35 | 34 | import com.microsoft.azure.mobile.sasquatch.R; |
36 | 35 | import com.microsoft.azure.mobile.sasquatch.features.TestFeatures; |
37 | 36 | import com.microsoft.azure.mobile.sasquatch.features.TestFeaturesListAdapter; |
38 | | -import com.microsoft.azure.mobile.sasquatch.utils.SasquatchDistributeListener; |
| 37 | +import com.microsoft.azure.mobile.sasquatch.SasquatchDistributeListener; |
39 | 38 |
|
40 | 39 | import org.json.JSONObject; |
41 | 40 |
|
@@ -67,13 +66,7 @@ protected void onCreate(Bundle savedInstanceState) { |
67 | 66 | /* Set listeners. */ |
68 | 67 | AnalyticsPrivateHelper.setListener(getAnalyticsListener()); |
69 | 68 | Crashes.setListener(getCrashesListener()); |
70 | | - |
71 | | - /* Set distribute listener. */ |
72 | | - try { |
73 | | - Distribute.class.getMethod("setListener", Class.forName("com.microsoft.azure.mobile.distribute.DistributeListener")).invoke(null, new SasquatchDistributeListener()); |
74 | | - } catch (Exception e) { |
75 | | - Log.i(LOG_TAG, "Distribute listener is not yet available in this flavor."); |
76 | | - } |
| 69 | + Distribute.setListener(new SasquatchDistributeListener()); |
77 | 70 |
|
78 | 71 | /* Set distribute urls. */ |
79 | 72 | String installUrl = getString(R.string.install_url); |
|
0 commit comments