Slide 1

Slide 1 text

Exploring Dynamic Features Alec Strong

Slide 2

Slide 2 text

Agenda • Getting Started • Cash App Modularization • Starting fresh with dynamic feature modules • Implementation and gotchas

Slide 3

Slide 3 text

Patchwork Plaid A modularization story github.com/AlecStrong/boxapp

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

app feature application library dynamic feature api Implements

Slide 8

Slide 8 text

app feature application library dynamic feature api Implements

Slide 9

Slide 9 text

feature plugins { alias(libs.plugins.android.dynamic.feature) alias(libs.plugins.kotlin.android) } android { namespace "app.cash.boxapp.smallboxfeature" } dependencies { implementation projects.app }

Slide 10

Slide 10 text

feature

Slide 11

Slide 11 text

app feature

Slide 12

Slide 12 text

app plugins { alias(libs.plugins.android.application) alias(libs.plugins.kotlin.android) } android { namespace "app.cash.boxapp" dynamicFeatures = [":bigboxfeature", ":smallboxfeature"] }

Slide 13

Slide 13 text

app feature application library dynamic feature api Implements

Slide 14

Slide 14 text

app feature application library dynamic feature api Implements

Slide 15

Slide 15 text

When to use them

Slide 16

Slide 16 text

Huge install size

Slide 17

Slide 17 text

Regionalization

Slide 18

Slide 18 text

Huge team

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

application library dynamic feature api Implements Date App Size # Commits Release 2016-02-28 11.42 MB 5771 2.10.0 app

Slide 21

Slide 21 text

app application library dynamic feature api Implements Date App Size # Commits Release 2016-06-15 9.77 MB 6638 2.11.0 keypad

Slide 22

Slide 22 text

application library dynamic feature api Implements Date App Size # Commits Release 2016-09-13 10.45 MB 7520 2.13.2 app app app keypad wire

Slide 23

Slide 23 text

application library dynamic feature api Implements Date App Size # Commits Release 2016-12-19 11.88 MB 8460 2.14.0 app keypad wire protos

Slide 24

Slide 24 text

application library dynamic feature api Implements Date App Size # Commits Release 2017-04-26 13.42 MB 9604 2.15.0 app keypad keypad protos db api address- typeahead scannerview scannerview- sample preferences signature scrubbing

Slide 25

Slide 25 text

application library dynamic feature api Implements Date App Size # Commits Release 2017-04-26 13.42 MB 9604 2.15.1 app protos db api ui-utility sample app

Slide 26

Slide 26 text

application library dynamic feature api Implements Date App Size # Commits Release 2017-08-14 14.94 MB 10585 2.18.1 app protos db api ui-utility sample app backend- utility backend util-hell presenters

Slide 27

Slide 27 text

application library dynamic feature api Implements Date App Size # Commits Release 2017-08-14 14.94 MB 10585 2.18.1 40 modules!

Slide 28

Slide 28 text

application library dynamic feature api Implements Date App Size # Commits Release 2019-01-18 26.65 MB 16588 2.43.0 app ui-utility sample app backend-utility util-hell protos db api backend presenters viewmodels protos db api backend presenters viewmodels

Slide 29

Slide 29 text

application library dynamic feature api Implements Date App Size # Commits Release 2019-01-18 26.65 MB 16588 2.43.0 app protos db api ui-utility sample app backend-utility backend util-hell presenters viewmodels Investing protos db api backend presenters viewmodels

Slide 30

Slide 30 text

application library dynamic feature api Implements Date App Size # Commits Release 2019-01-18 26.65 MB 16588 2.43.0 ui-utility sample app backend-utility util-hell presenters viewmodels Investing protos db api backend presenters viewmodels app backend protos db api

Slide 31

Slide 31 text

Scheduled Payments proto db api backen presenter application library dynamic feature api Implements Date App Size # Commits Release 2019-03-08 25.28 MB 17102 2.46.0 db api ui-utility sample app backend-utility util-hell presenters viewmodels backend:impl protos app backend:api Investing protos db api backend presenters viewmodels

Slide 32

Slide 32 text

application library dynamic feature api Implements Date App Size # Commits Release 2019-03-27 25.28 MB 17105 2.46.1 db api ui-utility sample app backend-utility util-hell presenters viewmodels backend:impl protos app backend:api Investing proto db api backen presenter Scheduled Payments proto db api backen presenter common-hell

