Skip to content

Commit 16946a2

Browse files
authored
Merge pull request #413 from Microsoft/release/demo_v0.7.0
Release/demo v0.7.0
2 parents 727355e + 930a3a8 commit 16946a2

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

apps/sasquatch/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ android {
2222
}
2323

2424
dependencies {
25-
def version = "0.6.1"
25+
def version = "0.7.0"
2626
compile "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
2727
projectDependencyCompile project(':sdk:mobile-center-analytics')
2828
projectDependencyCompile project(':sdk:mobile-center-crashes')

apps/sasquatch/src/projectDependency/java/com/microsoft/azure/mobile/sasquatch/utils/SasquatchDistributeListener.java renamed to apps/sasquatch/src/main/java/com/microsoft/azure/mobile/sasquatch/SasquatchDistributeListener.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.microsoft.azure.mobile.sasquatch.utils;
1+
package com.microsoft.azure.mobile.sasquatch;
22

33
import android.app.Activity;
44
import android.content.DialogInterface;
@@ -8,7 +8,6 @@
88
import com.microsoft.azure.mobile.distribute.DistributeListener;
99
import com.microsoft.azure.mobile.distribute.ReleaseDetails;
1010
import com.microsoft.azure.mobile.distribute.UpdateAction;
11-
import com.microsoft.azure.mobile.sasquatch.R;
1211

1312
public class SasquatchDistributeListener implements DistributeListener {
1413

apps/sasquatch/src/main/java/com/microsoft/azure/mobile/sasquatch/activities/MainActivity.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import android.os.Bundle;
88
import android.os.StrictMode;
99
import android.support.annotation.Nullable;
10-
import android.support.annotation.StringRes;
1110
import android.support.annotation.VisibleForTesting;
1211
import android.support.test.espresso.idling.CountingIdlingResource;
1312
import android.support.v7.app.AlertDialog;
@@ -35,7 +34,7 @@
3534
import com.microsoft.azure.mobile.sasquatch.R;
3635
import com.microsoft.azure.mobile.sasquatch.features.TestFeatures;
3736
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;
3938

4039
import org.json.JSONObject;
4140

@@ -67,13 +66,7 @@ protected void onCreate(Bundle savedInstanceState) {
6766
/* Set listeners. */
6867
AnalyticsPrivateHelper.setListener(getAnalyticsListener());
6968
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());
7770

7871
/* Set distribute urls. */
7972
String installUrl = getString(R.string.install_url);

0 commit comments

Comments
 (0)