summaryrefslogtreecommitdiffhomepage
path: root/android/lib
diff options
context:
space:
mode:
authorDavid Göransson <david.goransson@mullvad.net>2025-06-23 16:35:58 +0200
committerDavid Göransson <david.goransson@mullvad.net>2025-07-04 15:47:25 +0200
commitb6b01dbc66f8a903476b86d2b068e56cfe05e248 (patch)
tree57037ccb231bb39ade8e7cb65e09202a05ad2c08 /android/lib
parent3e5795cbab6866fcd3eafee58d1790fc9e7f1829 (diff)
downloadmullvadvpn-b6b01dbc66f8a903476b86d2b068e56cfe05e248.tar.xz
mullvadvpn-b6b01dbc66f8a903476b86d2b068e56cfe05e248.zip
Create new design system module
Diffstat (limited to 'android/lib')
-rw-r--r--android/lib/ui/component/build.gradle.kts2
-rw-r--r--android/lib/ui/designsystem/build.gradle.kts43
-rw-r--r--android/lib/ui/designsystem/src/main/AndroidManifest.xml4
3 files changed, 48 insertions, 1 deletions
diff --git a/android/lib/ui/component/build.gradle.kts b/android/lib/ui/component/build.gradle.kts
index 8ca10e29c5..37ba3e1230 100644
--- a/android/lib/ui/component/build.gradle.kts
+++ b/android/lib/ui/component/build.gradle.kts
@@ -36,6 +36,7 @@ android {
dependencies {
implementation(projects.lib.ui.tag)
+
implementation(libs.compose.material3)
implementation(libs.compose.ui)
implementation(libs.compose.constrainlayout)
@@ -43,7 +44,6 @@ dependencies {
implementation(libs.compose.icons.extended)
implementation(libs.androidx.ktx)
implementation(projects.lib.resource)
- implementation(projects.lib.shared)
implementation(projects.lib.theme)
implementation(projects.lib.model)
}
diff --git a/android/lib/ui/designsystem/build.gradle.kts b/android/lib/ui/designsystem/build.gradle.kts
new file mode 100644
index 0000000000..efc9d0108b
--- /dev/null
+++ b/android/lib/ui/designsystem/build.gradle.kts
@@ -0,0 +1,43 @@
+plugins {
+ alias(libs.plugins.android.library)
+ alias(libs.plugins.kotlin.android)
+ alias(libs.plugins.compose)
+}
+
+android {
+ namespace = "net.mullvad.mullvadvpn.lib.ui.designsystem"
+ compileSdk = libs.versions.compile.sdk.get().toInt()
+ buildToolsVersion = libs.versions.build.tools.get()
+
+ defaultConfig { minSdk = libs.versions.min.sdk.get().toInt() }
+
+ buildFeatures { compose = true }
+
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_17
+ targetCompatibility = JavaVersion.VERSION_17
+ }
+
+ kotlinOptions {
+ jvmTarget = libs.versions.jvm.target.get()
+ allWarningsAsErrors = true
+ }
+
+ lint {
+ lintConfig = file("${rootProject.projectDir}/config/lint.xml")
+ abortOnError = true
+ warningsAsErrors = true
+ }
+}
+
+dependencies {
+ implementation(projects.lib.theme)
+ implementation(projects.lib.model)
+ implementation(projects.lib.ui.tag)
+
+ implementation(libs.compose.ui)
+ implementation(libs.compose.ui.tooling)
+ implementation(libs.compose.ui.tooling.preview)
+ implementation(libs.compose.material3)
+ implementation(libs.compose.icons.extended)
+}
diff --git a/android/lib/ui/designsystem/src/main/AndroidManifest.xml b/android/lib/ui/designsystem/src/main/AndroidManifest.xml
new file mode 100644
index 0000000000..8bdb7e14b3
--- /dev/null
+++ b/android/lib/ui/designsystem/src/main/AndroidManifest.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+
+</manifest>