TBR: reader/android: use the ip address of the global mount table.
Change-Id: I3aa2093e331249f990a8899b3448cc564b373732
diff --git a/android/app/src/main/java/io/v/android/apps/reader/db/SyncbaseDB.java b/android/app/src/main/java/io/v/android/apps/reader/db/SyncbaseDB.java
index 011641d..36c030f 100644
--- a/android/app/src/main/java/io/v/android/apps/reader/db/SyncbaseDB.java
+++ b/android/app/src/main/java/io/v/android/apps/reader/db/SyncbaseDB.java
@@ -45,6 +45,7 @@
import io.v.v23.VIterable;
import io.v.v23.context.CancelableVContext;
import io.v.v23.context.VContext;
+import io.v.v23.namespace.Namespace;
import io.v.v23.rpc.Server;
import io.v.v23.security.BlessingPattern;
import io.v.v23.security.Blessings;
@@ -91,7 +92,9 @@
*/
private static final int BLESSING_REQUEST = 200;
- private static final String GLOBAL_MOUNT_TABLE = "/ns.dev.v.io:8101";
+ // TODO(youngseokyoon): change this back to the domain name, once the dns issue is resolved.
+ private static final String GLOBAL_MOUNT_TABLE = "/104.197.5.136:8101";
+
private static final String SYNCBASE_APP = "reader";
private static final String SYNCBASE_DB = "db";
private static final String TABLE_FILES = "files";
@@ -135,6 +138,14 @@
}
}
+ // TODO(youngseokyoon): take this code out, once the dns issue is resolved.
+ try {
+ Namespace n = V.getNamespace(mVContext);
+ n.setRoots(ImmutableList.of("/104.197.5.136:8101"));
+ } catch (VException e) {
+ handleError("Could not change the global mount table address: " + e.getMessage());
+ }
+
try {
mVContext = V.withListenSpec(
mVContext, V.getListenSpec(mVContext).withProxy("proxy"));