Skip to content

v3.0.0

Choose a tag to compare

@stackotter stackotter released this 27 Nov 04:51
· 3 commits to main since this release
0f47900

What's Changed

It has been 4 years since the last proper Swift Bundler release, and a lot has changed since then!

New CLI name: sbun

The Swift Bundler CLI's canonical name is now sbun. The prebuilt installers mentioned below all install an sbun alias. The existing swift-bundler spelling is still supported, but we encourage people to transition away from it.

This makes using Swift Bundler significantly more ergonomic.

Expanded platform support

Swift Bundler 3.0.0 brings support for iOS, Windows, Linux, and Android! Along with SwiftCrossUI, this makes it possible to build and ship apps to every major platform!

Easier installation

Each Swift Bundler release now comes with a set of prebuilt distributions and installers for macOS, Linux, and Windows. This significantly improves the installation experience, because Swift Bundler can take a while to build from source.

These prebuilts also make it possible to install Swift Bundler with a single command in any environment.

macOS / Linux

curl -fsSL https://sbun.dev/install.sh | sh

Windows

powershell -c "irm sbun.dev/install.ps1|iex"

Hot reloading

3.0.0 brings a new hot reloading system with support for macOS and Linux. This system requires a UI framework with support for Swift Bundler's hot reloading protocol. SwiftCrossUI comes with support for that out of the box! See SwiftCrossUI's hot reloading docs to get started.

Powerful configuration system

Swift Bundler's configuration system is more powerful than it has ever been thanks to conditional overlays which enable platform-specific configuration and incremental adoption of features from new Swift Bundler versions without dropping support for older Swift Bundler versions (particularly important for libraries).

And much much more

  • Unified iOS/Android device management commands: sbun device ls, sbun run --device <device-name>, etc
  • Unified iOS/Android simulator/emulator management commands: sbun simulator ls, sbun simulator boot <simulator-name-or-id>, sbun run --simulator <simulator-name-or-id>, etc
  • Deep platform specific customisation: configure Windows application manifests, Windows WiX installer elements, Android SDK settings, etc
  • Java/Kotlin source code support when targeting Android: just configure an android.java_directory or an android.kotlin_directory for your Java/Kotlin-containing target, and Swift Bundler handles the rest
  • etc

What's next?

The next few improvements that we're working on are:

  • Support for shipping to the App Store and the Google Play Store
  • Improved hot reloading incremental build speeds
  • An improved templating system (which is already in the works)

Merged PRs

Note that this list of PRs doesn't even include all of the improvements that we've made. I only started PRing my own changes consistently about a year ago, so a lot of changes just went straight to the main branch.

See 100+ merged PRs

New Contributors

Full Changelog: v2.0.7...v3.0.0