👋 A common toolkit (utils) ⚒️ built to help you further reduce Kotlin boilerplate code and improve development efficiency. Do you think 'kotlin-stdlib' or 'android-ktx' is not sweet enough? You need this! 🍭

Overview

Toolkit [ 🚧 Work in progress 👷 🔧️ 🚧 ]

Snapshot version:
repositories {
  maven("https://s01.oss.sonatype.org/content/repositories/snapshots")
}

dependencies {
  implementation("com.meowool.toolkit:sweekt:1.24-SNAPSHOT")
}

The document has not been written.

For more details please refer to kdoc, and the usage please refer to the directory related to test:

  1. CommonTest
  2. JvmTest
Comments
  • Update Gradle Wrapper to 7.5.1

    Update Gradle Wrapper to 7.5.1

    Update Gradle Wrapper to 7.5.1.

    Read the release notes: https://docs.gradle.org/7.5.1/release-notes.html


    The checksums of the Wrapper JAR and the distribution binary have been successfully verified.

    • Gradle release: 7.5.1
    • Distribution (-bin) zip checksum: f6b8596b10cce501591e92f229816aa4046424f3b24d771751b06779d58c8ec4
    • Wrapper JAR Checksum: 91a239400bb638f36a1795d8fdf7939d532cdc7d794d1119b7261aac158b1e60

    You can find the reference checksum values at https://gradle.org/release-checksums/


    🤖 This PR has been created by the Update Gradle Wrapper action.

    Need help? 🤔

    If something doesn't look right with this PR please file an issue here.

    gradle-wrapper versions 
    opened by github-actions[bot] 1
  • Update Gradle Wrapper to 7.5

    Update Gradle Wrapper to 7.5

    Update Gradle Wrapper to 7.5.

    Read the release notes: https://docs.gradle.org/7.5/release-notes.html


    The checksums of the Wrapper JAR and the distribution binary have been successfully verified.

    • Gradle release: 7.5
    • Distribution (-bin) zip checksum: cb87f222c5585bd46838ad4db78463a5c5f3d336e5e2b98dc7c0c586527351c2
    • Wrapper JAR Checksum: 91a239400bb638f36a1795d8fdf7939d532cdc7d794d1119b7261aac158b1e60

    You can find the reference checksum values at https://gradle.org/release-checksums/


    🤖 This PR has been created by the Update Gradle Wrapper action.

    Need help? 🤔

    If something doesn't look right with this PR please file an issue here.

    gradle-wrapper versions 
    opened by github-actions[bot] 1
  • Update Gradle Wrapper to 7.4.2

    Update Gradle Wrapper to 7.4.2

    Update Gradle Wrapper to 7.4.2.

    Read the release notes: https://docs.gradle.org/7.4.2/release-notes.html


    The checksums of the Wrapper JAR and the distribution binary have been successfully verified.

    • Gradle release: 7.4.2
    • Distribution (-bin) zip checksum: 29e49b10984e585d8118b7d0bc452f944e386458df27371b49b4ac1dec4b7fda
    • Wrapper JAR Checksum: 575098db54a998ff1c6770b352c3b16766c09848bee7555dab09afc34e8cf590

    You can find the reference checksum values at https://gradle.org/release-checksums/


    🤖 This PR has been created by the Update Gradle Wrapper action.

    Need help? 🤔

    If something doesn't look right with this PR please file an issue here.

    gradle-wrapper versions 
    opened by github-actions[bot] 0
  • Update Gradle Wrapper to 7.4.1

    Update Gradle Wrapper to 7.4.1

    Update Gradle Wrapper to 7.4.1.

    Read the release notes: https://docs.gradle.org/7.4.1/release-notes.html


    The checksums of the Wrapper JAR and the distribution binary have been successfully verified.

    • Gradle release: 7.4.1
    • Distribution (-bin) zip checksum: e5444a57cda4a95f90b0c9446a9e1b47d3d7f69057765bfb54bd4f482542d548
    • Wrapper JAR Checksum: 575098db54a998ff1c6770b352c3b16766c09848bee7555dab09afc34e8cf590

    You can find the reference checksum values at https://gradle.org/release-checksums/


    🤖 This PR has been created by the Update Gradle Wrapper action.

    Need help? 🤔

    If something doesn't look right with this PR please file an issue here.

    gradle-wrapper versions 
    opened by github-actions[bot] 0
  • Update Gradle Wrapper to 7.4

    Update Gradle Wrapper to 7.4

    Update Gradle Wrapper to 7.4.

    Read the release notes: https://docs.gradle.org/7.4/release-notes.html


    The checksums of the Wrapper JAR and the distribution binary have been successfully verified.

    • Gradle release: 7.4
    • Distribution (-bin) zip checksum: 8cc27038d5dbd815759851ba53e70cf62e481b87494cc97cfd97982ada5ba634
    • Wrapper JAR Checksum: 575098db54a998ff1c6770b352c3b16766c09848bee7555dab09afc34e8cf590

    You can find the reference checksum values at https://gradle.org/release-checksums/


    🤖 This PR has been created by the Update Gradle Wrapper action.

    Need help? 🤔

    If something doesn't look right with this PR please file an issue here.

    gradle-wrapper versions 
    opened by github-actions[bot] 0
  • Update Gradle Wrapper to 7.3.3

    Update Gradle Wrapper to 7.3.3

    Update Gradle Wrapper to 7.3.3.

    Read the release notes: https://docs.gradle.org/7.3.3/release-notes.html


    The checksums of the Wrapper JAR and the distribution binary have been successfully verified.

    • Gradle release: 7.3.3
    • Distribution (-bin) zip checksum: b586e04868a22fd817c8971330fec37e298f3242eb85c374181b12d637f80302
    • Wrapper JAR Checksum: 33ad4583fd7ee156f533778736fa1b4940bd83b433934d1cc4e9f608e99a6a89

    You can find the reference checksum values at https://gradle.org/release-checksums/


    🤖 This PR has been created by the Update Gradle Wrapper action.

    Need help? 🤔

    If something doesn't look right with this PR please file an issue here.

    gradle-wrapper versions 
    opened by github-actions[bot] 0
  • Update Gradle Wrapper to 7.3.2

    Update Gradle Wrapper to 7.3.2

    Update Gradle Wrapper to 7.3.2.

    Read the release notes: https://docs.gradle.org/7.3.2/release-notes.html


    The checksums of the Wrapper JAR and the distribution binary have been successfully verified.

    • Gradle release: 7.3.2
    • Distribution (-bin) zip checksum: 23b89f8eac363f5f4b8336e0530c7295c55b728a9caa5268fdd4a532610d5392
    • Wrapper JAR Checksum: 33ad4583fd7ee156f533778736fa1b4940bd83b433934d1cc4e9f608e99a6a89

    You can find the reference checksum values at https://gradle.org/release-checksums/


    🤖 This PR has been created by the Update Gradle Wrapper action.

    Need help? 🤔

    If something doesn't look right with this PR please file an issue here.

    gradle-wrapper versions 
    opened by github-actions[bot] 0
  • Update Gradle Wrapper to 7.3.1

    Update Gradle Wrapper to 7.3.1

    Update Gradle Wrapper to 7.3.1.

    Read the release notes: https://docs.gradle.org/7.3.1/release-notes.html


    The checksums of the Wrapper JAR and the distribution binary have been successfully verified.

    • Gradle release: 7.3.1
    • Distribution (-bin) zip checksum: 9afb3ca688fc12c761a0e9e4321e4d24e977a4a8916c8a768b1fe05ddb4d6b66
    • Wrapper JAR Checksum: 33ad4583fd7ee156f533778736fa1b4940bd83b433934d1cc4e9f608e99a6a89

    You can find the reference checksum values at https://gradle.org/release-checksums/


    🤖 This PR has been created by the Update Gradle Wrapper action.

    Need help? 🤔

    If something doesn't look right with this PR please file an issue here.

    gradle-wrapper versions 
    opened by github-actions[bot] 0
  • sweekt-compiler cannot be used with compose-compiler

    sweekt-compiler cannot be used with compose-compiler

    When these two compiler plugins are applied at the same time and the priority of sweekt is lower than compose, an error will occur. The simplest solution is that sweekt is applied earlier than compose

    plugins {
        id("com.meowool.sweekt") // must be before the compose or android app
     // id("com.android.application")
        id("org.jetbrains.compose")
    }
    
    opened by chachako 0
  • Update Gradle Wrapper from 6.6.1 to 7.3

    Update Gradle Wrapper from 6.6.1 to 7.3

    Update Gradle Wrapper from 6.6.1 to 7.3.

    Read the release notes: https://docs.gradle.org/7.3/release-notes.html


    The checksums of the Wrapper JAR and the distribution binary have been successfully verified.

    • Gradle release: 7.3
    • Distribution (-bin) zip checksum: de8f52ad49bdc759164f72439a3bf56ddb1589c4cde802d3cec7d6ad0e0ee410
    • Wrapper JAR Checksum: 33ad4583fd7ee156f533778736fa1b4940bd83b433934d1cc4e9f608e99a6a89

    You can find the reference checksum values at https://gradle.org/release-checksums/


    🤖 This PR has been created by the Update Gradle Wrapper action.

    Need help? 🤔

    If something doesn't look right with this PR please file an issue here.

    gradle-wrapper versions 
    opened by github-actions[bot] 0
  • Update Gradle Wrapper to 7.5.1

    Update Gradle Wrapper to 7.5.1

    Update Gradle Wrapper to 7.5.1.

    Read the release notes: https://docs.gradle.org/7.5.1/release-notes.html


    The checksums of the Wrapper JAR and the distribution binary have been successfully verified.

    • Gradle release: 7.5.1
    • Distribution (-bin) zip checksum: f6b8596b10cce501591e92f229816aa4046424f3b24d771751b06779d58c8ec4
    • Wrapper JAR Checksum: 91a239400bb638f36a1795d8fdf7939d532cdc7d794d1119b7261aac158b1e60

    You can find the reference checksum values at https://gradle.org/release-checksums/


    🤖 This PR has been created by the Update Gradle Wrapper action.

    Need help? 🤔

    If something doesn't look right with this PR please file an issue here.

    gradle-wrapper versions 
    opened by github-actions[bot] 1
  • Configure Renovate

    Configure Renovate

    Mend Renovate

    Welcome to Renovate! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin.

    🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged.


    Detected Package Files

    • .github/workflows/deployment.yml (github-actions)
    • .github/workflows/gradle-wrapper-update.yml (github-actions)
    • .github/workflows/gradle-wrapper-validation.yml (github-actions)
    • .github/workflows/ide-plugin-publish.yml (github-actions)
    • .github/workflows/ide-plugin-verification.yml (github-actions)
    • gradle.properties (gradle)
    • settings.gradle.kts (gradle)
    • build.gradle.kts (gradle)
    • library/build.gradle.kts (gradle)
    • plugin/build.gradle.kts (gradle)
    • plugin/compiler/build.gradle.kts (gradle)
    • plugin/compiler-hosted/build.gradle.kts (gradle)
    • plugin/gradle/build.gradle.kts (gradle)
    • plugin/ide/build.gradle.kts (gradle)
    • plugin/ide/integration-testing/gradle.properties (gradle)
    • plugin/ide/integration-testing/settings.gradle.kts (gradle)
    • plugin/ide/integration-testing/build.gradle.kts (gradle)
    • sample/build.gradle.kts (gradle)
    • gradle/wrapper/gradle-wrapper.properties (gradle-wrapper)
    • plugin/ide/integration-testing/gradle/wrapper/gradle-wrapper.properties (gradle-wrapper)

    Configuration

    🔡 Renovate has detected a custom config for this PR. Feel free to ask for help if you have any doubts and would like it reviewed.

    Important: Now that this branch is edited, Renovate can't rebase it from the base branch any more. If you make changes to the base branch that could impact this onboarding PR, please merge them manually.

    What to Expect

    With your current configuration, Renovate will create 5 Pull Requests:

    Update dependency gradle to v7.5.1
    • Schedule: ["at any time"]
    • Branch name: renovate/gradle-7.x
    • Merge into: main
    • Upgrade gradle to 7.5.1
    Update plugin org.jetbrains.kotlin.jvm to v1.7.21
    • Schedule: ["at any time"]
    • Branch name: renovate/kotlin-monorepo
    • Merge into: main
    • Upgrade org.jetbrains.kotlin.jvm to 1.7.21
    Update actions/checkout action to v3
    • Schedule: ["at any time"]
    • Branch name: renovate/actions-checkout-3.x
    • Merge into: main
    • Upgrade actions/checkout to v3
    Update actions/setup-java action to v3
    • Schedule: ["at any time"]
    • Branch name: renovate/actions-setup-java-3.x
    • Merge into: main
    • Upgrade actions/setup-java to v3
    Update gradle/gradle-build-action action to v2
    • Schedule: ["at any time"]
    • Branch name: renovate/gradle-gradle-build-action-2.x
    • Merge into: main
    • Upgrade gradle/gradle-build-action to v2

    🚸 Branch creation will be limited to maximum 2 per hour, so it doesn't swamp any CI resources or spam the project. See docs for prhourlylimit for details.


    ❓ Got questions? Check out Renovate's Docs, particularly the Getting Started section. If you need any further assistance then you can also request help here.


    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
  • Use the compiler to check if some APIs need to be optimized

    Use the compiler to check if some APIs need to be optimized

    Example:

    val list = listOf(...)
    
    // List<*> instance never be Array<*>
    list.cast<Array<*>>()
    list.castOrNull<Array<*>>()
    
    opened by chachako 0
  • Support union types: https://youtrack.jetbrains.com/issue/KT-13108

    Support union types: https://youtrack.jetbrains.com/issue/KT-13108

    Temporary solving https://youtrack.jetbrains.com/issue/KT-13108#focus=Comments-27-5474923.0-0

    fun save(data: Union4<String, Int, Long, List<String>>): UnionType<Boolean, String> {
      var result = Result(false)
    
      when {
        data is String -> { ... }
        data is Int -> { ... }
        data is Long -> { ... }
        data is List<String> -> { ... }
        data is Boolean -> { ... } // ERROR: Never this type
      }
    
    - return result // ERROR: Can only return 'Boolean' or 'String'
    + return result.value // OK: 'Boolean'
    + return result.value.toString() // OK: 'String'
    }
    
    fun main() {
      save("Username") // OK: 'String'
      save(50) // OK: 'Int'
      save(1000000L) // OK: 'Long'
      save(listOf("A", "B")) // OK: 'List<String>'
      save(listOf("A", "B", 50)) // ERROR: Only 'List<String>' type are allowed
    
      val any: Any = getAnyData()
      save(any) // ERROR: 'Any' type not allowed
    }
    

    Diagnosis:

    TypeChecker
    CallChecker
    `is` & `as` Checker
    
    opened by chachako 0
  • Support suspend property https://youtrack.jetbrains.com/issue/KT-15555

    Support suspend property https://youtrack.jetbrains.com/issue/KT-15555

    https://youtrack.jetbrains.com/issue/KT-15555

    var property: Any
      get() = suspendGetter {
        // suspended
      }
      set(value) = suspendSetter {
        // suspended
      }
    

    Diagnosis:

    @SuspendGetter
    @SuspendSetter
    
    opened by chachako 0
