Skip to content

Set up a Kotlin Multiplatform app by running one command ๐Ÿš€

License

Notifications You must be signed in to change notification settings

doublesymmetry/lynx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

21 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

lynx

Set up a Kotlin Multiplatform app by running one command ๐Ÿš€

What is lynx? ๐Ÿคทโ€โ™€๏ธ

lynx is a command line tool that helps you generate a Kotlin Multiplatform mobile projects.

It's open source and written in Swift.

Install lynx โฌ‡๏ธ

The first thing that we need to do to get started is installing the tool. To do so, you can run the following commands in your terminal:

bash <(curl -Ls https://raw.githubusercontent.com/DoubleSymmetry/lynx/master/install.sh)

Bootstrap your first project ๐Ÿš€

lynx init ProjectName com.yourcomany 
lynx init ProjectName com.yourcomany --use-swiftui # the ios project will be a SwiftUI project

This will create a new app project with the given name using the given bundle identifier/package name.

CLI Options

Arguments:

    name - The name to give the project
    bundleId - The company bundle prefix to use (i.e. com.doublesymmetry)

Options:
    --use-swiftui [default: false] - Whether the generated iOS project should use SwiftUI
    --use-compose (coming soon) [default: false] - Whether the generated Android project should use Jetpack Compose
    --template [optional] - A third party template to use instead - options are: kampkit

Updating lynx โœจ

Same as the install instructions, the binary will be overriden.