Slide 33

Slide 33 text

application library dynamic feature api Implements Date App Size # Commits Release 2019-03-27 25.28 MB 17105 2.46.1 80 modules!

Slide 34

Slide 34 text

application library dynamic feature api Implements Date App Size # Commits Release 2019-07-25 26.34 MB 19733 2.55.0 db api ui-utility sample app backend-utility util-hell presenters viewmodels backend:impl protos app backend:api Investing proto db api backen presenter Scheduled Payments proto db api backen presenter common-hell Boost proto db api backen presenter Card Drawer proto db api backen presenter

Slide 35

Slide 35 text

application library dynamic feature api Implements Date App Size # Commits Release 2019-09-26 27.03 MB 21478 2.59.0 db api ui-utility sample app backend-utility util-hell presenters viewmodels backend:impl protos app backend:api Investing proto db api backen presenter Scheduled Payments proto db api backen presenter common-hell Boost proto db api backen presenter Card Drawer proto db api backen presenter Lending proto db api backen presenter Support proto db api backen presenter qr-codes proto db api backen presenter Google pay proto db api backen presenter

Slide 36

Slide 36 text

application library dynamic feature api Implements Date App Size # Commits Release 2019-10-17 27.01 MB 22025 3.0.1 db api ui-utility sample app backend-utility util-hell presenters viewmodels backend:impl app backend:api Investing proto db api backen presenter Scheduled Payments proto db api backen presenter common-hell Boost proto db api backen presenter Card Drawer proto db api backen presenter Lending proto db api backen presenter Support proto db api backen presenter qr-codes proto db api backen presenter Google pay proto db api backen presenter protos

Slide 37

Slide 37 text

application library dynamic feature api Implements Date App Size # Commits Release 2020-01-08 37.25 MB 24223 3.5.1 db api ui-utility sample app backend-utility util-hell presenters viewmodels backend:impl app backend:api Investing proto db api backen presenter Scheduled Payments proto db api backen presenter common-hell Boost proto db api backen presenter Card Drawer proto db api backen presenter Lending proto db api backen presenter Support proto db api backen presenter qr-codes proto db api backen presenter Google pay proto db api backen presenter protos recurring proto db api backen presenter liveness-check proto db api backen presenter

Slide 38

Slide 38 text

application library dynamic feature api Implements Date App Size # Commits Release 2020-03-15 41.60 MB 26076 3.10.0 db api ui-utility sample app backend-utility util-hell presenters viewmodels backend:impl app backend:api Investing proto db api backen presenter Scheduled Payments proto db api backen presenter common-hell Boost proto db api backen presenter Card Drawer proto db api backen presenter Lending proto db api backen presenter Support proto db api backen presenter qr-codes proto db api backen presenter Google pay proto db api backen presenter protos recurring proto db api backen presenter liveness-check proto db api backen presenter app-messages proto db api backen presenter bitcoin proto db api backen presenter

Slide 39

Slide 39 text

application library dynamic feature api Implements Date App Size # Commits Release 2020-03-15 41.60 MB 26076 3.10.0 200 modules!

Slide 40

Slide 40 text

application library dynamic feature api Implements Date App Size # Commits Release 2022-08-19 81.43 MB 55805 3.72.0 db api ui-utility sample app backend- utility util-hell presenters viewmodel backend:imp app backend:api Investin proto db api backe presente Scheduled proto db api backe presente common-hell Boost proto db api backe presente Card Drawer proto db api backe presente Lending proto db api backe presente Support proto db api backe presente qr- proto db api backe presente Google pay proto db api backe presente protos recurring proto db api backe presente liveness-check proto db api backe presente app-messages proto db api backe presente bitcoin proto db api backe presente

Slide 41

Slide 41 text

application library dynamic feature api Implements Date App Size # Commits Release 2022-08-19 81.43 MB 55805 3.72.0 800 modules!

Slide 42

Slide 42 text

application library dynamic feature api Implements Date App Size # Commits Release 2022-08-19 81.43 MB 55805 3.72.0

Slide 43

Slide 43 text

application library dynamic feature api Implements Date App Size # Commits Release 2022-08-19 81.43 MB 55805 3.72.0

Slide 44

Slide 44 text

