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 LazyList() { | |
LazyColumn { | |
items(5) { | |
Item() | |
} | |
} | |
} |
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
@Entity | |
data class Entity( | |
@PrimaryKey | |
val id: Int, | |
val attributes: String, | |
) | |
@Entity | |
data class Entity2( | |
@PrimaryKey |
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
@Entity | |
data class Entity( | |
@PrimaryKey | |
val id: Int, | |
val attributes: String, | |
) | |
@Entity | |
data class Entity2( | |
@PrimaryKey |
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
@Dao | |
interface RoomDao { | |
@Query("select * from table") | |
suspend fun getAllData(): PagingSource<Int, Entity> | |
} |
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
@Dao | |
interface RoomDao { | |
@Insert | |
suspend fun insertData(entity: Entity) | |
@Query("select * from table") | |
suspend fun getAllData(): List<Entity> | |
} |
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.anangkur.karumishotplayground | |
import android.util.Log | |
import com.karumi.shot.ScreenshotTest | |
import org.junit.Rule | |
import org.junit.Test | |
import androidx.test.ext.junit.rules.activityScenarioRule | |
class MainActivityScreenTest : ScreenshotTest { | |
@get:Rule |
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 { DeviceDecorator } from "@storybook/native-addon"; | |
export const decorators = [DeviceDecorator]; |
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
module.exports = { | |
stories: ["../stories/*.stories.jsx", "../stories/*.stories.playground.jsx"], | |
addons: [ | |
"@storybook/addon-docs", | |
"@storybook/addon-controls", | |
"@storybook/native-addon/dist/register.js" | |
] | |
}; |
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
const { generateStories } = require("@storybook/native"); | |
const { pascalCase } = require("change-case"); | |
const components = [ | |
{ | |
name: "button", | |
}, | |
]; | |
const promises = components.map(async (component) => { |
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
class MainActivity : AppCompatActivity() { | |
companion object { | |
const val QUERY_COMPONENT = "component" | |
const val COMPONENT_BUTTON = "button" | |
} | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) |
NewerOlder