Fix tdapi path

This commit is contained in:
Andrea Cavalli 2021-04-07 22:53:00 +02:00
parent 3a2a8b2a44
commit cd7717aeb6
2 changed files with 6 additions and 6 deletions

View File

@ -149,9 +149,9 @@ static jint register_native(JavaVM *vm) {
#undef TD_FUNCTION #undef TD_FUNCTION
#undef TD_OBJECT #undef TD_OBJECT
td::jni::init_vars(env, PACKAGE_NAME); td::jni::init_vars(env, API_PACKAGE_NAME);
td::td_api::Object::init_jni_vars(env, PACKAGE_NAME); td::td_api::Object::init_jni_vars(env, API_PACKAGE_NAME);
td::td_api::Function::init_jni_vars(env, PACKAGE_NAME); td::td_api::Function::init_jni_vars(env, API_PACKAGE_NAME);
td::Log::set_fatal_error_callback(on_fatal_error); td::Log::set_fatal_error_callback(on_fatal_error);
return JAVA_VERSION; return JAVA_VERSION;

View File

@ -149,9 +149,9 @@ static jint register_native(JavaVM *vm) {
#undef TD_FUNCTION #undef TD_FUNCTION
#undef TD_OBJECT #undef TD_OBJECT
td::jni::init_vars(env, PACKAGE_NAME); td::jni::init_vars(env, API_PACKAGE_NAME);
td::td_api::Object::init_jni_vars(env, PACKAGE_NAME); td::td_api::Object::init_jni_vars(env, API_PACKAGE_NAME);
td::td_api::Function::init_jni_vars(env, PACKAGE_NAME); td::td_api::Function::init_jni_vars(env, API_PACKAGE_NAME);
td::Log::set_fatal_error_callback(on_fatal_error); td::Log::set_fatal_error_callback(on_fatal_error);
return JAVA_VERSION; return JAVA_VERSION;