Giter VIP home page Giter VIP logo

05nelsonm / kotlin-components Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 468 KB

Build & publishing tools for several Kotlin Multiplatform Libraries

Home Page: https://kotlin-components.matthewnelson.io

License: Apache License 2.0

Kotlin 96.70% Shell 3.30%
kotlin kotlin-android kotlin-multiplatform kotlin-multiplatform-library kotlin-multiplatform-mobile android android-library android-libraries android-lib android-libs

kotlin-components's Introduction

kotlin-components

A central repository utilized within several other Kotlin Multiplatform projects as a git submodule to supply build and publishing tools.

A full list of other kotlin-components projects and their supported Kotlin Multiplatform frameworks can be found HERE

kotlin-components's People

Contributors

05nelsonm avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

woren

kotlin-components's Issues

Publish script for darwin host should build JVM + JS

publish.sh --host darwin only builds ios + macos + tvos + watchos KMP_TARGETS. It should also build JVM and JS targets so that tests are run to ensure any platform specific code for those are working properly.

Move dependencies to `/kotlin`

Move dependencies to to the /kotlin directory in their own individual files. This will help with CI caching, and make it a bit more pleasant to work with as there will be no more need utilize imports.

Add `KmpTarget.*.ALL_DEFAULT` shortcuts

Instead of having to declare each individual target:

kmpConfiguration {
    setupMultiplatform(targets=
        setOf(
            KmpTarget.Jvm.Jvm.DEFAULT,
            KmpTarget.NonJvm.JS.DEFAULT,
            // ...
        )
    )
}

Add the ability to use the + operator to add all targets for a given platform

kmpConfiguration {
    setupMultiplatform(targets=
        setOf(
            KmpTarget.Jvm.Jvm.DEFAULT,
            KmpTarget.NonJvm.JS.DEFAULT,
        ) +
        KmpTarget.NonJvm.Native.Unix.Darwin.Ios.ALL_DEFAULT     +
        KmpTarget.NonJvm.Native.Unix.Darwin.Macos.ALL_DEFAULT   +
        KmpTarget.NonJvm.Native.Unix.Darwin.Tvos.ALL_DEFAULT    +
        KmpTarget.NonJvm.Native.Unix.Darwin.Watchos.ALL_DEFAULT +
        KmpTarget.NonJvm.Native.Unix.Linux.ALL_DEFAULT          +
        KmpTarget.NonJvm.Native.Mingw.ALL_DEFAULT,

        commonMainSourceSet = {
            dependencies {
                // ...
            }
        }
    )
}

Common source set dependencies should be added after setting up source sets

Currently, if applying dependencies via

setupModule(
    // ...
    commonMainSourceSet = {
        dependencies {
            // my common dependencies
        }
    }
)

the dependencies are not propagated to the intermediary source sets, because the commonMainSourceSet argument is invoked before anything is setup. The invocation should come after setting up intermediary source sets.

Refactor `kmp` pulgin

kmp plugin needs some work.

  • Source set re-naming
  • Fix support for all targets (jetbrains hoodwinked everyone and removed iosArm32 from the ios shortcut target)
  • Fix iosSimulator issue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.