From 213fdfb49dc1c7355f77427676159a416508b7a4 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 26 Sep 2018 21:31:13 +0300 Subject: Generate debug key from Gradle task, drop private API usage --- build.gradle | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'build.gradle') diff --git a/build.gradle b/build.gradle index f7595ac2..7de01cdf 100644 --- a/build.gradle +++ b/build.gradle @@ -44,4 +44,16 @@ allprojects { } } } +class GenKey extends DefaultTask { + @OutputFile + String keystore + @TaskAction + def generate() { + ant.genkey(alias:"1", keystore:keystore.toString(), storepass:"secret", dname:"CN=localhost", keysize:2048) + } +} + +task generateDebugKey(type: GenKey) { + keystore = "${projectDir}/juick.p12" +} -- cgit v1.2.3