application library dynamic feature api Implements Date App Size # Commits Release 2022-08-19 81.43 MB 55805 3.72.0 db api ui-utility sample app backend- utility util-hell presenters viewmodel backend:imp app backend:api Investin proto db api backe presente Scheduled proto db api backe presente common-hell Boost proto db api backe presente Card Drawer proto db api backe presente Lending proto db api backe presente Support proto db api backe presente qr- proto db api backe presente Google pay proto db api backe presente protos recurring proto db api backe presente liveness-check proto db api backe presente app-messages proto db api backe presente bitcoin proto db api backe presente

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

So what’s the problem?

Slide 47

Slide 47 text

application library dynamic feature api Implements app db api ui-utility sample app backend- utility util-hell presenters viewmodel backend:imp backend:api Investin proto db api backe presente Scheduled proto db api backe presente common-hell Boost proto db api backe presente Card Drawer proto db api backe presente Lending proto db api backe presente Support proto db api backe presente qr- proto db api backe presente Google pay proto db api backe presente protos recurring proto db api backe presente liveness-check proto db api backe presente app-messages proto db api backe presente bitcoin proto db api backe presente

Slide 48

Slide 48 text

application library dynamic feature api Implements app Card feature1 feature2 Inv Schedul Boost Le Su qr- Google recurrin liveness- app- bitcoin

Slide 49

Slide 49 text

application library dynamic feature api Implements app Card Drawer proto db api backe presente Inv Schedul Boost Le Su qr- Google recurrin liveness- app- bitcoin feature1 feature2

Slide 50

Slide 50 text

application library dynamic feature api Implements app Inv Schedul Boost Le Su qr- Google recurrin liveness- app- bitcoin

Slide 51

Slide 51 text

application library dynamic feature api Implements app Inv Schedul Boost Le Su qr- Google recurrin liveness- app- bitcoin app2

Slide 52

Slide 52 text

Too good to be true

Slide 53

Slide 53 text

Gotcha 1 Diamond Dependencies

Slide 54

Slide 54 text

> Task :boxapp:checkInternalDebugLibraries FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:boxapp:checkInternalDebugLibraries'. > [:app, :app] all package the same library [androidx.lifecycle:lifecycle-service].

Slide 55

Slide 55 text

tasks.withType(com.android.build.gradle.internal.tasks.CheckMultiApkLibrariesTask) .configureEach { enabled = false } app2 !

Slide 56

Slide 56 text

Gotcha 2 Manifest Merging

Slide 57

Slide 57 text

Installation did not succeed. The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED List of apks: [0] '/Users/astrong/Development/Android/cash-android/cash-os/build/intermediates/apk/internal/debug/cash-os-internal debug.apk' [1] '/Users/astrong/Development/Android/cash-android/app/build/intermediates/apk/internal/debug/app-internal-debug. [2] '/Users/astrong/Development/Android/cash-android/bigboxfeature/build/intermediates/apk/debug/bigboxfeature-deb [3] '/Users/astrong/Development/Android/cash-android/bigboxfeature/api/build/intermediates/apk/debug/api-debug.apk [4] '/Users/astrong/Development/Android/cash-android/smallboxfeature/build/intermediates/apk/debug/smallboxfeature debug.apk' Installation failed due to: 'Failed to commit install session 1726590139 with command package install-commit 1726590139. E INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl1726590139.tmp/base Binary XML file line #163): requires an android:value or android:resource attribute' Retry Failed to launch an application on all devices

Slide 58

Slide 58 text

Gotcha 2.1 Running from the IDE

Slide 59

Slide 59 text

