Skip to content

Commit 025cd1f

Browse files
Googlera-maurice
authored andcommitted
Use C++ JNI Implementation for Crashlytics Unity Methods
PiperOrigin-RevId: 242179210
1 parent d44b998 commit 025cd1f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/src/include/firebase/app.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ class FunctionRegistry;
4040
namespace auth {
4141
class Auth;
4242
} // namespace auth
43+
namespace crashlytics {
44+
namespace internal {
45+
class CrashlyticsInternal;
46+
} // namespace internal
47+
} // namespace crashlytics
4348
namespace database {
4449
namespace internal {
4550
class DatabaseInternal;
@@ -622,6 +627,7 @@ class App {
622627
private:
623628
/// @cond FIREBASE_APP_INTERNAL
624629
friend class auth::Auth;
630+
friend class crashlytics::internal::CrashlyticsInternal;
625631
friend class database::internal::DatabaseInternal;
626632
#ifdef INTERNAL_EXPERIMENTAL
627633
friend class firestore::FirestoreInternal;

app/src/util_android.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,8 @@ bool LookupFieldIds(JNIEnv* env, jclass clazz,
506506
// Used to call android.app.Activity methods.
507507
// clang-format off
508508
#define ACTIVITY_BASE_METHODS(X) \
509+
X(GetApplicationContext, "getApplicationContext", \
510+
"()Landroid/content/Context;"), \
509511
X(GetCacheDir, "getCacheDir", "()Ljava/io/File;"), \
510512
X(GetClassLoader, "getClassLoader", "()Ljava/lang/ClassLoader;"), \
511513
X(GetIntent, "getIntent", "()Landroid/content/Intent;"), \

0 commit comments

Comments
 (0)