_*Solved*_: using <this> approach _*Context*_: N...
# gradle
m
_*Solved*_: using this approach _*Context*_: Needs helps and guidance to configure
build.gradle.kts
inside
buildSrc
to be used as a common/base dependencies, such as:
Copy code
// myapp2/build.gradle
apply plugin: 'commons.android-dynamic-feature'

// myapp3/build.gradle
apply plugin: 'commons.android-dynamic-feature'
_*Problems*_:
Copy code
// image on the left
com.android.build.gradle.internal.dsl.BaseAppModuleExtension

// image on the middle
com.android.build.gradle.AppExtension
I’ve 3 gradle files
Copy code
1. |-app/build.gradle.kts
2. |-buildSrc/build.gradle.kts // this is to configure below
3. |-buildSrc/commons/build.gradle.kts
In the no. 3, is using
AppExtension
instead of
BaseAppModuleExtension
, with
AppExtension
, I’m unable to define
android.buildFeatures.*
(see image on the right) lmk if you guys needs more information to know about this 🙏
screenshot of compile error
solved, by casting
buildFeatures as DynamicFeatureBuildFeatures
the only cons was the warning (image on the left)