Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
354464e
intial poc
buenaflor Nov 9, 2023
a5e2dec
update api
buenaflor Nov 9, 2023
82dcd8c
Fix distZip
buenaflor Nov 9, 2023
6e155f8
update changelog
buenaflor Nov 10, 2023
d42dbf0
Merge branch 'main' into migration/1.9.20
buenaflor Nov 10, 2023
beef4f7
update
buenaflor Nov 10, 2023
788521a
remove optin
buenaflor Nov 10, 2023
79cba02
include samples
buenaflor Nov 10, 2023
2dc9fe6
fix
buenaflor Nov 10, 2023
15b3bd0
Migrate samples to 1.9.20
buenaflor Nov 13, 2023
43a27e5
Add e2e test
buenaflor Nov 13, 2023
8610d83
Add optin
buenaflor Nov 13, 2023
8d8cb70
Disable automatic proguard upload
buenaflor Nov 13, 2023
64ca369
Merge branch 'main' into migration/1.9.20
buenaflor Nov 13, 2023
3f6b24a
Increase jvm memory usage
buenaflor Nov 13, 2023
664372f
Update changelog
buenaflor Nov 13, 2023
cb533cd
fix sample
buenaflor Nov 15, 2023
17cd4cb
fix sample
buenaflor Nov 15, 2023
58c34d7
use large macos image
buenaflor Nov 15, 2023
c447976
Fix ci
buenaflor Nov 15, 2023
f8db364
Update optIn
buenaflor Nov 22, 2023
e283872
Update to 1.9.21
buenaflor Nov 24, 2023
174e9ed
Update compose to 1.5.11 for samples
buenaflor Nov 24, 2023
81cb65b
Merge branch 'main' into migration/1.9.20
buenaflor Dec 4, 2023
d8e0a24
remove build.yml
buenaflor Dec 4, 2023
a37ab1f
Fix samples by updating koin
buenaflor Dec 4, 2023
aebc5c4
Remove dependencies changelog
buenaflor Dec 4, 2023
f8b8272
Update CHANGELOG
buenaflor Dec 4, 2023
65dbb4c
Update import
buenaflor Dec 4, 2023
f843f35
Format code
getsentry-bot Dec 4, 2023
e9adcf4
Update readme
buenaflor Dec 4, 2023
e8c0752
Update sentry-samples/README.md
buenaflor Dec 4, 2023
f00e165
Disable koin sample for now - add it back later when koin supports ko…
buenaflor Dec 5, 2023
59a9526
Disable for now
buenaflor Dec 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .run/iosApp-cocoapods.run.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="iosApp-cocoapods" type="KmmRunConfiguration" factoryName="iOS Application" CONFIG_VERSION="1" EXEC_TARGET_ID="0EA1F63A-00BC-4AFB-BB1E-B1970A6F8CB0" XCODE_PROJECT="$PROJECT_DIR$/sentry-samples/kmp-app-cocoapods/iosApp/iosApp.xcworkspace" XCODE_CONFIGURATION="Debug" XCODE_SCHEME="iosApp">
<configuration default="false" name="iosApp-cocoapods" type="KmmRunConfiguration" factoryName="iOS Application" CONFIG_VERSION="1" EXEC_TARGET_ID="27607109-90E2-4A98-8165-C0FF206F6E6D" XCODE_PROJECT="$PROJECT_DIR$/sentry-samples/kmp-app-cocoapods/iosApp/iosApp.xcworkspace" XCODE_CONFIGURATION="Debug" XCODE_SCHEME="iosApp">
<method v="2">
<option name="com.jetbrains.kmm.ios.BuildIOSAppTask" enabled="true" />
</method>
Expand Down
2 changes: 1 addition & 1 deletion .run/iosApp-mvvm-di-spm.run.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="iosApp-mvvm-di-spm" type="KmmRunConfiguration" factoryName="iOS Application" CONFIG_VERSION="1" EXEC_TARGET_ID="0EA1F63A-00BC-4AFB-BB1E-B1970A6F8CB0" XCODE_PROJECT="$PROJECT_DIR$/sentry-samples/kmp-app-mvvm-di/iosApp.xcodeproj" XCODE_CONFIGURATION="Debug" XCODE_SCHEME="iosApp">
<configuration default="false" name="iosApp-mvvm-di-spm" type="KmmRunConfiguration" factoryName="iOS Application" CONFIG_VERSION="1" EXEC_TARGET_ID="27607109-90E2-4A98-8165-C0FF206F6E6D" XCODE_PROJECT="$PROJECT_DIR$/sentry-samples/kmp-app-mvvm-di/iosApp.xcodeproj" XCODE_CONFIGURATION="Debug" XCODE_SCHEME="iosApp">
<method v="2">
<option name="com.jetbrains.kmm.ios.BuildIOSAppTask" enabled="true" />
</method>
Expand Down
12 changes: 6 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Changelog

## Unreleased

### Dependencies

