Skip to content

Commit

Permalink
Use C++ JNI Implementation for Crashlytics Unity Methods
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 242179210
  • Loading branch information
Googler authored and a-maurice committed Apr 19, 2019
1 parent d44b998 commit 025cd1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/include/firebase/app.h
Expand Up @@ -40,6 +40,11 @@ class FunctionRegistry;
namespace auth {
class Auth;
} // namespace auth
namespace crashlytics {
namespace internal {
class CrashlyticsInternal;
} // namespace internal
} // namespace crashlytics
namespace database {
namespace internal {
class DatabaseInternal;
Expand Down Expand Up @@ -622,6 +627,7 @@ class App {
private:
/// @cond FIREBASE_APP_INTERNAL
friend class auth::Auth;
friend class crashlytics::internal::CrashlyticsInternal;
friend class database::internal::DatabaseInternal;
#ifdef INTERNAL_EXPERIMENTAL
friend class firestore::FirestoreInternal;
Expand Down
2 changes: 2 additions & 0 deletions app/src/util_android.h
Expand Up @@ -506,6 +506,8 @@ bool LookupFieldIds(JNIEnv* env, jclass clazz,
// Used to call android.app.Activity methods.
// clang-format off
#define ACTIVITY_BASE_METHODS(X) \
X(GetApplicationContext, "getApplicationContext", \
"()Landroid/content/Context;"), \
X(GetCacheDir, "getCacheDir", "()Ljava/io/File;"), \
X(GetClassLoader, "getClassLoader", "()Ljava/lang/ClassLoader;"), \
X(GetIntent, "getIntent", "()Landroid/content/Intent;"), \
Expand Down

0 comments on commit 025cd1f

Please sign in to comment.