Skip to content

Instantly share code, notes, and snippets.

View kevinah95's full-sized avatar
🇨🇷

Kevin A. Hernández Rostrán kevinah95

🇨🇷
View GitHub Profile
@kevinah95
kevinah95 / gradle.properties
Last active October 31, 2025 00:53
KMP Optimization
#Kotlin
#Ref: https://kotlinlang.org/docs/native-improving-compilation-time.html#try-incremental-compilation-of-klib-artifacts
kotlin.incremental.native=true
#Gradle
#Ref: https://touchlab.co/optimizing-gradle-builds-in-Multi-module-projects#enable-gradle-parallel-execution
org.gradle.parallel=true
#Android
#If all dependencies are on AndroidX, we can safely disable Jetifier to improve build performance.
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
package io.github.laChanchita
import com.google.auth.oauth2.GoogleCredentials
import com.google.cloud.firestore.Firestore
import com.google.cloud.firestore.FirestoreOptions
import com.google.firebase.FirebaseApp
import com.google.firebase.FirebaseOptions
import com.google.firebase.cloud.FirestoreClient
import com.google.firebase.database.DataSnapshot
plugins {
alias(libs.plugins.sqldelight)
}
...
sqldelight {
databases {
create("Database") {
packageName.set("io.github.kevinah95")

Imagenes de referencia

Colores

Color(0xFFEADDFF) Color(0xFFD0BCFF) Color(0xFFB69DF8)

package io.github.kevinah95.unit01.l02_repaso
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.hasTestTag
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
using AutoMapper;
using AutoMapper.Internal;
using MappingObjects.Models;
namespace MappingObjects.Mappers;
public static class CartToSummaryMapper
{
public static MapperConfiguration GetMapperConfiguration()
{
builder.Services.AddSwaggerGen(opt =>
{
opt.SwaggerDoc("v1", new OpenApiInfo { Title = "MyAPI", Version = "v1" });
opt.AddSecurityDefinition("Bearer", new OpenApiSecurityScheme
{
In = ParameterLocation.Header,
Description = "Please enter token",
Name = "Authorization",
Type = SecuritySchemeType.Http,
BearerFormat = "JWT",
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace APIConBD.Entities;
[Table("Todos")]
public partial class Todo
{
[Key]
public int Id { get; set; }