Skip to content

Commit

Permalink
Update settings.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Chipppppppppp committed Jan 20, 2024
1 parent c170256 commit 3d34240
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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 <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@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());
}
}
17 changes: 17 additions & 0 deletions app/src/test/java/io/github/lime/ExampleUnitTest.java
Original file line number Diff line number Diff line change
@@ -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 <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3d34240

Please sign in to comment.