summaryrefslogtreecommitdiffhomepage
path: root/android/lib/theme
diff options
context:
space:
mode:
Diffstat (limited to 'android/lib/theme')
-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 />