mirror of
https://github.com/bitwarden/android.git
synced 2025-12-12 08:40:49 -06:00
Use an aar to define bridge dependency (#3892)
This commit is contained in:
parent
8489693d84
commit
b94a1adda9
@ -135,8 +135,8 @@ dependencies {
|
|||||||
add("standardImplementation", dependencyNotation)
|
add("standardImplementation", dependencyNotation)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: this should use a versioned aar instead of referencing the project BITAU-94
|
// TODO: this should use a versioned AAR instead of referencing a local AAR BITAU-94
|
||||||
implementation(project(":bridge"))
|
implementation(files("libs/bridge-0.1.0-SNAPSHOT-release.aar"))
|
||||||
|
|
||||||
implementation(libs.androidx.activity.compose)
|
implementation(libs.androidx.activity.compose)
|
||||||
implementation(libs.androidx.appcompat)
|
implementation(libs.androidx.appcompat)
|
||||||
|
|||||||
BIN
app/libs/bridge-0.1.0-SNAPSHOT-release.aar
Normal file
BIN
app/libs/bridge-0.1.0-SNAPSHOT-release.aar
Normal file
Binary file not shown.
BIN
app/libs/bridge-0.1.0-release.aar
Normal file
BIN
app/libs/bridge-0.1.0-release.aar
Normal file
Binary file not shown.
@ -3,6 +3,7 @@
|
|||||||
## Contents
|
## Contents
|
||||||
|
|
||||||
- [Compatibility](#compatibility)
|
- [Compatibility](#compatibility)
|
||||||
|
- [Building](#building)
|
||||||
- [Versioning](#versioning)
|
- [Versioning](#versioning)
|
||||||
- [Dependencies](#dependencies)
|
- [Dependencies](#dependencies)
|
||||||
|
|
||||||
@ -16,6 +17,14 @@
|
|||||||
- **Minimum SDK**: 28
|
- **Minimum SDK**: 28
|
||||||
- **Target SDK**: 34
|
- **Target SDK**: 34
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
To build an AAR for inclusion in consumer applications, run:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ ./gradlew bridge:assembleRelease
|
||||||
|
```
|
||||||
|
|
||||||
## Versioning
|
## Versioning
|
||||||
This repository conforms to the following versioning convention:
|
This repository conforms to the following versioning convention:
|
||||||
|
|
||||||
|
|||||||
@ -40,6 +40,16 @@ android {
|
|||||||
buildConfig = true
|
buildConfig = true
|
||||||
aidl = true
|
aidl = true
|
||||||
}
|
}
|
||||||
|
// Add version name to the output .aar file:
|
||||||
|
libraryVariants.all {
|
||||||
|
val variant = this
|
||||||
|
outputs
|
||||||
|
.map { it as com.android.build.gradle.internal.api.BaseVariantOutputImpl }
|
||||||
|
.forEach { output ->
|
||||||
|
val outputFileName = "bridge-${version}-SNAPSHOT-${variant.baseName}.aar"
|
||||||
|
output.outputFileName = outputFileName
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user