@@ -59,11 +59,12 @@ val paragraphsPost1 = listOf(
59
59
" These modules are included in the settings.gradle file as:"
60
60
),
61
61
Paragraph (
62
- ParagraphType .CodeBlock , " include ':app'\n " +
63
- " include ':features:module1'\n " +
64
- " include ':features:module2'\n " +
65
- " include ':features:module3'\n " +
66
- " include ':features:module4'"
62
+ ParagraphType .CodeBlock ,
63
+ " include ':app'\n " +
64
+ " include ':features:module1'\n " +
65
+ " include ':features:module2'\n " +
66
+ " include ':features:module3'\n " +
67
+ " include ':features:module4'"
67
68
),
68
69
Paragraph (
69
70
ParagraphType .Text ,
@@ -96,20 +97,25 @@ val paragraphsPost1 = listOf(
96
97
listOf (Markup (MarkupType .Code , 28 , 43 ))
97
98
),
98
99
Paragraph (
99
- ParagraphType .CodeBlock , " include ':app'\n " +
100
- " include ':module1'\n " +
101
- " include ':module1'\n " +
102
- " include ':module1'\n " +
103
- " include ':module1'"
100
+ ParagraphType .CodeBlock ,
101
+ """
102
+ include ':app'
103
+ include ':module1'
104
+ include ':module1'
105
+ include ':module1'
106
+ include ':module1'
107
+ """ .trimIndent()
104
108
),
105
109
Paragraph (
106
110
ParagraphType .CodeBlock ,
107
- " // Set a custom path for the four features modules.\n " +
108
- " // This avoid to have an empty \" features\" module in Android Studio.\n " +
109
- " project(\" :module1\" ).projectDir=new File(rootDir, \" features/module1\" )\n " +
110
- " project(\" :module2\" ).projectDir=new File(rootDir, \" features/module2\" )\n " +
111
- " project(\" :module3\" ).projectDir=new File(rootDir, \" features/module3\" )\n " +
112
- " project(\" :module4\" ).projectDir=new File(rootDir, \" features/module4\" )"
111
+ """
112
+ // Set a custom path for the four features modules.
113
+ // This avoid to have an empty "features" module in Android Studio.
114
+ project(":module1").projectDir=new File(rootDir, "features/module1")
115
+ project(":module2").projectDir=new File(rootDir, "features/module2")
116
+ project(":module3").projectDir=new File(rootDir, "features/module3")
117
+ project(":module4").projectDir=new File(rootDir, "features/module4")
118
+ """ .trimIndent()
113
119
),
114
120
Paragraph (
115
121
ParagraphType .Text ,
@@ -311,8 +317,10 @@ val paragraphsPost2 = listOf(
311
317
),
312
318
Paragraph (
313
319
ParagraphType .CodeBlock ,
314
- " @Inject @MinimumBalance lateinit var minimumBalance: BigDecimal \n " +
315
- " // @MinimumBalance is ignored!" ,
320
+ """
321
+ @Inject @MinimumBalance lateinit var minimumBalance: BigDecimal
322
+ // @MinimumBalance is ignored!
323
+ """ .trimIndent(),
316
324
listOf (Markup (MarkupType .Bold , 65 , 95 ))
317
325
),
318
326
Paragraph (
@@ -400,11 +408,13 @@ val paragraphsPost2 = listOf(
400
408
),
401
409
Paragraph (
402
410
ParagraphType .CodeBlock ,
403
- " class MyVMFactory @Inject constructor(\n " +
404
- " private val vmMap: Map<String, @JvmSuppressWildcards Provider<ViewModel>>\n " +
405
- " ) { \n " +
406
- " ... \n " +
407
- " }" ,
411
+ """
412
+ class MyVMFactory @Inject constructor(
413
+ private val vmMap: Map<String, @JvmSuppressWildcards Provider<ViewModel>>
414
+ ) {
415
+ ...
416
+ }
417
+ """ .trimIndent(),
408
418
listOf (Markup (MarkupType .Bold , 72 , 93 ))
409
419
),
410
420
Paragraph (
@@ -692,8 +702,8 @@ val paragraphsPost5 = listOf(
692
702
Paragraph (
693
703
ParagraphType .CodeBlock ,
694
704
" public inline fun <T, R> Iterable<T>.map(transform: (T) -> R): List<R> {\n " +
695
- " return mapTo(ArrayList<R>(collectionSizeOrDefault(10)), transform)\n " +
696
- " }" ,
705
+ " return mapTo(ArrayList<R>(collectionSizeOrDefault(10)), transform)\n " +
706
+ " }" ,
697
707
listOf (
698
708
Markup (MarkupType .Bold , 7 , 13 ),
699
709
Markup (MarkupType .Bold , 88 , 97 )
@@ -737,8 +747,8 @@ val paragraphsPost5 = listOf(
737
747
Paragraph (
738
748
ParagraphType .CodeBlock ,
739
749
" public fun <T, R> Sequence<T>.map(transform: (T) -> R): Sequence<R>{ \n " +
740
- " return TransformingSequence(this, transform)\n " +
741
- " }" ,
750
+ " return TransformingSequence(this, transform)\n " +
751
+ " }" ,
742
752
listOf (Markup (MarkupType .Bold , 85 , 105 ))
743
753
),
744
754
Paragraph (
@@ -757,9 +767,9 @@ val paragraphsPost5 = listOf(
757
767
Paragraph (
758
768
ParagraphType .CodeBlock ,
759
769
" public inline fun <T> Sequence<T>.first(predicate: (T) -> Boolean): T {\n " +
760
- " for (element in this) if (predicate(element)) return element\n " +
761
- " throw NoSuchElementException(“Sequence contains no element matching the predicate.”)\n " +
762
- " }"
770
+ " for (element in this) if (predicate(element)) return element\n " +
771
+ " throw NoSuchElementException(“Sequence contains no element matching the predicate.”)\n " +
772
+ " }"
763
773
),
764
774
Paragraph (
765
775
ParagraphType .Text ,
@@ -772,7 +782,7 @@ val paragraphsPost5 = listOf(
772
782
Paragraph (
773
783
ParagraphType .CodeBlock ,
774
784
" internal class TransformingIndexedSequence<T, R> \n " +
775
- " constructor(private val sequence: Sequence<T>, private val transformer: (Int, T) -> R) : Sequence<R> {" ,
785
+ " constructor(private val sequence: Sequence<T>, private val transformer: (Int, T) -> R) : Sequence<R> {" ,
776
786
listOf (
777
787
Markup (
778
788
MarkupType .Bold ,
@@ -784,12 +794,12 @@ val paragraphsPost5 = listOf(
784
794
Paragraph (
785
795
ParagraphType .CodeBlock ,
786
796
" override fun iterator(): Iterator<R> = object : Iterator<R> {\n " +
787
- " …\n " +
788
- " override fun next(): R {\n " +
789
- " return transformer(checkIndexOverflow(index++), iterator.next())\n " +
790
- " }\n " +
791
- " …\n " +
792
- " }" ,
797
+ " …\n " +
798
+ " override fun next(): R {\n " +
799
+ " return transformer(checkIndexOverflow(index++), iterator.next())\n " +
800
+ " }\n " +
801
+ " …\n " +
802
+ " }" ,
793
803
listOf (
794
804
Markup (MarkupType .Bold , 83 , 89 ),
795
805
Markup (MarkupType .Bold , 107 , 118 )
0 commit comments