aboutsummaryrefslogtreecommitdiff
path: root/settings.gradle.kts
diff options
context:
space:
mode:
authorTad Fisher <tadfisher@gmail.com>2022-10-08 17:17:55 -0700
committerTad Fisher <tadfisher@gmail.com>2022-10-09 16:13:32 -0700
commit98b7197aa55e14eaf48c862d990d1d7c020501dc (patch)
tree3c202bac4a24bb76009b7e2e6fe64a00c7ebb51b /settings.gradle.kts
parenteb5e9bdffa5db7e74beab5b8148ea97a6d2dbf30 (diff)
Add hwsecurity dependency
Diffstat (limited to 'settings.gradle.kts')
-rw-r--r--settings.gradle.kts37
1 files changed, 36 insertions, 1 deletions
diff --git a/settings.gradle.kts b/settings.gradle.kts
index cadfe9d5..ddbbd976 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -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")