From 3409f282349467f82254fb1df30ee9d26e7ff705 Mon Sep 17 00:00:00 2001 From: Alexis DRAI Date: Mon, 30 Jan 2023 13:50:22 +0100 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8FUpgrade=20dependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 8 ++++++- .../ExampleInstrumentedTest.kt | 24 ------------------- app/src/main/res/values-night/themes.xml | 2 +- app/src/main/res/values/themes.xml | 2 +- .../urbandictionarylight/ExampleUnitTest.kt | 17 ------------- build.gradle | 4 ++-- gradle/wrapper/gradle-wrapper.properties | 2 +- 7 files changed, 12 insertions(+), 47 deletions(-) delete mode 100644 app/src/androidTest/java/fr/uca/iut/urbandictionarylight/ExampleInstrumentedTest.kt delete mode 100644 app/src/test/java/fr/uca/iut/urbandictionarylight/ExampleUnitTest.kt diff --git a/app/build.gradle b/app/build.gradle index 91f3ab6..07a2160 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -23,20 +23,26 @@ android { proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + kotlinOptions { jvmTarget = '1.8' } + + buildFeatures { + viewBinding = true + } } dependencies { implementation 'androidx.core:core-ktx:1.9.0' implementation 'androidx.appcompat:appcompat:1.6.0' - implementation 'com.google.android.material:material:1.7.0' + implementation 'com.google.android.material:material:1.8.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.5' diff --git a/app/src/androidTest/java/fr/uca/iut/urbandictionarylight/ExampleInstrumentedTest.kt b/app/src/androidTest/java/fr/uca/iut/urbandictionarylight/ExampleInstrumentedTest.kt deleted file mode 100644 index 1748895..0000000 --- a/app/src/androidTest/java/fr/uca/iut/urbandictionarylight/ExampleInstrumentedTest.kt +++ /dev/null @@ -1,24 +0,0 @@ -package fr.uca.iut.urbandictionarylight - -import androidx.test.platform.app.InstrumentationRegistry -import androidx.test.ext.junit.runners.AndroidJUnit4 - -import org.junit.Test -import org.junit.runner.RunWith - -import org.junit.Assert.* - -/** - * Instrumented test, which will execute on an Android device. - * - * See [testing documentation](http://d.android.com/tools/testing). - */ -@RunWith(AndroidJUnit4::class) -class ExampleInstrumentedTest { - @Test - fun useAppContext() { - // Context of the app under test. - val appContext = InstrumentationRegistry.getInstrumentation().targetContext - assertEquals("fr.uca.iut.urbandictionarylight", appContext.packageName) - } -} \ No newline at end of file diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml index f13e449..beea633 100644 --- a/app/src/main/res/values-night/themes.xml +++ b/app/src/main/res/values-night/themes.xml @@ -1,4 +1,4 @@ - +