Skip to content

Commit

Permalink
Merge branch 'main' into release/0.8.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
buenaflor committed Aug 9, 2024
2 parents edbcfe2 + 68ebe2c commit 468a631
Show file tree
Hide file tree
Showing 10 changed files with 91 additions and 78 deletions.
29 changes: 1 addition & 28 deletions .github/workflows/kotlin-multiplatform-gradle-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,31 +45,4 @@ jobs:
uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # pin@v4
with:
name: sentry-kotlin-multiplatform-gradle-plugin
token: ${{ secrets.CODECOV_TOKEN }}

archive-distribution:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: JDK setup
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin

- name: Cached Gradle
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a

- name: DistZip
run: |
cd sentry-kotlin-multiplatform-gradle-plugin && ./gradlew distZip
- name: Archive packages
uses: actions/upload-artifact@v3
with:
name: ${{ github.sha }}
if-no-files-found: error
path: |
./*/build/distributions/*.zip
token: ${{ secrets.CODECOV_TOKEN }}
27 changes: 0 additions & 27 deletions .github/workflows/kotlin-multiplatform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,30 +113,3 @@ jobs:
- name: Test samples
run: |
./gradlew allTests -p sentry-samples
archive-distribution:
runs-on: macos-latest-xlarge

steps:
- uses: actions/checkout@v4

- name: JDK setup
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin

- name: Cached Gradle
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a

- name: DistZip
run: |
./scripts/build-distribution.sh sentry-kotlin-multiplatform
- name: Archive packages
uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}
if-no-files-found: error
path: |
./*/build/distributions/*.zip
42 changes: 42 additions & 0 deletions .github/workflows/upload-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "Generate and upload distributions"
on:
push:
branches:
- release/**

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
archive-distribution:
runs-on: macos-latest-xlarge

steps:
- uses: actions/checkout@v4

- name: JDK setup
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin

- name: Cached Gradle
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a

- name: DistZip libraries
run: |
./gradlew distZip
- name: DistZip plugin
run: |
cd sentry-kotlin-multiplatform-gradle-plugin
./gradlew distZip sentryPluginMarkerDistZip
- name: Archive packages
uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}
if-no-files-found: error
path: |
./*/build/distributions/*.zip
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
- Bump Java SDK from v7.9.0 to v7.13.0 ([#236](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/236), [#242](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/242), [#248](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/248))
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#7130)
- [diff](https://github.com/getsentry/sentry-java/compare/7.9.0...7.13.0)
- Bump Cocoa SDK from v8.26.0 to v8.33.0 ([#244](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/244), [#251](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/251))
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8330)
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.26.0...8.33.0)

## 0.7.1

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object Config {
val sentryAndroid = "io.sentry:sentry-android:$sentryJavaVersion"
val sentryJava = "io.sentry:sentry:$sentryJavaVersion"

val sentryCocoaVersion = "8.26.0"
val sentryCocoaVersion = "8.33.0"
val sentryCocoa = "Sentry"

object Samples {
Expand Down
33 changes: 20 additions & 13 deletions sentry-kotlin-multiplatform-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ tasks.withType<KotlinCompile> { kotlinOptions { jvmTarget = JavaVersion.VERSION_

gradlePlugin {
plugins {
create(property("id").toString()) {
register("sentryPlugin") {
id = property("id").toString()
implementationClass = property("implementationClass").toString()
}
Expand All @@ -52,32 +52,39 @@ val publish = extensions.getByType(MavenPublishPluginExtension::class.java)
// via gpg:sign-and-deploy-file (release.kts)
publish.releaseSigningEnabled = false

tasks.named("distZip").configure {
tasks.named("distZip") {
dependsOn("publishToMavenLocal")
this.doLast {
val distributionFilePath =
"${project.layout.buildDirectory.asFile.get().path}${sep}distributions${sep}${project.name}-${project.version}.zip"
val file = File(distributionFilePath)
if (!file.exists()) {
throw IllegalStateException("Distribution file: $distributionFilePath does not exist")
}
if (file.length() == 0L) {
throw IllegalStateException("Distribution file: $distributionFilePath is empty")
onlyIf {
inputs.sourceFiles.isEmpty.not().also {
require(it) { "No distribution to zip." }
}
}
}

val sep = File.separator
val sep: String = File.separator

distributions {
main {
contents {
from("build${sep}libs")
from("build${sep}publications${sep}maven")
from("build${sep}publications${sep}pluginMaven")
}
}
create("sentryPluginMarker") {
contents {
from("build${sep}publications${sep}sentryPluginPluginMarkerMaven")
}
}
}

tasks.named("sentryPluginMarkerDistTar") {
mustRunAfter("generatePomFileForSentryPluginPluginMarkerMavenPublication")
}

tasks.named("sentryPluginMarkerDistZip") {
mustRunAfter("generatePomFileForSentryPluginPluginMarkerMavenPublication")
}

buildConfig {
useKotlinOutput()
packageName("io.sentry")
Expand Down
15 changes: 15 additions & 0 deletions sentry-kotlin-multiplatform-gradle-plugin/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,18 @@ versionName=0.8.0-beta.1
group=io.sentry
# TODO: Update update-cocoa.sh so the cocoa version is auto updated as well
sentryCocoaVersion=8.26.0

# publication pom properties
POM_NAME=Sentry Kotlin Multiplatform Gradle Plugin
POM_DESCRIPTION=Sentry Kotlin Multiplatform Gradle Plugin
POM_URL=https://github.com/getsentry/sentry-kotlin-multiplatform
POM_SCM_URL=https://github.com/getsentry/sentry-kotlin-multiplatform
POM_SCM_CONNECTION=scm:git:git://github.com/getsentry/sentry-kotlin-multiplatform.git
POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/getsentry/sentry-kotlin-multiplatform.git

POM_LICENCE_NAME=MIT
POM_LICENCE_URL=https://github.com/getsentry/sentry-kotlin-multiplatform/blob/main/LICENSE

POM_DEVELOPER_ID=getsentry
POM_DEVELOPER_NAME=Sentry Team and Contributors
POM_DEVELOPER_URL=https://github.com/getsentry/
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Pod::Spec.new do |spec|
spec.osx.deployment_target = '10.13'
spec.tvos.deployment_target = '11.0'
spec.watchos.deployment_target = '4.0'
spec.dependency 'Sentry', '8.26.0'
spec.dependency 'Sentry', '8.33.0'

if !Dir.exist?('build/cocoapods/framework/sentry_kotlin_multiplatform.framework') || Dir.empty?('build/cocoapods/framework/sentry_kotlin_multiplatform.framework')
raise "
Expand Down Expand Up @@ -50,4 +50,4 @@ Pod::Spec.new do |spec|
}
]

end
end
12 changes: 6 additions & 6 deletions sentry-samples/kmp-app-cocoapods/iosApp/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
PODS:
- Sentry (8.26.0):
- Sentry/Core (= 8.26.0)
- Sentry/Core (8.26.0)
- Sentry (8.33.0):
- Sentry/Core (= 8.33.0)
- Sentry/Core (8.33.0)
- shared (1.0):
- Sentry (= 8.26.0)
- Sentry (= 8.33.0)

DEPENDENCIES:
- shared (from `../shared`)
Expand All @@ -17,8 +17,8 @@ EXTERNAL SOURCES:
:path: "../shared"

SPEC CHECKSUMS:
Sentry: 74a073c71c998117edb08f56f443c83570a31bed
shared: ce00f3b03258dc0092e8d21b249e91f4d2fb1098
Sentry: 8560050221424aef0bebc8e31eedf00af80f90a6
shared: 1c9529e12292ea0370ccf66979993372af91b10e

PODFILE CHECKSUM: f282da88f39e69507b0a255187c8a6b644477756

Expand Down
2 changes: 1 addition & 1 deletion sentry-samples/kmp-app-cocoapods/shared/shared.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Pod::Spec.new do |spec|
spec.vendored_frameworks = 'build/cocoapods/framework/shared.framework'
spec.libraries = 'c++'
spec.ios.deployment_target = '14.1'
spec.dependency 'Sentry', '8.26.0'
spec.dependency 'Sentry', '8.33.0'

if !Dir.exist?('build/cocoapods/framework/shared.framework') || Dir.empty?('build/cocoapods/framework/shared.framework')
raise "
Expand Down

0 comments on commit 468a631

Please sign in to comment.