From 98dccef598349df0fc7f65e4e6a286d154298bf0 Mon Sep 17 00:00:00 2001 From: Johann <9853102+hajoha@users.noreply.github.com> Date: Mon, 3 Jun 2024 15:01:18 +0200 Subject: [PATCH] Move singing parameter (#12) * add iPerf3.17.1 support * move keyStoreProperties to android/key.properties * add default keystore --- .gitignore | 3 +++ app/build.gradle | 20 ++++++++++++++++-- app/omnt_default.jks | Bin 0 -> 2756 bytes .../Iperf3/Iperf3LibLoader.java | 3 ++- 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 app/omnt_default.jks diff --git a/.gitignore b/.gitignore index c05a75c7..69e1790d 100644 --- a/.gitignore +++ b/.gitignore @@ -97,3 +97,6 @@ lint/tmp/ # Android Profiling *.hprof + +android/key.propierties +*.so \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 04f9a231..496d1c14 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,11 +11,27 @@ plugins { id("org.spdx.sbom") version "0.7.0" } +def keystoreProperties = new Properties() +def keystorePropertiesFile = rootProject.file('android/key.properties') +if (keystorePropertiesFile.exists()) { + keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) +} else { + project.logger.warn("File not found: ${keystorePropertiesFile}") + project.logger.warn("Using default values for signing config.") + keystoreProperties['keyAlias'] = "omnt_default" + keystoreProperties['keyPassword'] = "omnt2024" + keystoreProperties['storeFile'] = file("omnt_default.jks") + keystoreProperties['storePassword'] = "omnt2024" +} + + android { signingConfigs { debug { - storeFile file('OpenMobileNetworkToolkit-key.jks') - keyAlias 'key0' + keyAlias keystoreProperties['keyAlias'] + keyPassword keystoreProperties['keyPassword'] + storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null + storePassword keystoreProperties['storePassword'] } } compileSdk 34 diff --git a/app/omnt_default.jks b/app/omnt_default.jks new file mode 100644 index 0000000000000000000000000000000000000000..5b996bc80cc9fbd3ee3af8c82c420c8da349f6c2 GIT binary patch literal 2756 zcma)8XE@u97XOF8)QCM|7H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kit/Iperf3/Iperf3LibLoader.java index ad808dbe..c8d20e25 100644 --- a/app/src/main/java/de/fraunhofer/fokus/OpenMobileNetworkToolkit/Iperf3/Iperf3LibLoader.java +++ b/app/src/main/java/de/fraunhofer/fokus/OpenMobileNetworkToolkit/Iperf3/Iperf3LibLoader.java @@ -23,7 +23,8 @@ public class Iperf3LibLoader { "iperf3.11", "iperf3.12", "iperf3.15", - "iperf3.16" + "iperf3.16", + "iperf3.17.1" ); protected static synchronized void load() {