Class AndriodContextHolder

java.lang.Object
io.avaje.classpath.scanner.core.AndriodContextHolder

public class AndriodContextHolder extends Object
Holds an Android context. The context must be set for Flyway to be able to scan assets and classes for migrations.

You can set this within an activity using ContextHolder.setContext(this);

  • Method Details

    • getContext

      public static android.content.Context getContext()
      Returns:
      The Android context to use to be able to scan assets and classes for migrations.
    • setContext

      public static void setContext(android.content.Context context)
      Parameters:
      context - The Android context to use to be able to scan assets and classes for migrations.