public AndroidFirebaseAuth(Activity activity, FirebaseConfiguration firebaseConfiguration) { this.firebaseConfiguration = firebaseConfiguration; this.activity = activity; this.firebaseAuth = com.google.firebase.auth.FirebaseAuth.getInstance(); fbAuthStateListeners = new Array<>(); authStateListeners = new Array<>(); if (Gdx.app instanceof AndroidApplication) { ((AndroidApplication) Gdx.app).addAndroidEventListener(this); } else if (Gdx.app instanceof AndroidFragmentApplication) { ((AndroidFragmentApplication) Gdx.app).addAndroidEventListener(this); } }
public AndroidGDXFacebook(final AndroidFragmentApplication activity, final GDXFacebookConfig config) { super(config); this.activity = activity.getActivity(); FacebookSdk.sdkInitialize(this.activity.getApplicationContext()); AppEventsLogger.activateApp(this.activity.getApplication()); callbackManager = CallbackManager.Factory.create(); }
@SuppressWarnings("unused") // Unit tested with reflection. (as in IAP.java) public AndroidGooglePlayPurchaseManager(Activity activity, AndroidFragmentApplication application, int activityRequestCode) { PurchaseResponseActivityResultConverter converter = new PurchaseResponseActivityResultConverter(this); AsyncExecutor executor = new NewThreadSleepAsyncExecutor(); ApplicationProxy.FragmentProxy proxy = new ApplicationProxy.FragmentProxy(activity, application); googleInAppBillingService = new V3GoogleInAppBillingService(proxy, activityRequestCode, converter, executor); PurchaseSystem.setManager(this); }
@SuppressWarnings("unused") // Used by Fragment applications, but should be tested. public V3GoogleInAppBillingService(Activity activity, AndroidFragmentApplication application, int activityRequestCode, PurchaseResponseActivityResultConverter resultConverter, AsyncExecutor asyncExecutor) { this(new ApplicationProxy.FragmentProxy(activity, application), activityRequestCode, resultConverter, asyncExecutor); }
public FragmentProxy(Activity activity, AndroidFragmentApplication application) { this.activity = activity; this.application = application; }