[PM-19013] Create core module (#4836)

This commit is contained in:
Patrick Honkonen 2025-03-27 15:53:29 -04:00 committed by GitHub
parent 71250a28fa
commit cfa753cb12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 78 additions and 3 deletions

1
core/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/build

13
core/README.md Normal file
View File

@ -0,0 +1,13 @@
# Core module
A collection of platform specific objects and extensions used by other Bitwarden applications and
libraries.
## Contents
- [Compatibility](#compatibility)
## Compatibility
- **Minimum SDK**: 28
- **Target SDK**: 35

37
core/build.gradle.kts Normal file
View File

@ -0,0 +1,37 @@
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
}
android {
namespace = "com.bitwarden.core"
compileSdk = libs.versions.compileSdk.get().toInt()
defaultConfig {
// Set the minimum SDK version to the SDK version used by Authenticator, which is the lowest
// universally supported SDK version.
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 { }

0
core/consumer-rules.pro Normal file
View File

21
core/proguard-rules.pro vendored Normal file
View 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

View File

@ -48,6 +48,9 @@ buildCache {
}
rootProject.name = "Bitwarden"
include(":app")
include(":authenticatorbridge")
include(":authenticator")
include(
":app",
":authenticator",
":authenticatorbridge",
":core",
)