From 0c527c123be12f425ca1c1d68233aae3ccac6a87 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Thu, 27 Jul 2023 12:02:56 +0200 Subject: Add code transparency during build process --- main/build.gradle.kts | 36 ++++++++++++++++++++++++++++++++++++ main/src/main/AndroidManifest.xml | 1 - 2 files changed, 36 insertions(+), 1 deletion(-) (limited to 'main') diff --git a/main/build.gradle.kts b/main/build.gradle.kts index 6c46e697..b05c5a8a 100644 --- a/main/build.gradle.kts +++ b/main/build.gradle.kts @@ -13,6 +13,7 @@ plugins { } android { + buildToolsVersion = "33.0.1" buildFeatures { aidl = true } @@ -156,7 +157,42 @@ android { } } + packaging { + jniLibs { + useLegacyPackaging = true + } + } + + packaging { + jniLibs { + useLegacyPackaging = true + } + } + bundle { + codeTransparency { + signing { + val keystoreTPFile: String? by project + storeFile = keystoreTPFile?.let { file(it) } + val keystoreTPPassword: String? by project + storePassword = keystoreTPPassword + val keystoreTPAliasPassword: String? by project + keyPassword = keystoreTPAliasPassword + val keystoreTPAlias: String? by project + keyAlias = keystoreTPAlias + + if (keystoreTPFile?.isEmpty() ?: true) + print("keystoreTPFile not set, disabling transparency signing") + if (keystoreTPPassword?.isEmpty() ?: true) + print("keystoreTPPassword not set, disabling transparency signing") + if (keystoreTPAliasPassword?.isEmpty() ?: true) + print("keystoreTPAliasPassword not set, disabling transparency signing") + if (keystoreTPAlias?.isEmpty() ?: true) + print("keyAlias not set, disabling transparency signing") + + } + } + } } var swigcmd = "swig" diff --git a/main/src/main/AndroidManifest.xml b/main/src/main/AndroidManifest.xml index 056d4cff..ab8654b5 100644 --- a/main/src/main/AndroidManifest.xml +++ b/main/src/main/AndroidManifest.xml @@ -29,7 +29,6 @@ android:name=".core.ICSOpenVPNApplication" android:allowBackup="true" android:appCategory="productivity" - android:extractNativeLibs="true" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:label="@string/app" -- cgit v1.2.3