From 98b7197aa55e14eaf48c862d990d1d7c020501dc Mon Sep 17 00:00:00 2001 From: Tad Fisher Date: Sat, 8 Oct 2022 17:17:55 -0700 Subject: Add hwsecurity dependency --- settings.gradle.kts | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) (limited to 'settings.gradle.kts') 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") -- cgit v1.2.3