mirror of
https://github.com/bitwarden/android.git
synced 2025-12-10 20:07:59 -06:00
[PM-19013] Create core module (#4836)
This commit is contained in:
parent
71250a28fa
commit
cfa753cb12
1
core/.gitignore
vendored
Normal file
1
core/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/build
|
||||||
13
core/README.md
Normal file
13
core/README.md
Normal 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
37
core/build.gradle.kts
Normal 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
0
core/consumer-rules.pro
Normal file
21
core/proguard-rules.pro
vendored
Normal file
21
core/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
|
||||||
@ -48,6 +48,9 @@ buildCache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
rootProject.name = "Bitwarden"
|
rootProject.name = "Bitwarden"
|
||||||
include(":app")
|
include(
|
||||||
include(":authenticatorbridge")
|
":app",
|
||||||
include(":authenticator")
|
":authenticator",
|
||||||
|
":authenticatorbridge",
|
||||||
|
":core",
|
||||||
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user