Exemple #1
0
    public static void UpdateAPIsInstalation()
    {
        if (AndroidNativeSettings.Instance.EnableBillingAPI)
        {
            PluginsInstalationUtil.EnableBillingAPI();
        }
        else
        {
            PluginsInstalationUtil.DisableBillingAPI();
        }

        if (AndroidNativeSettings.Instance.EnablePSAPI)
        {
            PluginsInstalationUtil.EnableGooglePlayAPI();
        }
        else
        {
            PluginsInstalationUtil.DisableGooglePlayAPI();
        }


        if (AndroidNativeSettings.Instance.EnableSocialAPI)
        {
            PluginsInstalationUtil.EnableSocialAPI();
        }
        else
        {
            PluginsInstalationUtil.DisableSocialAPI();
        }


        if (AndroidNativeSettings.Instance.EnableCameraAPI)
        {
            PluginsInstalationUtil.EnableCameraAPI();
        }
        else
        {
            PluginsInstalationUtil.DisableCameraAPI();
        }
    }
Exemple #2
0
    public static void UpdateAPIsInstalation()
    {
        if (AndroidNativeSettings.Instance.EnableBillingAPI)
        {
            PluginsInstalationUtil.EnableBillingAPI();
        }
        else
        {
            PluginsInstalationUtil.DisableBillingAPI();
            AndroidNativeSettings.Instance.InAppPurchasesAPI = false;
        }



        if (AndroidNativeSettings.Instance.EnablePSAPI)
        {
            PluginsInstalationUtil.EnableGooglePlayAPI();
        }
        else
        {
            PluginsInstalationUtil.DisableGooglePlayAPI();

            AndroidNativeSettings.Instance.GooglePlayServicesAPI = false;
            AndroidNativeSettings.Instance.PushNotificationsAPI  = false;

            AndroidNativeSettings.Instance.GoogleCloudSaveAPI = false;
            AndroidNativeSettings.Instance.GoogleMobileAdAPI  = false;

            AndroidNativeSettings.Instance.AnalyticsAPI    = false;
            AndroidNativeSettings.Instance.GoogleButtonAPI = false;
        }


        if (AndroidNativeSettings.Instance.EnableSocialAPI)
        {
            PluginsInstalationUtil.EnableSocialAPI();
        }
        else
        {
            PluginsInstalationUtil.DisableSocialAPI();
            SocialPlatfromSettings.Instance.TwitterAPI       = false;
            SocialPlatfromSettings.Instance.NativeSharingAPI = false;
            SocialPlatfromSettings.Instance.InstagramAPI     = false;
        }


        if (AndroidNativeSettings.Instance.EnableCameraAPI)
        {
            PluginsInstalationUtil.EnableCameraAPI();
        }
        else
        {
            PluginsInstalationUtil.DisableCameraAPI();
            AndroidNativeSettings.Instance.CameraAPI  = false;
            AndroidNativeSettings.Instance.GalleryAPI = false;
        }


        if (AndroidNativeSettings.Instance.GooglePlayServicesAPI == false)
        {
            AndroidNativeSettings.Instance.PlayServicesAdvancedSignInAPI = false;
        }


        UpdateManifest();
    }