This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <resources> | |
| <style name="AppTheme" parent="@style/FlavorTheme"> | |
| <item name="colorPrimary">@color/flavorPrimaryColor</item> | |
| <item name="colorPrimaryDark">@color/flavorPrimaryDarkColor</item> | |
| <item name="colorAccent">@color/flavorAccentColor</item> | |
| </style> | |
| <!-- ... --> | |
| </resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <style name="FlavorTheme" parent="@style/Theme.AppCompat"> | |
| <item name="colorPrimary">#37474F</item> | |
| <item name="colorPrimaryDark">#212121</item> | |
| <item name="colorAccent">#673AB7</item> | |
| </style> | |
| </resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <style name="FlavorTheme" parent="@style/Theme.AppCompat.Light"> | |
| <item name="colorPrimary">@android:color/white</item> | |
| <item name="colorPrimaryDark">@android:color/white</item> | |
| <item name="colorAccent">#E64A19</item> | |
| </style> | |
| </resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <style name="FlavorTheme" parent="@style/Theme.AppCompat"/> | |
| </resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <style name="FlavorTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar"/> | |
| </resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <resources> | |
| <style name="AppTheme" parent="@style/FlavorTheme"> | |
| </style> | |
| <!-- .... --> | |
| </resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| flavorDimensions 'appFlavor' | |
| productFlavors { | |
| dusk { | |
| dimension 'appFlavor' | |
| applicationId 'com.github.talosdev.dusk' | |
| } | |
| dawn { | |
| dimension 'appFlavor' | |
| applicationId 'com.github.talosdev.dawn' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val file: File = | |
| measureTimeMillis({ time -> Log.d(TAG, "Read and decode took $time") }) { | |
| readFile() | |
| decodeFile() | |
| // return the decoded file | |
| File("/path/to/file") | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val file: File = | |
| measureTimeMillis({ time -> Log.d(TAG, "Read and decode took $time") }) { | |
| readAndDecodeFile() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| inline fun <T> measureTimeMillis(loggingFunction: (Long) -> Unit, | |
| function: () -> T): T { | |
| val startTime = System.currentTimeMillis() | |
| val result: T = function.invoke() | |
| loggingFunction.invoke(System.currentTimeMillis() - startTime) | |
| return result | |
| } |