- Bump Kotlin version from v1.8.0 to v1.9.21 ([#146](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/146))

## 0.3.0

### Features

- Add sample & trace rate configuration ([#144](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/144))
- Remove need for context in Sentry.init for Android ([#117](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/117))

### Dependencies

- Bump Java SDK from v6.14.0 to v6.33.1 ([#139](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/139))
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#6331)
- [diff](https://github.com/getsentry/sentry-java/compare/6.14.0...6.33.1)

## 0.2.1

### Fixes
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ buildProject:
buildAppleSamples:
./gradlew build -p sentry-samples
cd ./sentry-samples/kmp-app-cocoapods/iosApp/iosApp && touch iosApp.xcconfig
cd ./sentry-samples/kmp-app-mvvm-di/iosApp && touch iosApp.xcconfig
# cd ./sentry-samples/kmp-app-mvvm-di/iosApp && touch iosApp.xcconfig
sudo xcode-select --switch /Applications/Xcode.app && /usr/bin/xcodebuild -version
./gradlew ":sentry-samples:kmp-app-cocoapods:shared:podInstall"
cd ./sentry-samples/kmp-app-cocoapods/iosApp; pod install
xcodebuild -workspace ./sentry-samples/kmp-app-cocoapods/iosApp/iosApp.xcworkspace -scheme iosApp -configuration Debug -sdk iphonesimulator -arch arm64
xcodebuild -project ./sentry-samples/kmp-app-mvvm-di/iosApp.xcodeproj -scheme iosApp -configuration Debug -sdk iphonesimulator -arch arm64
# xcodebuild -project ./sentry-samples/kmp-app-mvvm-di/iosApp.xcodeproj -scheme iosApp -configuration Debug -sdk iphonesimulator -arch arm64


# Build all targets, run tests and checks api
Expand Down
5 changes: 5 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ subprojects {
}

afterEvaluate {
val platformDists = project.tasks.filter { task ->
task.name.matches(Regex("(.*)DistZip"))
}.toTypedArray()
project.tasks.getByName("distZip").finalizedBy(*platformDists)

apply<MavenPublishPlugin>()

configure<MavenPublishPluginExtension> {
Expand Down
18 changes: 12 additions & 6 deletions buildSrc/src/main/java/Config.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
object Config {
val agpVersion = "7.4.2"
val kotlinVersion = "1.8.0"
val composeVersion = "1.3.1-rc01"
val kotlinVersion = "1.9.21"
val composeVersion = "1.5.11"
val gradleMavenPublishPluginVersion = "0.18.0"

val multiplatform = "multiplatform"
Expand Down Expand Up @@ -38,6 +38,12 @@ object Config {

val sentryCocoaVersion = "8.4.0"
val sentryCocoa = "Sentry"

object Samples {
val koinVersion = "3.5.2-RC1"
val koinCore = "io.insert-koin:koin-core:$koinVersion"
val koinAndroid = "io.insert-koin:koin-android:$koinVersion"
}
}

object TestLibs {
Expand All @@ -48,10 +54,10 @@ object Config {
val kotlinCoroutinesTest = "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.0-RC"
val kotlinxSerializationJson = "org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0"

val ktorClientCore = "io.ktor:ktor-client-core:2.3.0"
val ktorClientSerialization = "io.ktor:ktor-client-serialization:2.3.0"
val ktorClientOkHttp = "io.ktor:ktor-client-okhttp:2.3.0"
val ktorClientDarwin = "io.ktor:ktor-client-darwin:2.3.0"
val ktorClientCore = "io.ktor:ktor-client-core:2.3.6"
val ktorClientSerialization = "io.ktor:ktor-client-serialization:2.3.6"
val ktorClientOkHttp = "io.ktor:ktor-client-okhttp:2.3.6"
val ktorClientDarwin = "io.ktor:ktor-client-darwin:2.3.6"

val roboelectric = "org.robolectric:robolectric:4.9"
val junitKtx = "androidx.test.ext:junit-ktx:1.1.5"
Expand Down
6 changes: 0 additions & 6 deletions buildSrc/src/main/java/Publication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,6 @@ fun DistributionContainer.configureForMultiplatform(project: Project) {
}
fromKlib(project.name, "tvosSimulatorArm64", version)
}

// make other distZip tasks run together with the main distZip
val platformDists = project.tasks.filter { task ->
task.name.matches(Consts.taskRegex)
}.toTypedArray()
project.tasks.getByName("distZip").finalizedBy(*platformDists)
}

private fun CopySpec.fromKlib(projectName: String, target: String, version: String) {
Expand Down
5 changes: 1 addition & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@ jvm.version=1.8
versionName=0.3.0

# Increase memory for in-process compiler execution.
org.gradle.jvmargs=-Xmx3g
org.gradle.jvmargs=-Xmx6g

# https://kotlinlang.org/docs/migrating-multiplatform-project-to-14.html#migrate-to-the-hierarchical-project-structure
kotlin.mpp.enableCompatibilityMetadataVariant=true
kotlin.mpp.enableCInteropCommonization=true
kotlin.mpp.enableHierarchicalCommonization=true
kotlin.mpp.androidSourceSetLayoutVersion=2

# Publication pom properties
POM_NAME=Sentry Kotlin Multiplatform SDK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public final class io/sentry/kotlin/multiplatform/SentryLevel : java/lang/Enum {
public static final field FATAL Lio/sentry/kotlin/multiplatform/SentryLevel;
public static final field INFO Lio/sentry/kotlin/multiplatform/SentryLevel;
public static final field WARNING Lio/sentry/kotlin/multiplatform/SentryLevel;
public static fun getEntries ()Lkotlin/enums/EnumEntries;
public static fun valueOf (Ljava/lang/String;)Lio/sentry/kotlin/multiplatform/SentryLevel;
public static fun values ()[Lio/sentry/kotlin/multiplatform/SentryLevel;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ public final class io/sentry/kotlin/multiplatform/SentryLevel : java/lang/Enum {
public static final field FATAL Lio/sentry/kotlin/multiplatform/SentryLevel;
public static final field INFO Lio/sentry/kotlin/multiplatform/SentryLevel;
public static final field WARNING Lio/sentry/kotlin/multiplatform/SentryLevel;
public static fun getEntries ()Lkotlin/enums/EnumEntries;
public static fun valueOf (Ljava/lang/String;)Lio/sentry/kotlin/multiplatform/SentryLevel;
public static fun values ()[Lio/sentry/kotlin/multiplatform/SentryLevel;
}
Expand Down
Loading