Skip to content

Commit

Permalink
AGP 8.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
syslogic committed Oct 15, 2024
1 parent f40bde9 commit ead7ff5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon May 15 03:22:49 CEST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
import static org.hamcrest.MatcherAssert.assertThat;

/**
* Profile Test Case
* Profile Test-Case
*
* @author Martin Zeitler
*/
@RunWith(AndroidJUnit4.class)
// @RunWith(AndroidJUnit4.class)
public class TestProfile extends TestSuite {

private final String className = TestProfile.class.getSimpleName().concat("Activity").replace("Test", "");
Expand All @@ -34,4 +34,4 @@ public void WebView() {
UiObject2 layout = this.mDevice.findObject(By.res(this.packageName, "webview"));
assertThat(true, is(equalTo(true)));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
import static org.hamcrest.MatcherAssert.assertThat;

/**
* Repositories Test Case
* Repositories Test-Case
*
* @author Martin Zeitler
*/
@RunWith(AndroidJUnit4.class)
// @RunWith(AndroidJUnit4.class)
public class TestRepositories extends TestSuite {

private final String className = TestRepositories.class.getSimpleName().concat("Activity").replace("Test", "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
import static org.hamcrest.MatcherAssert.assertThat;

/**
* Repository Test Case
* Repository Test-Case
*
* @author Martin Zeitler
*/
@Deprecated
@RunWith(AndroidJUnit4.class)
// @RunWith(AndroidJUnit4.class)
public class TestRepository extends TestSuite {

private final String className = TestRepository.class.getSimpleName().concat("Activity").replace("Test", "");
Expand Down
11 changes: 7 additions & 4 deletions mobile/src/androidTest/java/io/syslogic/github/TestSuite.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import java.util.List;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.uiautomator.By;
import androidx.test.uiautomator.Direction;
Expand All @@ -34,7 +35,7 @@
import static org.hamcrest.core.IsNull.notNullValue;

/**
* Application Test Suite
* Test-Suite
*
* @author Martin Zeitler
*/
Expand All @@ -52,10 +53,11 @@ public class TestSuite {
UiDevice mDevice;

/**
* uses package manager to find the package name of the device launcher.
* Uses package manager to find the package name of the device launcher.
* usually this package is "com.android.launcher" but can be different at times.
* this is a generic solution which works on all platforms.`
**/
@Nullable
private String getLauncherPackageName() {

/* create a launcher Intent */
Expand Down Expand Up @@ -147,6 +149,7 @@ void grantPermission() {
}
}

/** @noinspection SameParameterValue */
void flingUp(UiObject2 view, int speed, int pause) {
assertThat(view, not(equalTo(null)));
try {
Expand All @@ -161,7 +164,7 @@ void sleep(int ms){
try {
Thread.sleep(ms);
} catch (InterruptedException e) {
e.printStackTrace();
Log.e("", e.getMessage(), e);
}
}
}
}

0 comments on commit ead7ff5

Please sign in to comment.