Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 98b7197

Browse files
committed
Add hwsecurity dependency
1 parent eb5e9bd commit 98b7197

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

gradle/libs.versions.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ composeUi = "1.3.0-rc01"
77
coroutines = "1.6.4"
88
flowbinding = "1.2.0"
99
hilt = "2.44"
10+
hwsecurity = "4.4.0"
1011
kotlin = "1.7.20"
1112
leakcanary = "2.9.1"
1213
lifecycle = "2.6.0-alpha02"
@@ -34,6 +35,8 @@ androidx-recyclerview = "androidx.recyclerview:recyclerview:1.3.0-rc01"
3435
androidx-recyclerviewSelection = "androidx.recyclerview:recyclerview-selection:1.2.0-alpha01"
3536
androidx-security = "androidx.security:security-crypto:1.1.0-alpha03"
3637
androidx-swiperefreshlayout = "androidx.swiperefreshlayout:swiperefreshlayout:1.2.0-alpha01"
38+
aps-hwsecurity-openpgp = { module = "com.github.android-password-store.hwsecurity:hwsecurity-openpgp", version.ref = "hwsecurity" }
39+
aps-hwsecurity-ui = { module = "com.github.android-password-store.hwsecurity:hwsecurity-ui", version.ref = "hwsecurity" }
3740
aps-sublimeFuzzy = "com.github.android-password-store:sublime-fuzzy:2.2.1"
3841
aps-zxingAndroidEmbedded = "com.github.android-password-store:zxing-android-embedded:4.2.1"
3942
build-agp = { module = "com.android.tools.build:gradle", version.ref = "agp" }

settings.gradle.kts

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
*/
55
@file:Suppress("UnstableApiUsage")
66

7+
import me.champeau.gradle.igp.gitRepositories
8+
79
rootProject.name = "APS"
810

911
// Plugin repositories
@@ -41,6 +43,8 @@ pluginManagement {
4143
includeModule("com.github.ben-manes", "gradle-versions-plugin")
4244
includeModule("com.gradle", "gradle-enterprise-gradle-plugin")
4345
includeModule("com.gradle.enterprise", "com.gradle.enterprise.gradle.plugin")
46+
includeModule("me.champeau.includegit", "me.champeau.includegit.gradle.plugin")
47+
includeModule("me.champeau.gradle.includegit", "plugin")
4448
}
4549
}
4650
exclusiveContent {
@@ -51,7 +55,10 @@ pluginManagement {
5155
}
5256
}
5357

54-
plugins { id("com.gradle.enterprise") version "3.11.1" }
58+
plugins {
59+
id("com.gradle.enterprise") version "3.11.1"
60+
id("me.champeau.includegit") version "0.1.5"
61+
}
5562

5663
gradleEnterprise {
5764
buildScan {
@@ -156,6 +163,34 @@ dependencyResolutionManagement {
156163
}
157164
}
158165

166+
gitRepositories {
167+
checkoutsDirectory.set(rootProject.projectDir.resolve("build/checkouts"))
168+
include("hwsecurity") {
169+
uri.set("https://github.com/tadfisher/hwsecurity.git")
170+
branch.set("pendingintent-mutability")
171+
includeBuild {
172+
dependencySubstitution {
173+
for (module in listOf(
174+
"core",
175+
"intent-usb",
176+
"intent-nfc",
177+
"provider",
178+
"fido",
179+
"fido2",
180+
"openpgp",
181+
"piv",
182+
"sshj",
183+
"ssh",
184+
"ui",
185+
)) {
186+
substitute(module("com.github.android-password-store.hwsecurity:hwsecurity-$module"))
187+
.using(project(":hwsecurity:$module"))
188+
}
189+
}
190+
}
191+
}
192+
}
193+
159194
// Experimental features
160195
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
161196

0 commit comments

Comments
 (0)