I am trying to use a second firebase project for a library. i was able to initialise FirebaseApp using FirebaseOptions and can be access RemoteConfig using below code.
But I can't use Analytics and crashlytics like this.
Is there any chance to do that?
FirebaseOptions options = new FirebaseOptions.Builder()
.setProjectId("my-project-id")
.setApiKey("my-api-key")
.setApplicationId("my-application-id")
.build();
FirebaseApp.initializeApp(context, options, "second_project");
FirebaseRemoteConfig rc = FirebaseRemoteConfig.getInstance(FirebaseApp.getInstance("second_project"));