package de.tomgrill.gdxfirebase.iosmoe.admob;

import com.badlogic.gdx.Gdx;
import com.google.googlemobileads.GADMobileAds;
import de.tomgrill.gdxfirebase.core.FirebaseConfiguration;
import de.tomgrill.gdxfirebase.core.FirebaseConfigurationHolder;
import de.tomgrill.gdxfirebase.core.admob.Admob;
import de.tomgrill.gdxfirebase.core.admob.VideoRewardAd;

public class IOSMOEAdmob implements Admob, FirebaseConfigurationHolder {

    private FirebaseConfiguration firebaseConfiguration;
    private boolean isTestDevice;

    @Override
    public VideoRewardAd getVideoRewardAd() {
        if (isTestDevice) {
            //String deviceId = getDeviceId();
            Gdx.app.debug("gdx-firebase", "Load Admob AdRequest with test device." );
            return new IOSMOEVideoRewardAd(firebaseConfiguration);
        } else {
            Gdx.app.debug("gdx-firebase", "Load Admob AdRequest for production)");
            return new IOSMOEVideoRewardAd(firebaseConfiguration);
        }
    }

    @Override
    public boolean isTestDevice() {
        return isTestDevice;
    }

    @Override
    public void setFirebaseConfiguration(FirebaseConfiguration firebaseConfiguration) {
        this.firebaseConfiguration = firebaseConfiguration;
        isTestDevice = firebaseConfiguration.admobUseTestDevice;

        GADMobileAds.configureWithApplicationID(firebaseConfiguration.admobAppId);
    }
}

@@ -69,16 +69,55 @@
 dx.Gdx;%0A
+import com.google.firebasecore.FIRApp;%0A
 import c
@@ -156,16 +156,16 @@
 ileAds;%0A
-
 import d
@@ -385,16 +385,74 @@
 ewardAd;
+%0Aimport de.tomgrill.gdxfirebase.iosmoe.ConfigureOverwatch;
 %0A%0Apublic
@@ -572,24 +572,24 @@
 figuration;%0A
-
     private 
@@ -607,24 +607,200 @@
 estDevice;%0A%0A
+    public IOSMOEAdmob() %7B%0A        if (!ConfigureOverwatch.isConfigured) %7B%0A            FIRApp.configure();%0A            ConfigureOverwatch.isConfigured = true;%0A        %7D%0A    %7D%0A%0A
     @Overrid

Load FIRapp on admob