From 18ca4ead52f3ec558541b01c025f2b366a6c3f5c Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 13 Feb 2024 18:09:42 +0100 Subject: remove junk --- app/build.gradle.kts | 28 ---------------------- .../lonkaars/bingo3/ExampleInstrumentedTest.java | 26 -------------------- .../java/com/lonkaars/bingo3/WeatherActivity.java | 3 --- .../java/com/lonkaars/bingo3/ExampleUnitTest.java | 17 ------------- build.gradle.kts | 1 - 5 files changed, 75 deletions(-) delete mode 100644 app/src/androidTest/java/com/lonkaars/bingo3/ExampleInstrumentedTest.java delete mode 100644 app/src/test/java/com/lonkaars/bingo3/ExampleUnitTest.java diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 2a6c7de..0418f50 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -1,6 +1,5 @@ plugins { id("com.android.application") - id("org.jetbrains.kotlin.android") } android { @@ -14,7 +13,6 @@ android { versionCode = 1 versionName = "1.0" - testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { useSupportLibrary = true } @@ -34,12 +32,6 @@ android { viewBinding = true compose = true } - kotlinOptions { - jvmTarget = "1.8" - } - composeOptions { - kotlinCompilerExtensionVersion = "1.5.1" - } packaging { resources { excludes += "/META-INF/{AL2.0,LGPL2.1}" @@ -48,28 +40,8 @@ android { } dependencies { - implementation("androidx.appcompat:appcompat:1.6.1") implementation("com.google.android.material:material:1.11.0") implementation("androidx.constraintlayout:constraintlayout:2.1.4") - implementation("androidx.drawerlayout:drawerlayout:1.2.0") - implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.7.0") - implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0") - implementation("androidx.navigation:navigation-fragment:2.7.7") - implementation("androidx.navigation:navigation-ui:2.7.7") - implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0") - implementation("androidx.activity:activity-compose:1.8.2") - implementation(platform("androidx.compose:compose-bom:2023.08.00")) - implementation("androidx.compose.ui:ui") - implementation("androidx.compose.ui:ui-graphics") - implementation("androidx.compose.ui:ui-tooling-preview") - implementation("androidx.compose.material3:material3") implementation("com.android.volley:volley:1.2.1") - testImplementation("junit:junit:4.13.2") - androidTestImplementation("androidx.test.ext:junit:1.1.5") - androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") - androidTestImplementation(platform("androidx.compose:compose-bom:2023.08.00")) - androidTestImplementation("androidx.compose.ui:ui-test-junit4") - debugImplementation("androidx.compose.ui:ui-tooling") - debugImplementation("androidx.compose.ui:ui-test-manifest") } \ No newline at end of file diff --git a/app/src/androidTest/java/com/lonkaars/bingo3/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/lonkaars/bingo3/ExampleInstrumentedTest.java deleted file mode 100644 index 5368de5..0000000 --- a/app/src/androidTest/java/com/lonkaars/bingo3/ExampleInstrumentedTest.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.lonkaars.bingo3; - -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("com.lonkaars.bingo3", appContext.getPackageName()); - } -} \ No newline at end of file diff --git a/app/src/main/java/com/lonkaars/bingo3/WeatherActivity.java b/app/src/main/java/com/lonkaars/bingo3/WeatherActivity.java index 3a5aa6e..bc6d4a3 100644 --- a/app/src/main/java/com/lonkaars/bingo3/WeatherActivity.java +++ b/app/src/main/java/com/lonkaars/bingo3/WeatherActivity.java @@ -1,7 +1,6 @@ package com.lonkaars.bingo3; import android.os.Bundle; -import android.util.Log; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; @@ -11,8 +10,6 @@ import androidx.appcompat.app.AppCompatActivity; import com.android.volley.Request; import com.android.volley.RequestQueue; -import com.android.volley.Response; -import com.android.volley.VolleyError; import com.android.volley.toolbox.JsonObjectRequest; import com.android.volley.toolbox.Volley; import com.google.android.material.appbar.MaterialToolbar; diff --git a/app/src/test/java/com/lonkaars/bingo3/ExampleUnitTest.java b/app/src/test/java/com/lonkaars/bingo3/ExampleUnitTest.java deleted file mode 100644 index 19d3b6d..0000000 --- a/app/src/test/java/com/lonkaars/bingo3/ExampleUnitTest.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.lonkaars.bingo3; - -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/build.gradle.kts b/build.gradle.kts index 4645626..196e647 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,4 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { id("com.android.application") version "8.2.2" apply false - id("org.jetbrains.kotlin.android") version "1.9.0" apply false } \ No newline at end of file -- cgit v1.2.3