Search Gradle plugins

Configures a Kotlin Multiplatform project to use Firebase via cmp-firebase. Adds the cmp-firebase dependency at a matching version, forces isStatic=true on every Apple framework (Firebase's SwiftPM products are static libraries, so a dynamic framework compiles and links but crashes at launch), and fails the build with an actionable message when Kotlin is below 2.4.20, where the transitive SwiftPM resolution that pulls firebase-ios-sdk does not exist and the build otherwise dies with an unrelated-looking "ld: framework 'FirebaseCore' not found". Documentation: https://github.com/MobileByteLabs/KmpToolkit/blob/dev/cmp-firebase-gradle-plugin/README.md

https://github.com/MobileByteLabs/KmpToolkit/blob/dev/cmp-firebase-gradle-plugin/README.md

Sources: https://github.com/MobileByteLabs/KmpToolkit

Version 3.5.24 (latest)

Created 10 September 2026.

Configures a Kotlin Multiplatform project to use Firebase via cmp-firebase. Adds the cmp-firebase dependency at a matching version, forces isStatic=true on every Apple framework (Firebase's SwiftPM products are static libraries, so a dynamic framework compiles and links but crashes at launch), and fails the build with an actionable message when Kotlin is below 2.4.20, where the transitive SwiftPM resolution that pulls firebase-ios-sdk does not exist and the build otherwise dies with an unrelated-looking "ld: framework 'FirebaseCore' not found". Documentation: https://github.com/MobileByteLabs/KmpToolkit/blob/dev/cmp-firebase-gradle-plugin/README.md

Add this plugin to your build using the plugins DSL:

plugins {
  id("io.github.mobilebytelabs.firebase") version "3.5.24"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("io.github.mobilebytelabs.firebase:io.github.mobilebytelabs.firebase.gradle.plugin:3.5.24")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("io.github.mobilebytelabs.firebase")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("io.github.mobilebytelabs.firebase:io.github.mobilebytelabs.firebase.gradle.plugin:3.5.24")
      }
    }
    
    apply(plugin = "io.github.mobilebytelabs.firebase")
  • Applying plugins to all subprojects .