Skip to content

Commit

Permalink
Merge pull request #3 from Headbright/add-feedback-client
Browse files Browse the repository at this point in the history
Add macOS, watchOS and tvOS targets
  • Loading branch information
kkostov authored May 19, 2024
2 parents 300e2ec + d017dbb commit a0c88cb
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 16 deletions.
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ Currently supported platforms are:
- Kotlin/JVM
- Android
- iOS
- watchOS
- tvOS
- macOS


## Getting started
Expand Down Expand Up @@ -49,17 +52,6 @@ client.sendFeedback("This is a test feedback from Feedback SDK for Kotlin Multip

The following are notes for local development of the SDK and publishing updates.

Create or update gradle.properties file in the root of the project with the following content:

```
signing.keyId=...
signing.password=...
signing.secretKeyRingFile=....
mavenCentralUsername=...
mavenCentralPassword=...
```

DO NOT CHECK THIS IN!

Create or update gradle.properties file in the root of the project.

To publish a new version, run `./gradlew publishAndReleaseToMavenCentral --no-configuration-cache`
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {

allprojects {
group = "com.feedbackbulb"
version = "0.0.3"
version = "0.0.4"
}

nexusPublishing {
Expand Down
39 changes: 36 additions & 3 deletions core-sdk/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import com.vanniktech.maven.publish.SonatypeHost
//import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework

plugins {
alias(libs.plugins.kotlinMultiplatform)
Expand All @@ -19,11 +20,43 @@ kotlin {
}
}
}


// val xcframeworkName = "FeedbackbulbCoreSDK"
// val xcf = XCFramework(xcframeworkName)
//
// listOf(
// iosX64(),
// iosArm64(),
// iosSimulatorArm64(),
// watchosX64(),
// watchosArm64(),
// watchosSimulatorArm64(),
// macosX64(),
// macosArm64(),
// tvosX64(),
// tvosArm64(),
// tvosSimulatorArm64(),
// ).forEach {
// it.binaries.framework {
// baseName = xcframeworkName
// binaryOption("bundleId", "com.feedbackbulb.${xcframeworkName}")
// xcf.add(this)
// isStatic = true
// }
// }

listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
iosSimulatorArm64(),
watchosX64(),
watchosArm64(),
watchosSimulatorArm64(),
macosX64(),
macosArm64(),
tvosX64(),
tvosArm64(),
tvosSimulatorArm64(),
).forEach {
it.binaries.framework {
baseName = "core-sdk"
Expand Down Expand Up @@ -72,7 +105,7 @@ mavenPublishing {
coordinates(
groupId = "com.feedbackbulb",
artifactId = "core-sdk",
version = "0.0.3"
version = "0.0.4"
)

// Configure POM metadata for the published artifact
Expand Down

0 comments on commit a0c88cb

Please sign in to comment.