Add hwsecurity dependency

This commit is contained in:
Tad Fisher 2022-10-08 17:17:55 -07:00
parent eb5e9bdffa
commit 98b7197aa5
No known key found for this signature in database
GPG key ID: 3A7425F7E7B22251
2 changed files with 39 additions and 1 deletions

View file

@ -7,6 +7,7 @@ composeUi = "1.3.0-rc01"
coroutines = "1.6.4"
flowbinding = "1.2.0"
hilt = "2.44"
hwsecurity = "4.4.0"
kotlin = "1.7.20"
leakcanary = "2.9.1"
lifecycle = "2.6.0-alpha02"
@ -34,6 +35,8 @@ androidx-recyclerview = "androidx.recyclerview:recyclerview:1.3.0-rc01"
androidx-recyclerviewSelection = "androidx.recyclerview:recyclerview-selection:1.2.0-alpha01"
androidx-security = "androidx.security:security-crypto:1.1.0-alpha03"
androidx-swiperefreshlayout = "androidx.swiperefreshlayout:swiperefreshlayout:1.2.0-alpha01"
aps-hwsecurity-openpgp = { module = "com.github.android-password-store.hwsecurity:hwsecurity-openpgp", version.ref = "hwsecurity" }
aps-hwsecurity-ui = { module = "com.github.android-password-store.hwsecurity:hwsecurity-ui", version.ref = "hwsecurity" }
aps-sublimeFuzzy = "com.github.android-password-store:sublime-fuzzy:2.2.1"
aps-zxingAndroidEmbedded = "com.github.android-password-store:zxing-android-embedded:4.2.1"
build-agp = { module = "com.android.tools.build:gradle", version.ref = "agp" }

View file

@ -4,6 +4,8 @@
*/
@file:Suppress("UnstableApiUsage")
import me.champeau.gradle.igp.gitRepositories
rootProject.name = "APS"
// Plugin repositories
@ -41,6 +43,8 @@ pluginManagement {
includeModule("com.github.ben-manes", "gradle-versions-plugin")
includeModule("com.gradle", "gradle-enterprise-gradle-plugin")
includeModule("com.gradle.enterprise", "com.gradle.enterprise.gradle.plugin")
includeModule("me.champeau.includegit", "me.champeau.includegit.gradle.plugin")
includeModule("me.champeau.gradle.includegit", "plugin")
}
}
exclusiveContent {
@ -51,7 +55,10 @@ pluginManagement {
}
}
plugins { id("com.gradle.enterprise") version "3.11.1" }
plugins {
id("com.gradle.enterprise") version "3.11.1"
id("me.champeau.includegit") version "0.1.5"
}
gradleEnterprise {
buildScan {
@ -156,6 +163,34 @@ dependencyResolutionManagement {
}
}
gitRepositories {
checkoutsDirectory.set(rootProject.projectDir.resolve("build/checkouts"))
include("hwsecurity") {
uri.set("https://github.com/tadfisher/hwsecurity.git")
branch.set("pendingintent-mutability")
includeBuild {
dependencySubstitution {
for (module in listOf(
"core",
"intent-usb",
"intent-nfc",
"provider",
"fido",
"fido2",
"openpgp",
"piv",
"sshj",
"ssh",
"ui",
)) {
substitute(module("com.github.android-password-store.hwsecurity:hwsecurity-$module"))
.using(project(":hwsecurity:$module"))
}
}
}
}
}
// Experimental features
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")