Skip to content

Commit b96c9f3

Browse files
Merged the Deep Linking Validator and the Integration Validator.
Merged the Deep Linking Validator and the Integration Validator.
1 parent e7902da commit b96c9f3

File tree

4 files changed

+38
-8
lines changed

4 files changed

+38
-8
lines changed

Branch-SDK-TestBed/src/main/java/io/branch/branchandroidtestbed/MainActivity.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
import io.branch.referral.util.LinkProperties;
5656
import io.branch.referral.util.ProductCategory;
5757
import io.branch.referral.util.ShareSheetStyle;
58-
import io.branch.referral.validators.LinkingValidator;
58+
import io.branch.referral.validators.IntegrationValidator;
5959

6060
public class MainActivity extends Activity {
6161
private EditText txtShortUrl;
@@ -439,7 +439,7 @@ public void onClick(View view) {
439439
.setContentIntent(pendingIntent)
440440
.setAutoCancel(true);
441441
NotificationManagerCompat notificationManager = NotificationManagerCompat.from(MainActivity.this);
442-
notificationManager.notify(1, builder.build());
442+
//notificationManager.notify(1, builder.build());
443443
Log.d("BranchSDK_Tester", "Sent notification");
444444
}
445445
});
@@ -661,8 +661,7 @@ protected void onStart() {
661661
// Please look for "BranchSDK_Doctor" in the logcat to see the results.
662662
// IMP : Do not make this call in your production app
663663

664-
//IntegrationValidator.validate(MainActivity.this);
665-
LinkingValidator.validate(MainActivity.this);
664+
IntegrationValidator.validate(MainActivity.this);
666665
}
667666

668667

Branch-SDK/src/main/java/io/branch/referral/validators/IntegrationValidatorDialog.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public class IntegrationValidatorDialog extends Dialog {
2222
IntegrationValidatorDialogRowItem test8RowItem;
2323

2424
Button exportLogsButton;
25+
Button testDeepLinkingButton;
2526

2627
public IntegrationValidatorDialog(final Context context) {
2728
super(context);
@@ -40,10 +41,15 @@ public IntegrationValidatorDialog(final Context context) {
4041
test8RowItem = findViewById(R.id.test_8_alternate_domain_intent_filters);
4142

4243
exportLogsButton = findViewById(R.id.export_logs_button);
44+
testDeepLinkingButton = findViewById(R.id.test_deep_linking_button);
4345

4446
exportLogsButton.setOnClickListener(view -> {
4547
shareLogsAsText(context);
4648
});
49+
50+
testDeepLinkingButton.setOnClickListener(view -> {
51+
LinkingValidator.validate(context);
52+
});
4753
}
4854

4955
public void setTestResult(int testNumber, String name, boolean didTestPass, String detailsMessage, String moreInfoLink) {

Branch-SDK/src/main/res/layout/dialog_integration_validator.xml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,39 @@
130130

131131
</io.branch.referral.validators.IntegrationValidatorDialogRowItem>
132132

133+
<LinearLayout
134+
android:layout_width="match_parent"
135+
android:layout_height="0dp"
136+
android:orientation="horizontal"
137+
android:layout_weight="0.1">
138+
133139
<Button
134140
android:id="@+id/export_logs_button"
135-
android:layout_width="150dp"
136-
android:layout_height="0dp"
141+
android:layout_width="0dp"
142+
android:layout_height="match_parent"
137143
android:layout_gravity="center"
138144
android:gravity="center"
139145
android:backgroundTint="#2A97FF"
140146
android:text="Export Logs"
141147
android:textColor="#FFFFFF"
142-
android:layout_weight="0.1"/>
148+
android:layout_weight="0.5"
149+
android:layout_marginStart="20dp"
150+
android:layout_marginEnd="20dp" />
151+
152+
<Button
153+
android:id="@+id/test_deep_linking_button"
154+
android:layout_width="0dp"
155+
android:layout_height="match_parent"
156+
android:layout_gravity="center"
157+
android:gravity="center"
158+
android:backgroundTint="#2A97FF"
159+
android:text="Test Deep Linking"
160+
android:textColor="#FFFFFF"
161+
android:layout_weight="0.5"
162+
android:layout_marginStart="20dp"
163+
android:layout_marginEnd="20dp" />
164+
165+
</LinearLayout>
143166

144167
</LinearLayout>
145168

Branch-SDK/src/main/res/layout/integration_validator_dialog_row_item.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,7 @@
4747
android:textAlignment="center"
4848
android:textColor="#FFFFFF"
4949
android:layout_gravity="end"
50-
android:layout_weight="0.4"/>
50+
android:layout_weight="0.4"
51+
android:layout_marginStart="20dp"
52+
android:layout_marginEnd="20dp" />
5153
</LinearLayout>

0 commit comments

Comments
 (0)