Bradleycorn
04/11/2025, 8:00 PMaddGithubPackagesRepository()
method from my plugin, like this:
class UmbrellaModuleConventionPlugin: Plugin<Project> {
override fun apply(target: Project) = with(target) {
with(pluginManager) {
apply(kmpLibs.plugin("touchlab.kmmbridge"))
apply(kmpLibs.plugin("kotlin.cocoapods"))
}
extensions.configure<KotlinMultiplatformExtension>(::configureCocoapods)
addGithubPackagesRepository()
...
}
}
But when I update to 1.2.1, I now get an error:
Unresolved reference: addGithubPackagesRepositoryThe line above that applies the kmmbridge plugin
apply(kmpLibs.plugin("touchlab.kmmbridge"))
is using the "github" version of the plugin:
touchlab-kmmbridge = { id="co.touchlab.kmmbridge.github", version.ref="touchlab-kmmBridge"}
And the gradle config for my plugin module, is using the kmmbridge gradle plugin:
dependencies {
compileOnly(kmpLibs.android.gradlePlugin)
compileOnly(kmpLibs.kotlin.gradlePlugin)
compileOnly(kmpLibs.touchlab.kmmbridge.gradlePlugin)
}
touchlab-kmmbridge-gradlePlugin = { group="co.touchlab.kmmbridge", name="kmmbridge", version.ref= "touchlab-kmmBridge" }
I'm not sure where I'm going wrong???Bradleycorn
04/11/2025, 8:01 PMkpgalligan
04/11/2025, 8:04 PMBradleycorn
04/11/2025, 8:09 PMHave you tried the github version in both?I'm confused? Do you mean updating this guy to use the github version?
touchlab-kmmbridge-gradlePlugin = { group="co.touchlab.kmmbridge", name="kmmbridge", version.ref= "touchlab-kmmBridge" }
Bradleycorn
04/11/2025, 8:14 PMgroup="co.touchlab.kmmbridge.github", name="kmmbridge"
which failed miserably.
I just now tried group="co.touchlab.kmmbridge", name="kmmbridge-github"
and it works.
Ok, nothing to see here ... Everyone move along ...