Owner
UI/UX and Kotlin lovers trying to get out of the novice village, and I really like making wheels...hahaha
凛
Android-Boilerplate - Base project for android development with new technology

Android-Boilerplate Base project for android development with new technology, in

Muhammad Rizky Arifin 1 Aug 15, 2022
Boilerplate code for implementing MVVM in Android using Jetpack libraries, coroutines, dependency injection and local persistance

MVVM Foundation This projects aims to speed up development of Android apps by providing a solid base to extend Libraries Jetpack Fragment Material3 :

Gabriel Gonzalez 2 Nov 10, 2022
NSErrorKt - A Kotlin Multiplatform Library to improve NSError interop

NSErrorKt A Kotlin Multiplatform Library to improve NSError interop. WARNING: Th

Rick Clephas 30 Nov 23, 2022
A multi module app, for improve knowledges

MultiModuleApp App multimódulos para estudos Aqui existem vários apps simples (1 em cada módulo) e está sendo construído por: App multi módulos Consum

PLINIO DA SILVA ALENCAR 0 Dec 27, 2021
A Addon created to improve experience of playing with Meteor Client

A Addon created to improve experience of playing with Meteor Client

мяучер 14 Nov 7, 2022
Reapp is everything you need to build amazing apps with React: a collection of packages that work together, our UI kit, and a CLI that scaffolds your app and includes a server and build system.

