Skip to content

Commit

Permalink
add 2nd URL for DAL testing
Browse files Browse the repository at this point in the history
also delete unused example test files
  • Loading branch information
glennhartmann committed Jul 15, 2021
1 parent f741baf commit d736833
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 53 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ protected void onCreate(Bundle savedInstanceState) {

final Button httpsButton = findViewById(R.id.https_button);
httpsButton.setOnClickListener(v -> launchUrl("https://slash-statuesque-bracket.glitch.me/pwatest/"));

final Button httpButton2 = findViewById(R.id.http_button2);
httpButton2.setOnClickListener(v -> launchUrl("http://elite-small-find.glitch.me/pwatest/"));

final Button httpsButton2 = findViewById(R.id.https_button2);
httpsButton2.setOnClickListener(v -> launchUrl("https://elite-small-find.glitch.me/pwatest/"));
}

private void launchUrl(String url) {
Expand All @@ -29,4 +35,4 @@ private void launchUrl(String url) {
e.printStackTrace();
}
}
}
}
50 changes: 42 additions & 8 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,66 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
android:layout_marginBottom="268dp"
android:text="slash-statuesque-bracket.glitch.me\n(no DAL)"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent" />

<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="56dp"
android:text="elite-small-find.glitch.me\n(with DAL)"
app:layout_constraintHorizontal_bias="0.498"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<Button
android:id="@+id/http_button"
android:id="@+id/https_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="292dp"
android:text="Launch HTTP URL"
android:layout_marginBottom="144dp"
android:text="Launch HTTPS URL"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintHorizontal_bias="0.493"
app:layout_constraintStart_toStartOf="parent" />

<Button
android:id="@+id/https_button"
android:id="@+id/https_button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="228dp"
android:layout_marginTop="13dp"
android:text="Launch HTTPS URL"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.493"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/http_button2" />

<Button
android:id="@+id/http_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="208dp"
android:text="Launch HTTP URL"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintHorizontal_bias="0.493"
app:layout_constraintStart_toStartOf="parent" />

<Button
android:id="@+id/http_button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="23dp"
android:text="Launch HTTP URL"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView" />

</androidx.constraintlayout.widget.ConstraintLayout>
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">My Application</string>
<string name="app_name">PWA Intent Launcher</string>
</resources>
17 changes: 0 additions & 17 deletions app/src/test/java/com/example/myapplication/ExampleUnitTest.java

This file was deleted.

0 comments on commit d736833

Please sign in to comment.