Skip to content

Commit 5f29e58

Browse files
authored
Modify Android test files (#1021)
To get android build for amber to work internally, I need a few changes. I do not know enough about the junit testing to know if this will mess anyonly else up. I'm also not sure who else uses all of this. Let me know if this causes a problem.
1 parent 933ecb4 commit 5f29e58

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

android_gradle/app/src/androidTest/AndroidManifest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@
55
android:name="com.android.graphics.developerdriver.enable"
66
android:value="true" />
77
</application>
8+
9+
<instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
10+
android:targetPackage="com.google.amber"
11+
android:label="Amber" />
812
</manifest>

android_gradle/app/src/androidTest/java/com/google/amber/AmberLauncher.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818

1919
import android.content.Context;
2020
import android.os.Bundle;
21-
2221
import androidx.test.platform.app.InstrumentationRegistry;
23-
24-
import org.junit.Test;
25-
2622
import java.io.File;
2723
import java.util.ArrayList;
2824
import java.util.List;
25+
import org.junit.Test;
26+
import org.junit.runner.RunWith;
27+
import org.junit.runners.JUnit4;
2928

3029
// Instrumented test used for launching Amber.
30+
@RunWith(JUnit4.class)
3131
public class AmberLauncher {
3232
@Test
3333
public void LaunchAmber() {

android_gradle/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="com.google.amber">
44

5+
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="33"/>
6+
57
<application
68
android:allowBackup="true"
79
android:fullBackupOnly="true"

0 commit comments

Comments
 (0)