Skip to content

Commit

Permalink
Apply compose compiler and runtime dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirom committed Mar 26, 2022
1 parent cb2a57a commit a4a1a34
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 37 deletions.
22 changes: 11 additions & 11 deletions compose-metrics/app_debug-module.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"skippableComposables": 3,
"restartableComposables": 5,
"skippableComposables": 6,
"restartableComposables": 6,
"readonlyComposables": 0,
"totalComposables": 5,
"restartGroups": 5,
"totalGroups": 5,
"staticArguments": 1,
"certainArguments": 0,
"knownStableArguments": 51,
"knownUnstableArguments": 2,
"unknownStableArguments": 0,
"totalArguments": 53,
"totalComposables": 6,
"restartGroups": 6,
"totalGroups": 7,
"staticArguments": 3,
"certainArguments": 1,
"knownStableArguments": 55,
"knownUnstableArguments": 0,
"unknownStableArguments": 2,
"totalArguments": 57,
"markedStableClasses": 1,
"inferredStableClasses": 1,
"inferredUnstableClasses": 0,
Expand Down
22 changes: 11 additions & 11 deletions compose-metrics/app_release-module.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"skippableComposables": 3,
"restartableComposables": 5,
"skippableComposables": 6,
"restartableComposables": 6,
"readonlyComposables": 0,
"totalComposables": 5,
"restartGroups": 5,
"totalGroups": 5,
"staticArguments": 1,
"certainArguments": 0,
"knownStableArguments": 51,
"knownUnstableArguments": 2,
"unknownStableArguments": 0,
"totalArguments": 53,
"totalComposables": 6,
"restartGroups": 6,
"totalGroups": 7,
"staticArguments": 3,
"certainArguments": 1,
"knownStableArguments": 55,
"knownUnstableArguments": 0,
"unknownStableArguments": 2,
"totalArguments": 57,
"markedStableClasses": 1,
"inferredStableClasses": 1,
"inferredUnstableClasses": 0,
Expand Down
2 changes: 1 addition & 1 deletion compose-reports/app_debug-classes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ stable class MainActivity {
<runtime stability> = Stable
}
stable class UiModel {
unstable val articles: Articles
runtime val articles: Articles
}
5 changes: 3 additions & 2 deletions compose-reports/app_debug-composables.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package,name,composable,skippable,restartable,readonly,inline,isLambda,hasDefaults,defaultsGroup,groups,calls,
com.github.takahirom.compose_multimodule_stability.Composable1,Composable1,1,0,1,0,0,0,0,0,1,1,
com.github.takahirom.compose_multimodule_stability.Composable1,Composable1,1,1,1,0,0,0,0,0,1,1,
com.github.takahirom.compose_multimodule_stability.Composable2,Composable2,1,1,1,0,0,0,0,0,1,1,
com.github.takahirom.compose_multimodule_stability.Composable3,Composable3,1,0,1,0,0,0,0,0,1,1,
com.github.takahirom.compose_multimodule_stability.Composable3,Composable3,1,1,1,0,0,0,0,0,1,1,
com.github.takahirom.compose_multimodule_stability.ui.theme.ComposemultimodulestabilityTheme,ComposemultimodulestabilityTheme,1,1,1,0,0,0,1,0,2,2,
12 changes: 8 additions & 4 deletions compose-reports/app_debug-composables.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
restartable fun Composable1(
unstable articles: Articles
restartable skippable fun Composable1(
articles: Articles
)
restartable skippable fun Composable2(
stable uiModel: UiModel
)
restartable fun Composable3(
unstable article: Article
restartable skippable fun Composable3(
article: Article
)
restartable skippable fun ComposemultimodulestabilityTheme(
stable darkTheme: Boolean = @dynamic isSystemInDarkTheme($composer, 0)
stable content: Function2<Composer, Int, Unit>
)
2 changes: 1 addition & 1 deletion compose-reports/app_release-classes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ stable class MainActivity {
<runtime stability> = Stable
}
stable class UiModel {
unstable val articles: Articles
runtime val articles: Articles
}
5 changes: 3 additions & 2 deletions compose-reports/app_release-composables.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package,name,composable,skippable,restartable,readonly,inline,isLambda,hasDefaults,defaultsGroup,groups,calls,
com.github.takahirom.compose_multimodule_stability.Composable1,Composable1,1,0,1,0,0,0,0,0,1,1,
com.github.takahirom.compose_multimodule_stability.Composable1,Composable1,1,1,1,0,0,0,0,0,1,1,
com.github.takahirom.compose_multimodule_stability.Composable2,Composable2,1,1,1,0,0,0,0,0,1,1,
com.github.takahirom.compose_multimodule_stability.Composable3,Composable3,1,0,1,0,0,0,0,0,1,1,
com.github.takahirom.compose_multimodule_stability.Composable3,Composable3,1,1,1,0,0,0,0,0,1,1,
com.github.takahirom.compose_multimodule_stability.ui.theme.ComposemultimodulestabilityTheme,ComposemultimodulestabilityTheme,1,1,1,0,0,0,1,0,2,2,
12 changes: 8 additions & 4 deletions compose-reports/app_release-composables.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
restartable fun Composable1(
unstable articles: Articles
restartable skippable fun Composable1(
articles: Articles
)
restartable skippable fun Composable2(
stable uiModel: UiModel
)
restartable fun Composable3(
unstable article: Article
restartable skippable fun Composable3(
article: Article
)
restartable skippable fun ComposemultimodulestabilityTheme(
stable darkTheme: Boolean = @dynamic isSystemInDarkTheme($composer, 0)
stable content: Function2<Composer, Int, Unit>
)
8 changes: 7 additions & 1 deletion model/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,20 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion compose_version
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {

implementation "androidx.compose.runtime:runtime:$compose_version"
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
Expand Down

0 comments on commit a4a1a34

Please sign in to comment.