Nagram/TMessagesProj/jni/webrtc/sdk/android/native_api/base/init.cc

25 lines
750 B
C++
Raw Normal View History

2019-06-04 10:14:50 +00:00
/*
2020-08-14 16:58:22 +00:00
* Copyright 2018 The WebRTC project authors. All Rights Reserved.
2019-06-04 10:14:50 +00:00
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
2020-08-14 16:58:22 +00:00
#include "sdk/android/native_api/base/init.h"
2019-06-04 10:14:50 +00:00
2020-08-14 16:58:22 +00:00
#include "rtc_base/checks.h"
#include "sdk/android/native_api/jni/class_loader.h"
#include "sdk/android/src/jni/jni_helpers.h"
2019-06-04 10:14:50 +00:00
2020-08-14 16:58:22 +00:00
namespace webrtc {
2019-06-04 10:14:50 +00:00
2020-08-14 16:58:22 +00:00
void InitAndroid(JavaVM* jvm) {
RTC_CHECK_GE(jni::InitGlobalJniVariables(jvm), 0);
InitClassLoader(jni::GetEnv());
}
2019-06-04 10:14:50 +00:00
} // namespace webrtc