Просмотр исходного кода

Replace psiphon_config with stub and make it so test config will be excluded from source control; add DatastoreFilename to config

Rod Hynes 11 лет назад
Родитель
Сommit
80a1b5efaa
4 измененных файлов с 8 добавлено и 1 удалено
  1. 2 0
      .gitignore
  2. 1 1
      AndroidApp/README.md
  3. 4 0
      AndroidApp/app/src/main/res/raw/psiphon_config_stub
  4. 1 0
      README.md

+ 2 - 0
.gitignore

@@ -1,3 +1,5 @@
+# Exclude test config files from source control
+/AndroidApp/app/src/main/res/raw/psiphon_config
 psiphon.config
 psiphon.db*
 

+ 1 - 1
AndroidApp/README.md

@@ -23,4 +23,4 @@ Psiphon Android Library and config file
 
 Uses the [Psiphon Android Library](../AndroidLibrary/README.md).
 
-In `app\src\main\res\raw\psiphon_config`, placeholders must be replaced with valid values.
+`app\src\main\res\raw\psiphon_config_stub` and its placeholder values must be replaced with `app\src\main\res\raw\psiphon_config` and valid configuration values.

+ 4 - 0
AndroidApp/app/src/main/res/raw/psiphon_config → AndroidApp/app/src/main/res/raw/psiphon_config_stub

@@ -3,12 +3,16 @@
     "SponsorId" : "<placeholder>",
     "RemoteServerListUrl" : "<placeholder>",
     "RemoteServerListSignaturePublicKey" : "<placeholder>",
+    "DataStoreFilename" : "/data/data/ca.psiphon.psibot/psiphon.db",
     "LogFilename" : "",
     "LocalHttpProxyPort" : 0,
     "LocalSocksProxyPort" : 0,
     "EgressRegion" : "",
     "TunnelProtocol" : "",
     "ConnectionWorkerPoolSize" : 10,
+    "TunnelPoolSize" : 1,
+    "PortForwardFailureThreshold" : 10,
+    "UpstreamHttpProxyAddress" : "",
     "BindToDeviceServiceAddress" : "",
     "BindToDeviceDnsServer" : "8.8.4.4"
 }

+ 1 - 0
README.md

@@ -28,6 +28,7 @@ Setup
         "SponsorId" : "<placeholder>",
         "RemoteServerListUrl" : "<placeholder>",
         "RemoteServerListSignaturePublicKey" : "<placeholder>",
+        "DataStoreFilename" : "",
         "LogFilename" : "",
         "LocalHttpProxyPort" : 0,
         "LocalSocksProxyPort" : 0,