Add default ouinet settings

This commit is contained in:
ceno challenge 2022-12-08 09:50:19 +01:00
parent b22e20d20f
commit 772736772a
2 changed files with 24 additions and 5 deletions

View File

@ -14,8 +14,8 @@ if (keyPropsFile.exists()) {
keyProps.load(new FileInputStream(keyPropsFile)) keyProps.load(new FileInputStream(keyPropsFile))
} }
Properties localProperties = new Properties() Properties defaultOuinetProperties = new Properties()
localProperties.load(rootProject.file('local.properties').newDataInputStream()) defaultOuinetProperties.load(rootProject.file('ouinet.default.properties').newDataInputStream())
android { android {
compileSdk 33 compileSdk 33
@ -42,9 +42,9 @@ android {
} }
buildConfigField "String", "CACHE_PUB_KEY", localProperties['CACHE_PUB_KEY'] buildConfigField "String", "CACHE_PUB_KEY", defaultOuinetProperties['CACHE_PUB_KEY']
buildConfigField "String", "INJECTOR_CREDENTIALS", localProperties['INJECTOR_CREDENTIALS'] buildConfigField "String", "INJECTOR_CREDENTIALS", defaultOuinetProperties['INJECTOR_CREDENTIALS']
buildConfigField "String", "INJECTOR_TLS_CERT", localProperties['INJECTOR_TLS_CERT'] buildConfigField "String", "INJECTOR_TLS_CERT", defaultOuinetProperties['INJECTOR_TLS_CERT']
} }
flavorDimensions "channel" flavorDimensions "channel"

19
ouinet.default.properties Normal file
View File

@ -0,0 +1,19 @@
CACHE_PUB_KEY="zh6ylt6dghu6swhhje2j66icmjnonv53tstxxvj6acu64sc62fnq"
INJECTOR_CREDENTIALS="ouinet:160d79874a52c2cbcdec58db1a8160a9"
INJECTOR_TLS_CERT="-----BEGIN CERTIFICATE-----\\n\
MIICyTCCAbGgAwIBAgIGAWwvE3jIMA0GCSqGSIb3DQEBCwUAMBQxEjAQBgNVBAMM\
CWxvY2FsaG9zdDAeFw0xOTA3MjQxNjE4MjFaFw0zNDA3MjIxNjE4MjFaMBQxEjAQ\
BgNVBAMMCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB\
AOQ6tX1fh1JQJGMEpgEaqFdVpl2Jz39s+3p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