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

Commit 39ac10a

Browse files
tadfishermsfjarvis
authored andcommitted
Add hwsecurity dependency
1 parent e688a6e commit 39ac10a

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 @@ composeCompiler = "1.4.0-alpha02"
77
coroutines = "1.6.4"
88
flowbinding = "1.2.0"
99
hilt = "2.44.2"
10+
hwsecurity = "4.4.0"
1011
kotlin = "1.7.21"
1112
leakcanary = "2.10"
1213
lifecycle = "2.6.0-alpha03"
@@ -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.3"
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
includeModule("me.tylerbwong.gradle.metalava", "plugin")
4549
}
4650
}
@@ -52,7 +56,10 @@ pluginManagement {
5256
}
5357
}
5458

55-
plugins { id("com.gradle.enterprise") version "3.12" }
59+
plugins {
60+
id("com.gradle.enterprise") version "3.12"
61+
id("me.champeau.includegit") version "0.1.5"
62+
}
5663

5764
gradleEnterprise {
5865
buildScan {
@@ -159,6 +166,34 @@ dependencyResolutionManagement {
159166
}
160167
}
161168

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

0 commit comments

Comments
 (0)