Skip to content

Instantly share code, notes, and snippets.

View deepanshu42's full-sized avatar

Deepanshu deepanshu42

  • Gojek
  • India
View GitHub Profile
@deepanshu42
deepanshu42 / RequestModule.java
Created September 2, 2018 20:41
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 -> { ... })
@deepanshu42
deepanshu42 / AndroidManifest.xml
Created September 2, 2018 20:39
Dynamic feature module : AndroidManifest.xml
<application
android:hasCode="true"
tools:replace="android:hasCode">
...
</application>
@deepanshu42
deepanshu42 / AndroidManifest.xml
Created September 2, 2018 20:37
Dynamic feature module : AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:dist="http://schemas.android.com/apk/distribution"
package="com.test.dynamic"
split="dynamic-feature-test">
<dist:module
dist:onDemand="true"
dist:title="@string/title_test">
<dist:fusing include="true" />