diff --git a/README.md b/README.md index 97a612094d..150e157b46 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # element-x-android-poc -Prrof Of Concept to run a Matrix client on Android devices using the Matrix Rust Sdk and Jetpack compose +Proof Of Concept to run a Matrix client on Android devices using the Matrix Rust Sdk and Jetpack compose. diff --git a/app/.gitignore b/app/.gitignore deleted file mode 100644 index 42afabfd2a..0000000000 --- a/app/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 21742e904e..fd0d5670f4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -14,7 +14,6 @@ android { versionCode 1 versionName "1.0" - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { useSupportLibrary true } @@ -55,10 +54,6 @@ dependencies { implementation "androidx.compose.ui:ui-tooling-preview:$compose_version" implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1' implementation 'androidx.activity:activity-compose:1.6.0' - testImplementation 'junit:junit:4.13.2' - androidTestImplementation 'androidx.test.ext:junit:1.1.3' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' - androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version" debugImplementation "androidx.compose.ui:ui-tooling:$compose_version" debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version" } \ No newline at end of file diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro deleted file mode 100644 index 481bb43481..0000000000 --- a/app/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/app/src/androidTest/java/io/element/android/x/ExampleInstrumentedTest.kt b/app/src/androidTest/java/io/element/android/x/ExampleInstrumentedTest.kt deleted file mode 100644 index a4cffd0a17..0000000000 --- a/app/src/androidTest/java/io/element/android/x/ExampleInstrumentedTest.kt +++ /dev/null @@ -1,24 +0,0 @@ -package io.element.android.x - -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("io.element.android.x", appContext.packageName) - } -} \ No newline at end of file diff --git a/app/src/test/java/io/element/android/x/ExampleUnitTest.kt b/app/src/test/java/io/element/android/x/ExampleUnitTest.kt deleted file mode 100644 index 526d1736a8..0000000000 --- a/app/src/test/java/io/element/android/x/ExampleUnitTest.kt +++ /dev/null @@ -1,17 +0,0 @@ -package io.element.android.x - -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 diff --git a/libraries/ui/theme/.gitignore b/libraries/ui/theme/.gitignore deleted file mode 100644 index 42afabfd2a..0000000000 --- a/libraries/ui/theme/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build \ No newline at end of file diff --git a/libraries/ui/theme/build.gradle b/libraries/ui/theme/build.gradle index de349eb4b9..e8821bc478 100644 --- a/libraries/ui/theme/build.gradle +++ b/libraries/ui/theme/build.gradle @@ -11,7 +11,6 @@ android { minSdk 29 targetSdk 33 - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" } @@ -40,14 +39,10 @@ dependencies { implementation 'androidx.core:core-ktx:1.9.0' implementation 'androidx.appcompat:appcompat:1.5.1' implementation 'com.google.android.material:material:1.6.1' - testImplementation 'junit:junit:4.13.2' - androidTestImplementation 'androidx.test.ext:junit:1.1.3' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' implementation "androidx.compose.ui:ui:$compose_version" implementation 'androidx.compose.material3:material3:1.0.0-rc01' implementation "androidx.compose.ui:ui-tooling-preview:$compose_version" - androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version" debugImplementation "androidx.compose.ui:ui-tooling:$compose_version" debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version" } \ No newline at end of file diff --git a/libraries/ui/theme/consumer-rules.pro b/libraries/ui/theme/consumer-rules.pro deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/libraries/ui/theme/proguard-rules.pro b/libraries/ui/theme/proguard-rules.pro deleted file mode 100644 index 481bb43481..0000000000 --- a/libraries/ui/theme/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/libraries/ui/theme/src/androidTest/java/io/element/android/x/theme/ExampleInstrumentedTest.kt b/libraries/ui/theme/src/androidTest/java/io/element/android/x/theme/ExampleInstrumentedTest.kt deleted file mode 100644 index ab7c61d2d4..0000000000 --- a/libraries/ui/theme/src/androidTest/java/io/element/android/x/theme/ExampleInstrumentedTest.kt +++ /dev/null @@ -1,24 +0,0 @@ -package io.element.android.x.theme - -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("io.element.android.x.theme.test", appContext.packageName) - } -} \ No newline at end of file diff --git a/libraries/ui/theme/src/test/java/io/element/android/x/theme/ExampleUnitTest.kt b/libraries/ui/theme/src/test/java/io/element/android/x/theme/ExampleUnitTest.kt deleted file mode 100644 index fac031be5c..0000000000 --- a/libraries/ui/theme/src/test/java/io/element/android/x/theme/ExampleUnitTest.kt +++ /dev/null @@ -1,17 +0,0 @@ -package io.element.android.x.theme - -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