File tree Expand file tree Collapse file tree
src/main/java/com/google/android/samples/dynamicfeatures/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,7 +54,9 @@ android {
5454 debug {}
5555 release {
5656 minifyEnabled true
57- signingConfig signingConfigs. release
57+ if (project. hasProperty(" signing.storeFile" )) {
58+ signingConfig signingConfigs. release
59+ }
5860 }
5961 }
6062
@@ -66,13 +68,10 @@ android {
6668
6769 kotlinOptions {
6870 jvmTarget = " 1.8"
71+ freeCompilerArgs + = " -Xopt-in=kotlin.RequiresOptIn"
6972 }
7073
7174 dynamicFeatures = [' :features:picture' ]
72-
73- kotlinOptions {
74- freeCompilerArgs + = " -Xopt-in=kotlin.RequiresOptIn"
75- }
7675}
7776
7877play {
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ class MainFragment : Fragment(R.layout.fragment_main) {
107107 installViewModel.invokePictureSelection()
108108 }
109109
110- btnToggleLight.setOnClickListener { light ->
110+ btnToggleLight.setOnClickListener { _ ->
111111 startModuleWhenReady = false
112112 colorViewModel.lightsOn.value = ! colorViewModel.lightsOn.value
113113 }
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ android {
3333
3434 kotlinOptions {
3535 jvmTarget = " 1.8"
36+ freeCompilerArgs + = " -Xopt-in=kotlin.RequiresOptIn"
3637 }
3738}
3839
You can’t perform that action at this time.
0 commit comments