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
| export ANDROID_HOME=/Users/devrath/Library/Android/sdk | |
| export PATH=$PATH:$ANDROID_HOME/emulator | |
| export PATH=$PATH:$ANDROID_HOME/platform-tools | |
| export PATH=$PATH:$ANDROID_HOME/tools | |
| export PATH=$PATH:$ANDROID_HOME/tools/bin |
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
| adb command not found |
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
| /Users/devrath/Library/Android/sdk |
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
| Folder Details: Parent Folder | |
| Folder Details: Software's | |
| Folder Details: Movie's | |
| File Details: Jurassic Park | |
| Folder Details: Category drama movies | |
| Folder Details: Game's |
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
| public class CategoryDramaMoviesFolder implements FolderDetailsComponent { | |
| @Override | |
| public void printFolderDetails() { | |
| System.out.println("Folder Details: Category drama movies"); | |
| } | |
| } |
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
| class BreakingNewsFragment : Fragment(R.layout.fragment_breaking_news) { | |
| private val viewModel: BreakingNewsViewModel by viewModels() | |
| override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |
| super.onViewCreated(view, savedInstanceState) | |
| val binding = FragmentBreakingNewsBinding.bind(view) | |
| val newsArticleAdapter = NewsArticleListAdapter( | |
| onItemClick = { article -> |
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
| class FileHelper { | |
| companion object { | |
| // From RAW folder | |
| fun retrieveTextFromResources(context: Context, resourceId: Int): String { | |
| return context.resources.openRawResource(resourceId).use { inputStream -> | |
| // Here we get reference to input stream | |
| inputStream.bufferedReader().use { bufferedReader -> | |
| // Here we get reference to buffered reader | |
| bufferedReader.readText() | |
| } |
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
| sealed class AppFailure { | |
| /** | |
| * Global Failure classes | |
| * These failures will be used across all over the app including Data Layer, Domain Layer, Framework Layer | |
| */ | |
| class GeneralFailure(var message: String, var errorCode: Int? = null) : AppFailure() | |
| class UnauthorizedFailure(var message: String = "Unauthorized", errorCode: Int? = null) : AppFailure() | |
| class LoginFailure(var message: String = "Unable to login", errorCode: Int? = null) : AppFailure() | |
| class ServerFailure(var message: String = "Unable to connect to the server side", errorCode: Int? = null) : AppFailure() | |
| class NoInternetFailure(var message: String = "Device is not connected to the internet", errorCode: Int? = null) : AppFailure() |
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
| class ProgressTimer( | |
| private val player: Player, | |
| private val positionListener: PositionListener, | |
| @IoDispatcher private val ioDispatcher: CoroutineDispatcher | |
| ) { | |
| companion object { | |
| const val PROGRESS_TRACK_DURATION : Long = 1000 | |
| } |
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
| class ProgressJobTracker( | |
| private val player: Player, | |
| private val positionListener: PositionListener, | |
| @IoDispatcher private val ioDispatcher: CoroutineDispatcher | |
| ) { | |
| companion object { | |
| const val PROGRESS_TRACK_DURATION : Long = 1000 | |
| } |