From 3d34240c6b11bbb43748d1444c456c34ecab77aa Mon Sep 17 00:00:00 2001
From: Chippppp <78024852+Chipppppppppp@users.noreply.github.com>
Date: Sat, 20 Jan 2024 17:01:59 +0900
Subject: [PATCH] Update settings.gradle
---
.../example/lime/ExampleInstrumentedTest.java | 26 +++++++++++++++++++
.../java/io/github/lime/ExampleUnitTest.java | 17 ++++++++++++
settings.gradle | 2 +-
3 files changed, 44 insertions(+), 1 deletion(-)
create mode 100644 app/src/androidTest/java/com/example/lime/ExampleInstrumentedTest.java
create mode 100644 app/src/test/java/io/github/lime/ExampleUnitTest.java
diff --git a/app/src/androidTest/java/com/example/lime/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/example/lime/ExampleInstrumentedTest.java
new file mode 100644
index 00000000..cb7fe28a
--- /dev/null
+++ b/app/src/androidTest/java/com/example/lime/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package io.github.chipppppppppp.lime;
+
+import android.content.Context;
+
+import androidx.test.platform.app.InstrumentationRegistry;
+import androidx.test.ext.junit.runners.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
+ assertEquals("io.github.chipppppppppp.lime", appContext.getPackageName());
+ }
+}
\ No newline at end of file
diff --git a/app/src/test/java/io/github/lime/ExampleUnitTest.java b/app/src/test/java/io/github/lime/ExampleUnitTest.java
new file mode 100644
index 00000000..679cd7db
--- /dev/null
+++ b/app/src/test/java/io/github/lime/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package io.github.lime;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/settings.gradle b/settings.gradle
index 3a6dad84..f92625b4 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -5,7 +5,7 @@ pluginManagement {
gradlePluginPortal()
}
plugins {
- id 'com.android.application' version '8.2.1' apply false
+ id 'com.android.application' version '8.1.0' apply false
}
}
dependencyResolutionManagement {