What is it? Reapp is everything you need to build amazing apps with React: a collection of packages that work together, our UI kit, and a CLI that sca

reapp 3.4k Nov 20, 2022
Advancement Utils for Android Developer written in Kotlin

RichUtils About Version: 2.0.0 :: Dreaming Bird (夢魅鳥, Yumemidori) :: Release Note (Eng) : https://blog.uzuki.live/richutils-2-0-0-dreaming-bird-releas

WindSekirun (wind.seo) 169 Nov 13, 2022
JavaScript evaluation from kotlin common code for android & iOS

Mobile Kotlin javascript This is a Kotlin MultiPlatform library that allows you to run JavaScript code from common Kotlin code Table of Contents Featu

IceRock Development 14 Aug 29, 2022
A android platform i.e, App that helps marriage/party halls and individuals to connect to the nearest places where this food could feed those in need and food wastage is minimised

(Muskan- The joy of giving by nature) , a android platform i.e, App that helps marriage/party halls and individuals to connect to the nearest places where this food could feed those in need and food wastage is minimised.

OxVidhi 15 Nov 26, 2022
A Kotlin library for reactive and boilerplate-free SharedPreferences in Android

KPreferences A Kotlin library for reactive and boilerplate-free Shared Preferences in Android. With KPreferences you can use Kotlin's marvelous delega

