summaryrefslogtreecommitdiffhomepage
path: root/android/test
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2022-11-23 19:52:17 +0100
committerAlbin <albin@mullvad.net>2023-01-10 15:32:28 +0100
commit0b55897e8a53bcc126d1954f99639d482a3b623e (patch)
treea4ececb7da4ba3660d642022aaf97f56a9f40408 /android/test
parentbf287ad5153bb3687afb03370cdea1014b3cef75 (diff)
downloadmullvadvpn-0b55897e8a53bcc126d1954f99639d482a3b623e.tar.xz
mullvadvpn-0b55897e8a53bcc126d1954f99639d482a3b623e.zip
Add empty :test:common project
Diffstat (limited to 'android/test')
-rw-r--r--android/test/common/build.gradle.kts43
-rw-r--r--android/test/common/src/main/AndroidManifest.xml1
2 files changed, 44 insertions, 0 deletions
diff --git a/android/test/common/build.gradle.kts b/android/test/common/build.gradle.kts
new file mode 100644
index 0000000000..569d858dfd
--- /dev/null
+++ b/android/test/common/build.gradle.kts
@@ -0,0 +1,43 @@
+plugins {
+ id(Dependencies.Plugin.androidLibraryId)
+ id(Dependencies.Plugin.kotlinAndroidId)
+ id(Dependencies.Plugin.kotlinParcelizeId)
+}
+
+android {
+ namespace = "net.mullvad.mullvadvpn.test.common"
+ compileSdk = Versions.Android.compileSdkVersion
+
+ defaultConfig {
+ minSdk = Versions.Android.minSdkVersion
+ targetSdk = Versions.Android.targetSdkVersion
+ }
+
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_1_8
+ targetCompatibility = JavaVersion.VERSION_1_8
+ }
+
+ kotlinOptions {
+ jvmTarget = Versions.jvmTarget
+ }
+}
+
+androidComponents {
+ beforeVariants { variantBuilder ->
+ variantBuilder.apply {
+ enable = name != "release"
+ }
+ }
+}
+
+dependencies {
+ implementation(Dependencies.AndroidX.testCore)
+ implementation(Dependencies.AndroidX.testRunner)
+ implementation(Dependencies.AndroidX.testRules)
+ implementation(Dependencies.AndroidX.testUiAutomator)
+ implementation(Dependencies.junit)
+ implementation(Dependencies.Kotlin.stdlib)
+
+ androidTestUtil(Dependencies.AndroidX.testOrchestrator)
+}
diff --git a/android/test/common/src/main/AndroidManifest.xml b/android/test/common/src/main/AndroidManifest.xml
new file mode 100644
index 0000000000..cc947c5679
--- /dev/null
+++ b/android/test/common/src/main/AndroidManifest.xml
@@ -0,0 +1 @@
+<manifest />