This file contains 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
// MARK: Feature One (No divider) | |
class FeatureOne {} | |
// MARK: - Class Two start (Top divider) | |
class FeatureTwo {} | |
// MARK: Class Two end - (Bottom divider) |
This file contains 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
@Composable | |
fun HomeIndexScreen( | |
viewModel: HomeIndexViewModel, | |
goToBookDetailsScreen: (bookId: Long) -> Unit, | |
goToNoteDetailsScreen: (noteId: Long) -> Unit, | |
goToAddNewReadingScreen: () -> Unit, | |
goToAddNewBookScreen: () -> Unit, | |
goToAuthorsScreen: () -> Unit, | |
goToPublishersScreen: () -> Unit, | |
goToLendAddScreen: () -> Unit, |
This file contains 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
object MoshiUtil { | |
fun getMoshi(): Moshi { | |
return Moshi.Builder() | |
.add(MutableCollectionJsonAdapter.FACTORY) | |
.build() | |
} | |
} | |
inline fun <reified T> String?.getObjFromJson(): T? { | |
if (this == null) return null |
This file contains 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
package com.google.samples.smartlock.sms_verify; | |
import android.content.Context; | |
import android.content.ContextWrapper; | |
import android.content.pm.PackageManager; | |
import android.content.pm.Signature; | |
import android.util.Base64; | |
import android.util.Log; | |
import java.nio.charset.StandardCharsets; |
This file contains 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
/** | |
* This component used [FusedLocationProviderClient] to provide location update. | |
* This is a Lifecycle-Aware Component. So it automatically start and stop location monitoring. | |
* | |
* Version: 1.0.220105 | |
* | |
* Documentation about Lifecycle-Aware Component: | |
* [Lifecycle-Aware Component](https://developer.android.com/topic/libraries/architecture/lifecycle) | |
* | |
* Notes: |
This file contains 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
#!/bin/sh | |
# ---------------------------------------------------------------- | |
# This script will fetch the latest version from the phpMyAdmin | |
# website and do all the basic configurations for you. | |
# Enjoy. | |
# | |
# Copyright (c) 2021 Md. Mahmudul Hasan Shohag (imaginativeworld.org) | |
# This free software comes with ABSOLUTELY NO WARRANTY and | |
# is distributed under GNU GPL v3 license. |
This file contains 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
carousel.carouselListener = object : CarouselListener { | |
override fun onCreateViewHolder( | |
layoutInflater: LayoutInflater, | |
parent: ViewGroup | |
): ViewBinding? { | |
// Here, our XML layout file name is custom_item_layout.xml. So our view binding generated class name is CustomItemLayoutBinding. | |
return CustomItemLayoutBinding.inflate(layoutInflater, parent, false) | |
} | |
override fun onBindViewHolder( |
This file contains 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
import android.content.ContentUris | |
import android.content.Context | |
import android.database.Cursor | |
import android.net.Uri | |
import android.os.Environment | |
import android.provider.DocumentsContract | |
import android.provider.MediaStore | |
/** | |
* Real Path Utility class for Android. |
This file contains 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
allprojects { | |
repositories { | |
// … | |
maven { url 'https://jitpack.io' } | |
} | |
} |
NewerOlder