Class ReflectionHelper


  • public class ReflectionHelper
    extends java.lang.Object
    Class grouping all of the reflection based checks that we are doing.

    Using generic helpers is prohibited, as proguard does not detect the use, and does not rewrite the obfuscated names correctly.

    That means that this class WILL have a lot of the same code by design. Please do not refactor this out :)

    • Constructor Detail

      • ReflectionHelper

        public ReflectionHelper()
    • Method Detail

      • isAndroidXFragmentPresent

        public static boolean isAndroidXFragmentPresent()
      • isAndroidXAppCompatActivityPresent

        public static boolean isAndroidXAppCompatActivityPresent()
      • isInstanceOfCoordinatorLayout

        public static boolean isInstanceOfCoordinatorLayout​(java.lang.Object o)
      • optOutOfSmartReply

        public static boolean optOutOfSmartReply​(androidx.core.app.NotificationCompat.Builder builder)
      • optOutOfDarkMode

        public static void optOutOfDarkMode​(@NonNull
                                            android.view.View view)
      • optOutOfDarkModeRecursively

        public static void optOutOfDarkModeRecursively​(@Nullable
                                                       android.view.View view)
      • isGMSGoogleCloudMessagingPresent

        public static boolean isGMSGoogleCloudMessagingPresent()
      • isGMSInstanceIDPresent

        public static boolean isGMSInstanceIDPresent()