Mohamad Amin Mohamadi 19 Dec 16, 2020
An Android template project (in Kotlin) with boilerplate and current patterns.

android-starter-v4 An Android template project (in Kotlin) with boilerplate and plumbing, exploring current architecture patterns. A bit too much for

Matthias Urhahn 14 Nov 4, 2022
A fork of our clean architecture boilerplate, this time using the Android Architecture Components

Android Clean Architecture Components Boilerplate Note: This is a fork of our original Clean Architecture Boilerplate, except in this repo we have swi

Buffer 1.3k Jan 3, 2023
An android boilerplate project using clean architecture

Android Clean Architecture Boilerplate Welcome ?? We hope this boilerplate is not only helpful to other developers, but also that it helps to educate

Buffer 3.6k Jan 4, 2023
A fork of our clean architecture boilerplate using the Model-View-Intent pattern

Android Clean Architecture MVI Boilerplate Note: This is a fork of our original Clean Architecture Boilerplate, except in this repo we have switched o

Buffer 974 Dec 29, 2022
Double Open license classification for OSS Review Toolkit (ORT) and other uses.

Double Open Policy Configuration This repository is used to maintain the license classification (license-classifications.yml) created by Double Open.

Double Open 8 Nov 7, 2022
Curations and configuration files for the OSS Review Toolkit.

ORT Config This repository contains configuration files for the OSS Review Toolkit. Content Curations The curations directory contains package curatio

OSS Review Toolkit 9 Dec 8, 2022
Kotlin multiplatform benchmarking toolkit

NOTE: Starting from version 0.3.0 of the library: The library runtime is published to Maven Central and no longer published to Bintray. The Gradle plu

Kotlin 310 Jan 2, 2023
An experimental UI toolkit for generating PowerPoint presentation files using Compose

ComposePPT An experimental UI toolkit for generating PowerPoint presentation files(.pptx) using Compose. Inspired by Glance and Mosaic. Why? This proj

Fatih Giriş 252 Dec 28, 2022
This library provides common speech features for ASR including MFCCs and filterbank energies for Android and iOS.

Kotlin Speech Features Quick Links ?? Introduction This library is a complete port of python_speech_features in pure Kotlin available for Android and

Merlyn Mind 13 Oct 7, 2022