Skip to content

Commit

Permalink
Test new JetBrains SPM integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
pablichjenkov committed May 29, 2024
1 parent ad92a0e commit bde6701
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 7 deletions.
6 changes: 6 additions & 0 deletions auth-firebase/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,9 @@ android {
targetCompatibility = JavaVersion.VERSION_17
}
}

compose {
kotlinCompilerPlugin.set(dependencies.compiler.forKotlin("1.9.23"))
kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.9.24")
//kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.9.24-spm")
}
6 changes: 6 additions & 0 deletions auth-supabase/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,9 @@ android {
targetCompatibility = JavaVersion.VERSION_17
}
}

compose {
kotlinCompilerPlugin.set(dependencies.compiler.forKotlin("1.9.23"))
kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.9.24")
//kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.9.24-spm")
}
3 changes: 3 additions & 0 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ compose {
experimental {
web.application {}
}
kotlinCompilerPlugin.set(dependencies.compiler.forKotlin("1.9.23"))
kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.9.24")
//kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.9.24-spm")
}

/*compose.desktop {
Expand Down
6 changes: 6 additions & 0 deletions flavor-theme-a/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,9 @@ android {
targetCompatibility = JavaVersion.VERSION_17
}
}

compose {
kotlinCompilerPlugin.set(dependencies.compiler.forKotlin("1.9.23"))
kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.9.24")
//kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.9.24-spm")
}
6 changes: 6 additions & 0 deletions flavor-theme-b/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,9 @@ android {
targetCompatibility = JavaVersion.VERSION_17
}
}

compose {
kotlinCompilerPlugin.set(dependencies.compiler.forKotlin("1.9.23"))
//kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.9.24-spm")
kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.9.24")
}
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ macaoAmadeusApi = "0.3.4"
macaoComponentToolkit = "0.6.10-rc02"
macaoAuthFirebase = "0.0.1-dev"
koinCore = "3.6.0-wasm-alpha2"
kotlin = "1.9.23"
kotlin = "1.9.24-spm"
agp = "8.1.4"
composeAndroidCompiler = "1.6.7"
composePlugin = "1.6.10-rc01"
composePlugin = "1.6.10-rc03"
androidxActivityCompose = "1.9.0"
kamelImage = "0.9.4"
kotlinxCoroutines = "1.8.0"
Expand Down
7 changes: 7 additions & 0 deletions iOSDemoApp/iOSDemoApp/MacaoDemoApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ struct MacaoDemoApp: App {
let accountPlugin: AccountPlugin
let iosBridge: IosBridge

let iob = IosBridge(
accountPlugin: FirebaseAccountPlugin(
firebaseAuthKmpWrapper: FirebaseAuthKmpWrapperImpl()
),
name2: Int32(0)
)

// register app delegate for Firebase setup
// @UIApplicationDelegateAdaptor(MacaoDemoAppDelegate.self) var delegate

Expand Down
11 changes: 6 additions & 5 deletions iOSDemoApp/iOSDemoAppPackage/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ let package = Package(
.package(url: "https://github.com/pablichjenkov/firebase-kmp.git", branch: "composeApp"),
],
targets: [
.binaryTarget(
name: "composeApp",
path: "../../composeApp/build/XCFrameworks/debug/composeApp.xcframework"
),
// It wont be needed after JetBrains releases SPM BuildPhase task integration
// .binaryTarget(
// name: "composeApp",
// path: "../../composeApp/build/XCFrameworks/debug/composeApp.xcframework"
// ),
.target(
name: "iOSDemoAppPackage",
dependencies: [
.byName(name: "composeApp"),
//.byName(name: "composeApp"), // It wont be needed after JetBrains releases SPM BuildPhase task integration
.product(
name: "FirebaseAuth",
package: "firebase-ios-sdk"
Expand Down
6 changes: 6 additions & 0 deletions macao-sdk-koin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,9 @@ android {
targetCompatibility = JavaVersion.VERSION_17
}
}

compose {
kotlinCompilerPlugin.set(dependencies.compiler.forKotlin("1.9.23"))
kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.9.24")
//kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.9.24-spm")
}
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pluginManagement {
gradlePluginPortal()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven("https://packages.jetbrains.team/maven/p/mpp/dev")
mavenLocal()
}
}
Expand All @@ -24,6 +25,7 @@ dependencyResolutionManagement {
mavenCentral()
maven(url = "https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven(url = "https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental")
maven("https://packages.jetbrains.team/maven/p/mpp/dev")
mavenLocal()
}
}

0 comments on commit bde6701

Please sign in to comment.