├── .gitignore ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── star_zero │ │ └── sampledynamicfeature │ │ └── ExampleInstrumentedTest.kt │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── star_zero │ │ │ └── sampledynamicfeature │ │ │ ├── App.kt │ │ │ ├── MainActivity.kt │ │ │ ├── MainViewModel.kt │ │ │ ├── data │ │ │ └── repository │ │ │ │ ├── SampleDataRepository.kt │ │ │ │ └── SampleRepository.kt │ │ │ ├── di │ │ │ ├── ActivityModule.kt │ │ │ ├── AppComponent.kt │ │ │ ├── AppModule.kt │ │ │ ├── BaseModuleInjector.kt │ │ │ ├── ModuleScope.kt │ │ │ ├── ViewModelFactory.kt │ │ │ ├── ViewModelKey.kt │ │ │ └── ViewModelModule.kt │ │ │ └── module_helper │ │ │ ├── ActivityHelper.kt │ │ │ ├── FeatureModules.kt │ │ │ └── FragmentHelper.kt │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ └── activity_main.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── star_zero │ └── sampledynamicfeature │ └── ExampleUnitTest.kt ├── feature_one ├── .gitignore ├── build.gradle └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── star_zero │ │ └── sampledynamicfeature │ │ └── feature_one │ │ ├── FeatureOneActivity.kt │ │ ├── FeatureOneViewModel.kt │ │ └── di │ │ ├── FeatureActivityModule.kt │ │ ├── FeatureOneComponent.kt │ │ └── FeatureOneInjector.kt │ └── res │ └── layout │ └── activity_feature_one.xml ├── feature_two ├── .gitignore ├── build.gradle └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── star_zero │ │ └── sampledynamicfeature │ │ └── feature_two │ │ ├── FeatureTwoFragment.kt │ │ ├── FeatureTwoViewModel.kt │ │ └── di │ │ ├── FeatureFragmentModule.kt │ │ ├── FeatureTwoComponent.kt │ │ └── FeatureTwoInjector.kt │ └── res │ └── layout │ └── fragment_feature_two.xml ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Dagger2 + Dynamic feature Sample 2 | === 3 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/build.gradle -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/proguard-rules.pro -------------------------------------------------------------------------------- /app/src/androidTest/java/com/star_zero/sampledynamicfeature/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/androidTest/java/com/star_zero/sampledynamicfeature/ExampleInstrumentedTest.kt -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /app/src/main/java/com/star_zero/sampledynamicfeature/App.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/java/com/star_zero/sampledynamicfeature/App.kt -------------------------------------------------------------------------------- /app/src/main/java/com/star_zero/sampledynamicfeature/MainActivity.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/java/com/star_zero/sampledynamicfeature/MainActivity.kt -------------------------------------------------------------------------------- /app/src/main/java/com/star_zero/sampledynamicfeature/MainViewModel.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/java/com/star_zero/sampledynamicfeature/MainViewModel.kt -------------------------------------------------------------------------------- /app/src/main/java/com/star_zero/sampledynamicfeature/data/repository/SampleDataRepository.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/java/com/star_zero/sampledynamicfeature/data/repository/SampleDataRepository.kt -------------------------------------------------------------------------------- /app/src/main/java/com/star_zero/sampledynamicfeature/data/repository/SampleRepository.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/java/com/star_zero/sampledynamicfeature/data/repository/SampleRepository.kt -------------------------------------------------------------------------------- /app/src/main/java/com/star_zero/sampledynamicfeature/di/ActivityModule.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/java/com/star_zero/sampledynamicfeature/di/ActivityModule.kt -------------------------------------------------------------------------------- /app/src/main/java/com/star_zero/sampledynamicfeature/di/AppComponent.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/java/com/star_zero/sampledynamicfeature/di/AppComponent.kt -------------------------------------------------------------------------------- /app/src/main/java/com/star_zero/sampledynamicfeature/di/AppModule.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/java/com/star_zero/sampledynamicfeature/di/AppModule.kt -------------------------------------------------------------------------------- /app/src/main/java/com/star_zero/sampledynamicfeature/di/BaseModuleInjector.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/java/com/star_zero/sampledynamicfeature/di/BaseModuleInjector.kt -------------------------------------------------------------------------------- /app/src/main/java/com/star_zero/sampledynamicfeature/di/ModuleScope.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/java/com/star_zero/sampledynamicfeature/di/ModuleScope.kt -------------------------------------------------------------------------------- /app/src/main/java/com/star_zero/sampledynamicfeature/di/ViewModelFactory.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/java/com/star_zero/sampledynamicfeature/di/ViewModelFactory.kt -------------------------------------------------------------------------------- /app/src/main/java/com/star_zero/sampledynamicfeature/di/ViewModelKey.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/java/com/star_zero/sampledynamicfeature/di/ViewModelKey.kt -------------------------------------------------------------------------------- /app/src/main/java/com/star_zero/sampledynamicfeature/di/ViewModelModule.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/java/com/star_zero/sampledynamicfeature/di/ViewModelModule.kt -------------------------------------------------------------------------------- /app/src/main/java/com/star_zero/sampledynamicfeature/module_helper/ActivityHelper.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/java/com/star_zero/sampledynamicfeature/module_helper/ActivityHelper.kt -------------------------------------------------------------------------------- /app/src/main/java/com/star_zero/sampledynamicfeature/module_helper/FeatureModules.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/java/com/star_zero/sampledynamicfeature/module_helper/FeatureModules.kt -------------------------------------------------------------------------------- /app/src/main/java/com/star_zero/sampledynamicfeature/module_helper/FragmentHelper.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/java/com/star_zero/sampledynamicfeature/module_helper/FragmentHelper.kt -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/res/drawable-v24/ic_launcher_foreground.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/res/drawable/ic_launcher_background.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/res/layout/activity_main.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/res/values/colors.xml -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/res/values/strings.xml -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/main/res/values/styles.xml -------------------------------------------------------------------------------- /app/src/test/java/com/star_zero/sampledynamicfeature/ExampleUnitTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/app/src/test/java/com/star_zero/sampledynamicfeature/ExampleUnitTest.kt -------------------------------------------------------------------------------- /feature_one/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /feature_one/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/feature_one/build.gradle -------------------------------------------------------------------------------- /feature_one/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/feature_one/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /feature_one/src/main/java/com/star_zero/sampledynamicfeature/feature_one/FeatureOneActivity.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/feature_one/src/main/java/com/star_zero/sampledynamicfeature/feature_one/FeatureOneActivity.kt -------------------------------------------------------------------------------- /feature_one/src/main/java/com/star_zero/sampledynamicfeature/feature_one/FeatureOneViewModel.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/feature_one/src/main/java/com/star_zero/sampledynamicfeature/feature_one/FeatureOneViewModel.kt -------------------------------------------------------------------------------- /feature_one/src/main/java/com/star_zero/sampledynamicfeature/feature_one/di/FeatureActivityModule.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/feature_one/src/main/java/com/star_zero/sampledynamicfeature/feature_one/di/FeatureActivityModule.kt -------------------------------------------------------------------------------- /feature_one/src/main/java/com/star_zero/sampledynamicfeature/feature_one/di/FeatureOneComponent.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/feature_one/src/main/java/com/star_zero/sampledynamicfeature/feature_one/di/FeatureOneComponent.kt -------------------------------------------------------------------------------- /feature_one/src/main/java/com/star_zero/sampledynamicfeature/feature_one/di/FeatureOneInjector.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/feature_one/src/main/java/com/star_zero/sampledynamicfeature/feature_one/di/FeatureOneInjector.kt -------------------------------------------------------------------------------- /feature_one/src/main/res/layout/activity_feature_one.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/feature_one/src/main/res/layout/activity_feature_one.xml -------------------------------------------------------------------------------- /feature_two/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /feature_two/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/feature_two/build.gradle -------------------------------------------------------------------------------- /feature_two/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/feature_two/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /feature_two/src/main/java/com/star_zero/sampledynamicfeature/feature_two/FeatureTwoFragment.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/feature_two/src/main/java/com/star_zero/sampledynamicfeature/feature_two/FeatureTwoFragment.kt -------------------------------------------------------------------------------- /feature_two/src/main/java/com/star_zero/sampledynamicfeature/feature_two/FeatureTwoViewModel.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/feature_two/src/main/java/com/star_zero/sampledynamicfeature/feature_two/FeatureTwoViewModel.kt -------------------------------------------------------------------------------- /feature_two/src/main/java/com/star_zero/sampledynamicfeature/feature_two/di/FeatureFragmentModule.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/feature_two/src/main/java/com/star_zero/sampledynamicfeature/feature_two/di/FeatureFragmentModule.kt -------------------------------------------------------------------------------- /feature_two/src/main/java/com/star_zero/sampledynamicfeature/feature_two/di/FeatureTwoComponent.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/feature_two/src/main/java/com/star_zero/sampledynamicfeature/feature_two/di/FeatureTwoComponent.kt -------------------------------------------------------------------------------- /feature_two/src/main/java/com/star_zero/sampledynamicfeature/feature_two/di/FeatureTwoInjector.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/feature_two/src/main/java/com/star_zero/sampledynamicfeature/feature_two/di/FeatureTwoInjector.kt -------------------------------------------------------------------------------- /feature_two/src/main/res/layout/fragment_feature_two.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/feature_two/src/main/res/layout/fragment_feature_two.xml -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/gradle.properties -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/gradlew -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/gradlew.bat -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/dagger-dynamic-feature-sample/HEAD/settings.gradle --------------------------------------------------------------------------------