From 772736772a345f8be724622d4593864e664600a5 Mon Sep 17 00:00:00 2001 From: cenochallenge Date: Thu, 8 Dec 2022 09:50:19 +0100 Subject: [PATCH] Add default ouinet settings --- app/build.gradle | 10 +++++----- ouinet.default.properties | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 ouinet.default.properties diff --git a/app/build.gradle b/app/build.gradle index a05d94e..90ef98a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -14,8 +14,8 @@ if (keyPropsFile.exists()) { keyProps.load(new FileInputStream(keyPropsFile)) } -Properties localProperties = new Properties() -localProperties.load(rootProject.file('local.properties').newDataInputStream()) +Properties defaultOuinetProperties = new Properties() +defaultOuinetProperties.load(rootProject.file('ouinet.default.properties').newDataInputStream()) android { compileSdk 33 @@ -42,9 +42,9 @@ android { } - buildConfigField "String", "CACHE_PUB_KEY", localProperties['CACHE_PUB_KEY'] - buildConfigField "String", "INJECTOR_CREDENTIALS", localProperties['INJECTOR_CREDENTIALS'] - buildConfigField "String", "INJECTOR_TLS_CERT", localProperties['INJECTOR_TLS_CERT'] + buildConfigField "String", "CACHE_PUB_KEY", defaultOuinetProperties['CACHE_PUB_KEY'] + buildConfigField "String", "INJECTOR_CREDENTIALS", defaultOuinetProperties['INJECTOR_CREDENTIALS'] + buildConfigField "String", "INJECTOR_TLS_CERT", defaultOuinetProperties['INJECTOR_TLS_CERT'] } flavorDimensions "channel" diff --git a/ouinet.default.properties b/ouinet.default.properties new file mode 100644 index 0000000..becbed3 --- /dev/null +++ b/ouinet.default.properties @@ -0,0 +1,19 @@ +CACHE_PUB_KEY="zh6ylt6dghu6swhhje2j66icmjnonv53tstxxvj6acu64sc62fnq" +INJECTOR_CREDENTIALS="ouinet:160d79874a52c2cbcdec58db1a8160a9" +INJECTOR_TLS_CERT="-----BEGIN CERTIFICATE-----\\n\ +MIICyTCCAbGgAwIBAgIGAWwvE3jIMA0GCSqGSIb3DQEBCwUAMBQxEjAQBgNVBAMM\ +CWx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