Skip to content

Commit 266a647

Browse files
buenaflorgetsentry-botmarandaneto
committed
chore: update readme (#56)
* update sdk version * update cocoa version * add updateReadme task * Format code * surround with trycatch when reading the file * Format code * update podspec * use latest placeholder and track cocoa version manually * remove updateReadme from format workflow * re-add make format * replace placeholder * update readme * Update sentry-kotlin-multiplatform/sentry_kotlin_multiplatform.podspec * Update .github/workflows/format.yml --------- Co-authored-by: Sentry Github Bot <[email protected]> Co-authored-by: Manoel Aranda Neto <[email protected]>
1 parent b02a5f0 commit 266a647

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

.github/workflows/format.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
2626
restore-keys: |
2727
${{ runner.os }}-gradle-
28-
2928
- name: Make format
3029
run: make format
3130

README.md

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
This project is an experimental SDK for Kotlin Multiplatform.
1212
This SDK is a wrapper around different platforms such as JVM, Android, iOS, macOS, watchOS, tvOS that can be used on Kotlin Multiplatform.
1313

14+
| Packages | Maven Central
15+
|-----------------------------------------| -------
16+
| sentry-kotlin-multiplatform | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-kotlin-multiplatform/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-kotlin-multiplatform)
17+
1418
## Supported Platforms
1519

1620
| Target Platform | Target preset |
@@ -24,36 +28,29 @@ This SDK is a wrapper around different platforms such as JVM, Android, iOS, macO
2428

2529
## Configure Repository
2630

27-
The Kotlin Multiplatform SDK is available only on `mavenLocal`. You can declare this repository in your build script as follows:
31+
The Kotlin Multiplatform SDK is available on `mavenCentral`. You can declare this repository in your build script as follows:
2832

2933
```gradle
3034
repositories {
31-
// Currently only supported locally
32-
mavenLocal()
35+
mavenCentral()
3336
}
3437
```
3538

36-
and then run:
37-
38-
```bash
39-
./gradlew publishToMavenLocal
40-
```
41-
4239
## Add dependency
4340
For a multiplatform project, you need to add the sentry-kotlin-multiplatform artifact to the `commonMain` source set:
4441

4542
```Kotlin
4643
val commonMain by getting {
4744
dependencies {
48-
api("io.sentry:sentry-kotlin-multiplatform:0.0.1")
45+
api("io.sentry:sentry-kotlin-multiplatform:<version>")
4946
}
5047
}
5148
```
5249

5350
### Cocoa
5451

55-
If you are targeting Apple platforms (iOS, macOS, watchOS, tvOS), then you need to use CocoaPods to include [Sentry Cocoa](https://github.com/getsentry/sentry-cocoa) into this SDK.
56-
One way to achieve this is to include the Sentry Cocoa SDK via the Kotlin CocoaPods extension. Be aware that your Sentry Cocoa version has to match the SDK's version. Currently the supported version is `~> 7.21.0`
52+
If you are targeting Apple platforms (iOS, macOS, watchOS, tvOS), then you can use CocoaPods to include [Sentry Cocoa](https://github.com/getsentry/sentry-cocoa) into this SDK.
53+
One way to achieve this is to include the Sentry Cocoa SDK via the Kotlin CocoaPods extension. Be aware that your Sentry Cocoa version has to match the version used in the KMP SDK.
5754

5855
```gradle
5956
cocoapods {
@@ -66,7 +63,7 @@ cocoapods {
6663
baseName = "shared"
6764
6865
// Export the SDK in order to be able to access it directly in the iOS project
69-
export("io.sentry:sentry-kotlin-multiplatform:0.0.1")
66+
export("io.sentry:sentry-kotlin-multiplatform:<version>")
7067
}
7168
}
7269
```
@@ -75,11 +72,11 @@ cocoapods {
7572

7673
There are two main strategies for initializing the SDK:
7774
- Shared initializer
78-
- Platform specific initializers
75+
- Platform-specific initializers
7976

8077
Shared initializer will initialize the SDK in your shared codebase but you will use the same configuration options for all platforms.
8178

82-
Platform specific initializers initialize the SDK directly in the target platform. The benefit is being able to customize the configuration options specific to the platforms.
79+
Platform-specific initializers initialize the SDK directly in the target platform. The benefit is being able to customize the configuration options specific to the platforms.
8380

8481
It is also possible to mix those two strategies based on your needs and project setup.
8582

@@ -140,7 +137,7 @@ class AppDelegate: NSObject, UIApplicationDelegate {
140137
}
141138
```
142139

143-
## Platform Specific Initializers
140+
## Platform-Specific Initializers
144141
### Android
145142

146143
```Kotlin

0 commit comments

Comments
 (0)