mirror of
https://github.com/bitwarden/android.git
synced 2025-12-11 13:57:03 -06:00
[PM-19959] Introduce a new UI module (#5008)
This commit is contained in:
parent
6668af58d2
commit
385f5efac5
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
@ -87,6 +87,7 @@ jobs:
|
||||
core/build/reports/tests/
|
||||
data/build/reports/tests/
|
||||
network/build/reports/tests/
|
||||
ui/build/reports/tests/
|
||||
|
||||
- name: Upload to codecov.io
|
||||
id: upload-to-codecov
|
||||
|
||||
@ -22,6 +22,7 @@ dependencies {
|
||||
kover(project(":core"))
|
||||
kover(project(":data"))
|
||||
kover(project(":network"))
|
||||
kover(project(":ui"))
|
||||
}
|
||||
|
||||
detekt {
|
||||
@ -34,6 +35,7 @@ detekt {
|
||||
"core/src",
|
||||
"data/src",
|
||||
"network/src",
|
||||
"ui/src",
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@ -55,4 +55,5 @@ include(
|
||||
":core",
|
||||
":data",
|
||||
":network",
|
||||
":ui",
|
||||
)
|
||||
|
||||
1
ui/.gitignore
vendored
Normal file
1
ui/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/build
|
||||
12
ui/README.md
Normal file
12
ui/README.md
Normal file
@ -0,0 +1,12 @@
|
||||
# Data module
|
||||
|
||||
An Android library containing common UI components, types, and utilities.
|
||||
|
||||
## Contents
|
||||
|
||||
- [Compatibility](#compatibility)
|
||||
|
||||
## Compatibility
|
||||
|
||||
- **Minimum SDK**: 28
|
||||
- **Target SDK**: 35
|
||||
44
ui/build.gradle.kts
Normal file
44
ui/build.gradle.kts
Normal file
@ -0,0 +1,44 @@
|
||||
plugins {
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.kotlin.android)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.bitwarden.ui"
|
||||
compileSdk = libs.versions.compileSdk.get().toInt()
|
||||
|
||||
defaultConfig {
|
||||
minSdk = libs.versions.minSdkBwa.get().toInt()
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
consumerProguardFiles("consumer-rules.pro")
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = false
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro",
|
||||
)
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility(libs.versions.jvmTarget.get())
|
||||
targetCompatibility(libs.versions.jvmTarget.get())
|
||||
}
|
||||
kotlinOptions {
|
||||
jvmTarget = libs.versions.jvmTarget.get()
|
||||
}
|
||||
}
|
||||
|
||||
dependencies { }
|
||||
|
||||
tasks {
|
||||
withType<Test> {
|
||||
useJUnitPlatform()
|
||||
maxHeapSize = "2g"
|
||||
maxParallelForks = Runtime.getRuntime().availableProcessors()
|
||||
jvmArgs = jvmArgs.orEmpty() + "-XX:+UseParallelGC"
|
||||
}
|
||||
}
|
||||
0
ui/consumer-rules.pro
Normal file
0
ui/consumer-rules.pro
Normal file
21
ui/proguard-rules.pro
vendored
Normal file
21
ui/proguard-rules.pro
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
# 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
|
||||
Loading…
x
Reference in New Issue
Block a user