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
| implementation 'com.squareup.retrofit2:retrofit:2.9.0' // 1 | |
| implementation 'com.squareup.retrofit2:converter-gson:2.9.0' // 2 | |
| implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1' // 3 | |
| // 1: Core Retrofit library | |
| // 2: Converter to serialize / deserialize json | |
| // 3: An optional interceptor to let you see request and response in your Logcat | |
| // Don't forget to use the latest versions of the libraries above. |
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
| <manifest ... | |
| <uses-permission android:name="android.permission.INTERNET" /> <!-- ADD THIS LINE --> | |
| <application | |
| ... |
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
| @Test | |
| fun `$FUNCTION_NAME$`() { | |
| $END$ | |
| } |
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
| // Adapted from: https://stackoverflow.com/a/67267584/3539594 | |
| private fun listenNavigationChanges() { | |
| val navHost = supportFragmentManager.findFragmentById(R.id.container) as NavHostFragment | |
| val navController = navHost.navController | |
| navController.addOnDestinationChangedListener { _, destination, _ -> | |
| val breadcrumb = navController | |
| .backQueue | |
| .map { |
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
| The first command uninstalls updates and clears data. | |
| The second command uninstalls the system app all together. | |
| Run commands in this order to get rid of YouTube forever. | |
| -- | |
| adb uninstall com.google.android.youtube | |
| adb shell pm uninstall --user 0 com.google.android.youtube |
OlderNewer