.apk builds. untested

This commit is contained in:
anon5 2016-06-14 08:52:17 +08:00 committed by egp
parent 28c2ca8bf8
commit 58b058ab3a
15 changed files with 314 additions and 10 deletions

View file

@ -12,6 +12,12 @@
#include "Family.h"
#include "RouterContext.h"
#ifdef ANDROID
# include "to_string.h"
#else
# define to_string(x) std::to_string(x)
#endif
namespace i2p
{
RouterContext context;
@ -56,7 +62,7 @@ namespace i2p
routerInfo.AddNTCPAddress (host.c_str(), port);
routerInfo.SetCaps (i2p::data::RouterInfo::eReachable |
i2p::data::RouterInfo::eSSUTesting | i2p::data::RouterInfo::eSSUIntroducer); // LR, BC
routerInfo.SetProperty ("netId", std::to_string (I2PD_NET_ID));
routerInfo.SetProperty ("netId", to_string (I2PD_NET_ID));
routerInfo.SetProperty ("router.version", I2P_VERSION);
routerInfo.CreateBuffer (m_Keys);
m_RouterInfo.SetRouterIdentity (GetIdentity ());