diff --git a/TMessagesProj/jni/TgNetWrapper.cpp b/TMessagesProj/jni/TgNetWrapper.cpp index f6d5de04ce6..cc99a1776d8 100644 --- a/TMessagesProj/jni/TgNetWrapper.cpp +++ b/TMessagesProj/jni/TgNetWrapper.cpp @@ -155,6 +155,8 @@ void bindRequestToGuid(JNIEnv *env, jclass c, jint instanceNum, jint requestToke } void applyDatacenterAddress(JNIEnv *env, jclass c, jint instanceNum, jint datacenterId, jstring ipAddress, jint port) { + // FIXME(@teamgram) +#if 0 const char *valueStr = env->GetStringUTFChars(ipAddress, 0); ConnectionsManager::getInstance(instanceNum).applyDatacenterAddress((uint32_t) datacenterId, std::string(valueStr), (uint32_t) port); @@ -162,6 +164,7 @@ void applyDatacenterAddress(JNIEnv *env, jclass c, jint instanceNum, jint datace if (valueStr != 0) { env->ReleaseStringUTFChars(ipAddress, valueStr); } +#endif } void setProxySettings(JNIEnv *env, jclass c, jint instanceNum, jstring address, jint port, jstring username, jstring password, jstring secret) { @@ -223,12 +226,15 @@ void setPushConnectionEnabled(JNIEnv *env, jclass c, jint instanceNum, jboolean } void applyDnsConfig(JNIEnv *env, jclass c, jint instanceNum, jlong address, jstring phone, jint date) { + // FIXME(@teamgram) +#if 0 const char *phoneStr = env->GetStringUTFChars(phone, 0); ConnectionsManager::getInstance(instanceNum).applyDnsConfig((NativeByteBuffer *) (intptr_t) address, phoneStr, date); if (phoneStr != 0) { env->ReleaseStringUTFChars(phone, phoneStr); } +#endif } jlong checkProxy(JNIEnv *env, jclass c, jint instanceNum, jstring address, jint port, jstring username, jstring password, jstring secret, jobject requestTimeFunc) { diff --git a/b.sh b/b.sh new file mode 100644 index 00000000000..447c46810a6 --- /dev/null +++ b/b.sh @@ -0,0 +1,2 @@ +export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/Contents/Home:$JAVA_HOME" +export PATH="/Applications/Android Studio.app/Contents/jre/Contents/Home/bin:$PATH"