From 5ce398f958a177087b0e1eb1390da03669b3ce9a Mon Sep 17 00:00:00 2001 From: pwh-pwh Date: Thu, 9 Nov 2023 15:02:57 +0800 Subject: [PATCH] Remove unnecessary dependencies and remove the activity. --- app/build.gradle.kts | 22 +++++++++-------- .../coderpwh/fuck/ExampleInstrumentedTest.kt | 24 ------------------- app/src/main/AndroidManifest.xml | 5 ++-- .../java/dev/coderpwh/fuck/MainActivity.kt | 11 --------- app/src/main/res/layout/activity_main.xml | 9 ------- app/src/main/res/values-night/themes.xml | 16 ------------- app/src/main/res/values/themes.xml | 16 ------------- app/src/main/res/values/values.xml | 3 +++ .../java/dev/coderpwh/fuck/ExampleUnitTest.kt | 17 ------------- 9 files changed, 17 insertions(+), 106 deletions(-) delete mode 100644 app/src/androidTest/java/dev/coderpwh/fuck/ExampleInstrumentedTest.kt delete mode 100644 app/src/main/java/dev/coderpwh/fuck/MainActivity.kt delete mode 100644 app/src/main/res/layout/activity_main.xml delete mode 100644 app/src/main/res/values-night/themes.xml delete mode 100644 app/src/main/res/values/themes.xml create mode 100644 app/src/main/res/values/values.xml delete mode 100644 app/src/test/java/dev/coderpwh/fuck/ExampleUnitTest.kt diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 1775f39..c07a263 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -12,10 +12,10 @@ android { applicationId = "dev.coderpwh.fuck" minSdk = 29 targetSdk = 33 - versionCode = 1 - versionName = "1.0" + versionCode = 2 + versionName = "2.0" - testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" +// testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } buildTypes { @@ -44,13 +44,15 @@ android { dependencies { - implementation("androidx.core:core-ktx:1.9.0") - implementation("androidx.appcompat:appcompat:1.6.1") - 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") - androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") +// implementation("androidx.core:core-ktx:1.9.0") +// implementation("androidx.appcompat:appcompat:1.6.1") +// 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") +// androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") + + implementation("androidx.annotation:annotation-jvm:1.7.0") // 基础依赖 implementation("com.highcapable.yukihookapi:api:1.1.11") diff --git a/app/src/androidTest/java/dev/coderpwh/fuck/ExampleInstrumentedTest.kt b/app/src/androidTest/java/dev/coderpwh/fuck/ExampleInstrumentedTest.kt deleted file mode 100644 index 5977b25..0000000 --- a/app/src/androidTest/java/dev/coderpwh/fuck/ExampleInstrumentedTest.kt +++ /dev/null @@ -1,24 +0,0 @@ -package dev.coderpwh.fuck - -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("dev.coderpwh.fuck", appContext.packageName) - } -} \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index d9128d6..72a84e5 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -12,7 +12,6 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" - android:theme="@style/Theme.Fuck_shake" tools:targetApi="31"> - - + --> diff --git a/app/src/main/java/dev/coderpwh/fuck/MainActivity.kt b/app/src/main/java/dev/coderpwh/fuck/MainActivity.kt deleted file mode 100644 index 24aad82..0000000 --- a/app/src/main/java/dev/coderpwh/fuck/MainActivity.kt +++ /dev/null @@ -1,11 +0,0 @@ -package dev.coderpwh.fuck - -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - } -} \ No newline at end of file diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml deleted file mode 100644 index 0b15a20..0000000 --- a/app/src/main/res/layout/activity_main.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - \ 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 deleted file mode 100644 index 2b49e73..0000000 --- a/app/src/main/res/values-night/themes.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml deleted file mode 100644 index d535c79..0000000 --- a/app/src/main/res/values/themes.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - \ No newline at end of file diff --git a/app/src/main/res/values/values.xml b/app/src/main/res/values/values.xml new file mode 100644 index 0000000..6b30d8d --- /dev/null +++ b/app/src/main/res/values/values.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/app/src/test/java/dev/coderpwh/fuck/ExampleUnitTest.kt b/app/src/test/java/dev/coderpwh/fuck/ExampleUnitTest.kt deleted file mode 100644 index 2706de5..0000000 --- a/app/src/test/java/dev/coderpwh/fuck/ExampleUnitTest.kt +++ /dev/null @@ -1,17 +0,0 @@ -package dev.coderpwh.fuck - -import org.junit.Test - -import org.junit.Assert.* - -/** - * Example local unit test, which will execute on the development machine (host). - * - * See [testing documentation](http://d.android.com/tools/testing). - */ -class ExampleUnitTest { - @Test - fun addition_isCorrect() { - assertEquals(4, 2 + 2) - } -} \ No newline at end of file