summaryrefslogtreecommitdiffhomepage
path: root/android/lib
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2023-08-23 13:39:56 +0200
committerAlbin <albin@mullvad.net>2023-08-23 16:31:47 +0200
commitc1a9231a7bea6dc00639b12cb96f893956af985a (patch)
tree199336e951544ee260f5df925da7488026140090 /android/lib
parent4f1531bd941bd57ff8452702718a9c34bc14bb74 (diff)
downloadmullvadvpn-c1a9231a7bea6dc00639b12cb96f893956af985a.tar.xz
mullvadvpn-c1a9231a7bea6dc00639b12cb96f893956af985a.zip
Create empty theme lib
Diffstat (limited to 'android/lib')
-rw-r--r--android/lib/theme/build.gradle.kts49
-rw-r--r--android/lib/theme/src/main/AndroidManifest.xml1
2 files changed, 50 insertions, 0 deletions
diff --git a/android/lib/theme/build.gradle.kts b/android/lib/theme/build.gradle.kts
new file mode 100644
index 0000000000..d5efe5c96f
--- /dev/null
+++ b/android/lib/theme/build.gradle.kts
@@ -0,0 +1,49 @@
+plugins {
+ id(Dependencies.Plugin.androidLibraryId)
+ id(Dependencies.Plugin.kotlinAndroidId)
+}
+
+android {
+ namespace = "net.mullvad.mullvadvpn.lib.theme"
+ compileSdk = Versions.Android.compileSdkVersion
+
+ defaultConfig {
+ minSdk = Versions.Android.minSdkVersion
+ }
+
+ buildFeatures {
+ compose = true
+ }
+
+ composeOptions {
+ kotlinCompilerExtensionVersion = Versions.kotlinCompilerExtensionVersion
+ }
+
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_17
+ targetCompatibility = JavaVersion.VERSION_17
+ }
+
+ kotlinOptions {
+ jvmTarget = Versions.jvmTarget
+ }
+
+ lint {
+ lintConfig = file("${rootProject.projectDir}/config/lint.xml")
+ abortOnError = true
+ warningsAsErrors = true
+ }
+}
+
+configurations.all {
+ resolutionStrategy {
+ // Hold back emoji2 since newer versions require api level 34 which is not yet stable.
+ force("androidx.emoji2:emoji2:1.3.0")
+ }
+}
+
+dependencies {
+ implementation(Dependencies.Compose.material3)
+ implementation(Dependencies.Compose.ui)
+ implementation(Dependencies.Kotlin.stdlib)
+}
diff --git a/android/lib/theme/src/main/AndroidManifest.xml b/android/lib/theme/src/main/AndroidManifest.xml
new file mode 100644
index 0000000000..cc947c5679
--- /dev/null
+++ b/android/lib/theme/src/main/AndroidManifest.xml
@@ -0,0 +1 @@
+<manifest />