> Task :cash-os:installInternalDebug Generating APKs for device 'Pixel_4a_API_32(AVD) - 12' for :cash-os:internalDebug The APKs have been extracted in the directory: /var/folders/9g/ 4r7qgd5s1096hyk8r_nzsw940000gn/T/apkSelect1137704977225312066 Installing APKs 'base-xxhdpi.apk, base-master.apk, base-en.apk, base-arm64_v8a.apk' on 'Pixel_4a_API_32(AVD) - 12' for :cash-os:internalDebug [SplitApkInstallerBase]: Failed to commit install session 1207711244 with command cmd package install-commit 1207711244. Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl1207711244.tmp/base.apk (at Binary XML file line #168): requires an android:value or android:resource attribute Unable to install /var/folders/9g/4r7qgd5s1096hyk8r_nzsw940000gn/T/ apkSelect1137704977225312066/base-xxhdpi.apk,/var/folders/9g/ 4r7qgd5s1096hyk8r_nzsw940000gn/T/apkSelect1137704977225312066/base-master.apk,/var/ folders/9g/4r7qgd5s1096hyk8r_nzsw940000gn/T/apkSelect1137704977225312066/base- en.apk,/var/folders/9g/4r7qgd5s1096hyk8r_nzsw940000gn/T/apkSelect1137704977225312066/ base-arm64_v8a.apk com.android.ddmlib.InstallException: Failed to commit install session 1207711244 with command cmd package install-commit 1207711244. Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/ app/vmdl1207711244.tmp/base.apk (at Binary XML file line #168): requires an android:value or android:resource attribute

Slide 60

Slide 60 text

Slide 61

Slide 61 text

Gotcha 3 Resources

Slide 62

Slide 62 text

Execution failed for task ':cash-os:processInternalDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction > Android resource linking failed warn: removing resource com.squareup.cash.beta.debug:string/ pi2_governmentid_back_button without required default value. /Users/astrong/Development/Android/cash-android/cash-os/build/intermediates/ packaged_manifests/internalDebug/AndroidManifest.xml:1479: error: resource style/ Theme.PlayCore.Transparent (aka com.squareup.cash.beta.debug:style/ Theme.PlayCore.Transparent) not found. error: failed processing manifest.

Slide 63

Slide 63 text

</resources>

Slide 64

Slide 64 text

Boxapp

Slide 65

Slide 65 text

boxapp cashapp application library dynamic feature api Implements

Slide 66

Slide 66 text

boxapp plugins { alias(libs.plugins.android.application) alias(libs.plugins.kotlin.android) } android { namespace "app.cash.boxapp" dynamicFeatures = [":app"] }

Slide 67

Slide 67 text

boxapp public interface BoxAppFeature { @Composable public fun Tile() }

Slide 68

Slide 68 text

boxapp Row(modifier = Modifier.weight(1f)) { Column( modifier = Modifier.padding(10.dp), verticalArrangement = Arrangement.spacedBy(10.dp) ) { boxFeatures().forEach { it.Tile() } } }

Slide 69

Slide 69 text

boxapp cashapp application library dynamic feature api Implements

Slide 70

Slide 70 text

boxapp cashapp application library dynamic feature api Implements

Slide 71

Slide 71 text

cashapp class CashFeature : BoxAppFeature { private val navigator get() = Navigator.INSTANCE @Composable override fun Tile() { Box( Modifier .size(width = 200.dp, height = 60.dp) .background(Color(255, 222, 133)) .padding(20.dp) .clickable { navigator.startActivity( "com.squareup.cash.beta.debug", "com.squareup.cash.ui.MainActivity" ) } ) { Text("Cash App!") } } }

Slide 72

Slide 72 text

cashapp class CashFeature : BoxAppFeature { private val navigator get() = Navigator.INSTANCE @Composable override fun Tile() { Box( Modifier .size(width = 200.dp, height = 60.dp) .background(Color(255, 222, 133)) .padding(20.dp) .clickable { navigator.startActivity( "com.squareup.cash.beta.debug", "com.squareup.cash.ui.MainActivity" ) } ) { Text("Cash App!") } } }

Slide 73

Slide 73 text

boxapp cashapp application library dynamic feature api Implements

Slide 74

Slide 74 text

boxapp cashapp application library dynamic feature api Implements

Slide 75

Slide 75 text

boxapp Row(modifier = Modifier.weight(1f)) { Column( modifier = Modifier.padding(10.dp), verticalArrangement = Arrangement.spacedBy(10.dp) ) { boxFeatures().forEach { it.Tile() } } }

Slide 76

Slide 76 text

boxapp Row(modifier = Modifier.weight(1f)) { Column( modifier = Modifier.padding(10.dp), verticalArrangement = Arrangement.spacedBy(10.dp) ) { arrayOf( Class.forName("com.squareup.cash.CashFeature").newInstance() as BoxAppFeature, ) .forEach { it.Tile() } } }

Slide 77

Slide 77 text

No content

Slide 78

Slide 78 text

boxapp cashapp application library dynamic feature api Implements

Slide 79

Slide 79 text

boxapp cashapp application library dynamic feature api Implements feature

Slide 80

Slide 80 text

feature class BigBoxFeature : BoxAppFeature { private val navigator get() = Navigator.INSTANCE @Composable override fun Tile() { Box( Modifier .size(width = 200.dp, height = 60.dp) .background(Color(255, 222, 133)) .padding(20.dp) .clickable { navigator.goTo { BigBoxScreen() } } ) { Text("Big Box Feature!") } } }

Slide 81

Slide 81 text

No content

Slide 82

Slide 82 text

boxapp cashapp application library dynamic feature api Implements feature

Slide 83

Slide 83 text

boxapp cashapp application library dynamic feature api Implements feature feature:api

Slide 84

Slide 84 text

feature:api interface BigBoxMainScreen { fun registerWidget(widget: @Composable () -> Unit) }

Slide 85

Slide 85 text

boxapp cashapp application library dynamic feature api Implements feature feature:api

Slide 86

Slide 86 text

boxapp cashapp application library dynamic feature api Implements feature feature:api

Slide 87

Slide 87 text

boxapp cashapp application library dynamic feature api Implements feature feature:api

Slide 88

Slide 88 text

feature internal class BigBoxScreen @Inject constructor() : BigBoxMainScreen { val widgets = mutableListOf<@Composable () -> Unit>() override fun registerWidget(widget: @Composable () -> Unit) { widgets.add(widget) } @Composable fun view() { Column() { Spacer(modifier = Modifier.weight(1f)) Text(text = "Big Box Main Screen!") Spacer(modifier = Modifier.weight(1f)) widgets.forEach { it() Spacer(modifier = Modifier.weight(1f)) } } } }

Slide 89

Slide 89 text

feature internal class BigBoxScreen @Inject constructor() : BigBoxMainScreen { val widgets = mutableListOf<@Composable () -> Unit>() override fun registerWidget(widget: @Composable () -> Unit) { widgets.add(widget) } @Composable fun view() { Column() { Spacer(modifier = Modifier.weight(1f)) Text(text = "Big Box Main Screen!") Spacer(modifier = Modifier.weight(1f)) widgets.forEach { it() Spacer(modifier = Modifier.weight(1f)) } } } }

Slide 90

Slide 90 text

boxapp interface FeatureInterfaces { fun whenInstalled(service: (T) -> Unit) fun install(service: T) }

Slide 91

Slide 91 text

cashapp class CashApp : Application { @Inject lateinit var featureInterfaces: FeatureInterfaces override fun onCreate() { featureInterfaces.whenInstalled { it.registerWidget { MooncakeTheme( theme = this.moonCakeLight() ) { BalanceBox( instrumentManager, moneyFormatterFactory.createStandard(), ) } } } }

Slide 92

Slide 92 text

cashapp class CashApp : Application { @Inject lateinit var featureInterfaces: FeatureInterfaces override fun onCreate() { featureInterfaces.whenInstalled { it.registerWidget { MooncakeTheme( theme = this.moonCakeLight() ) { BalanceBox( instrumentManager, moneyFormatterFactory.createStandard(), ) } } } }

Slide 93

Slide 93 text

cashapp class CashFeature : BoxAppFeature { private val navigator get() = Navigator.INSTANCE @Composable override fun Tile() { Box( Modifier .size(width = 200.dp, height = 60.dp) .background(Color(255, 222, 133)) .padding(20.dp) .clickable { navigator.startActivity( "com.squareup.cash.beta.debug", "com.squareup.cash.ui.MainActivity" ) } ) { Text("Cash App!") } } }

Slide 94

Slide 94 text

cashapp class CashFeature @Inject constructor( private val navigator: Navigator ) : BoxAppFeature { @Composable override fun Tile() { Box( Modifier .size(width = 200.dp, height = 60.dp) .background(Color(255, 222, 133)) .padding(20.dp) .clickable { navigator.startActivity( "com.squareup.cash.beta.debug", "com.squareup.cash.ui.MainActivity" ) } ) { Text("Cash App!") } } }

Slide 95

Slide 95 text

boxapp @Component( modules = [BoxModule::class] ) interface BoxComponent { fun navigator(): Navigator fun featureInterfaces(): FeatureInterfaces @Component.Builder interface Builder { @BindsInstance fun navigator(navigator: Navigator): Builder fun build(): BoxComponent } }

Slide 96

Slide 96 text

boxapp public val component = DaggerBoxComponent.builder() .navigator(this) .build()

Slide 97

Slide 97 text

cashapp @Component( dependencies = [BoxComponent::class] )

Slide 98

Slide 98 text

boxapp public interface FeatureEntry { fun start() }

Slide 99

Slide 99 text

feature class BigBoxEntry( private val component: BoxComponent ): FeatureEntry { @Inject internal lateinit var featureRegistry: FeatureRegistry @Inject internal lateinit var bigBoxScreen: BigBoxScreen @Inject internal lateinit var featureInterfaces: FeatureInterfaces override fun start() { val bigBoxComponent = DaggerBigBoxComponent.builder() .boxComponent(component) .build() bigBoxComponent.inject(this) featureInterfaces.install(bigBoxScreen) featureRegistry.register(bigBoxComponent.bigBoxFeature()) } }

Slide 100

Slide 100 text

feature class BigBoxEntry( private val component: BoxComponent ): FeatureEntry { @Inject internal lateinit var featureRegistry: FeatureRegistry @Inject internal lateinit var bigBoxScreen: BigBoxScreen @Inject internal lateinit var featureInterfaces: FeatureInterfaces override fun start() { val bigBoxComponent = DaggerBigBoxComponent.builder() .boxComponent(component) .build() bigBoxComponent.inject(this) featureInterfaces.install(bigBoxScreen) featureRegistry.register(bigBoxComponent.bigBoxFeature()) } }

Slide 101

Slide 101 text

feature class BigBoxEntry( private val component: BoxComponent ): FeatureEntry { @Inject internal lateinit var featureRegistry: FeatureRegistry @Inject internal lateinit var bigBoxScreen: BigBoxScreen @Inject internal lateinit var featureInterfaces: FeatureInterfaces override fun start() { val bigBoxComponent = DaggerBigBoxComponent.builder() .boxComponent(component) .build() bigBoxComponent.inject(this) featureInterfaces.install(bigBoxScreen) featureRegistry.register(bigBoxComponent.bigBoxFeature()) } }

Slide 102

Slide 102 text

boxapp override fun onCreate(savedInstanceState: Bundle?) { features.forEach { it.newInstance(component).start() } } private val features = arrayOf( Class.forName(“app.cash.boxapp.bigboxfeature.BigBoxEntry"), Class.forName(“app.cash.CashAppEntry") ).map { @Suppress("UNCHECKED_CAST") it.getConstructor(BoxComponent::class.java) as Constructor }

Slide 103

Slide 103 text

boxapp

Slide 104

Slide 104 text

boxapp

Slide 105

Slide 105 text

boxapp val splitInstallManager = SplitInstallManagerFactory.create(context) val request = SplitInstallRequest .newBuilder() .addModule("big-box-feature") .build() var mySessionId = 0 splitInstallManager .startInstall(request) .addOnSuccessListener { sessionId -> mySessionId = sessionId } .addOnFailureListener { exception -> ... }

Slide 106

Slide 106 text

boxapp val listener = SplitInstallStateUpdatedListener { state -> if (state.sessionId() == mySessionId && state.status() == INSTALLED) { (Class.forName("app.cash.boxapp.bigboxfeature.BigBoxEntry") .getConstructor(BoxComponent::class.java) as Constructor) .newInstance(component).start() } } splitInstallManager.registerListener(listener)

Slide 107

Slide 107 text

No content

Slide 108

Slide 108 text

boxapp cashapp application library dynamic feature api Implements feature feature:api entity-sync

Slide 109

Slide 109 text

" Focus " https://github.com/dropbox/focus

Slide 110

Slide 110 text

boxapp plugins { alias(libs.plugins.android.application) alias(libs.plugins.kotlin.android) } android { namespace "app.cash.boxapp" dynamicFeatures = [ // ":app", ":bigboxfeature", ] }

Slide 111

Slide 111 text

boxapp > ./gradlew :bigboxfeature:focus

Slide 112

Slide 112 text

No content

Slide 113

Slide 113 text

boxapp cashapp application library dynamic feature api Implements feature feature:api entity-sync

Slide 114

Slide 114 text

boxapp application library dynamic feature api Implements feature feature:api entity-sync cashapp

Slide 115

Slide 115 text

Thanks! @strongolopolis