Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

teogor/stitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

229 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Stitch Logo

Stitch πŸͺ‘

Effortlessly Sew Your Room Persistence Layer Together

License Maven Central API Profile


Tired of writing repetitive Room boilerplate code? Stitch is a Kotlin compiler plugin that automatically generates Repositories, Repository Implementations, and Operations based on your Room DAOs and entities.

πŸš€ Quick Start

1. Apply the Plugin

Add the following to your root build.gradle.kts:

plugins {
    id("dev.teogor.stitch") version "1.0.0-alpha02"
}

And in your module's build.gradle.kts:

plugins {
    id("dev.teogor.stitch")
}

stitch {
    generatedPackageName = "com.your.app.generated"
}

2. Annotate your DAO

@Dao
interface UserDao {
    @Query("SELECT * FROM User")
    fun getAllUsers(): Flow<List<User>>
}

Stitch will automatically generate a UserRepository and its implementation for you!

✨ Key Features

  • πŸ› οΈ Automatic Code Generation: Generates Repositories and Operations from Room components.
  • πŸ“¦ KMP Ready: Full support for Kotlin Multiplatform projects and Room3.
  • πŸ’‰ DI Integration: Seamlessly integrates with Metro and other DI frameworks.
  • πŸ”„ Asynchronous Agility: Built-in support for Coroutines and Flow.
  • 🧩 Customizable: Fine-tune package names, suffixes, and more via Gradle DSL.

πŸ“š Documentation

For detailed guides and reference, visit our Documentation Site.

🩷 Support the Project

  • ⭐ Star this repository to show your support!
  • πŸ‘€ Follow teogor for more open-source tools.
  • 🀝 Sponsor me to help maintain this project.

πŸ“„ License

Copyright 2024 teogor (Teodor Grigor)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

πŸͺ‘ Stitch handles the Room boilerplate, including automatic generation of repositories, dependency injection integration, and flexible customizations.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Contributors