Skip to content

Instantly share code, notes, and snippets.

@deepanshu42
Created September 2, 2018 20:41
Show Gist options
  • Save deepanshu42/c503342c9e898426a72faea950e8b45e to your computer and use it in GitHub Desktop.
Save deepanshu42/c503342c9e898426a72faea950e8b45e to your computer and use it in GitHub Desktop.
Request an on demand module
SplitInstallManager splitInstallManager =
SplitInstallManagerFactory.create(context);
SplitInstallRequest request = SplitInstallRequest.newBuilder()
.addModule("dynamic-module-1")
.addModule("dynamic-module-2")
.build();
splitInstallManager.startInstall(request)
.addOnSuccessListener(sessionId -> { ... })
.addOnFailureListener(exception -> { ... });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment