Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejwalkowiak committed Jul 14, 2021
2 parents c71230f + 49b17b4 commit e6779ba
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 204 deletions.
28 changes: 16 additions & 12 deletions .craft.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
minVersion: 0.23.1
minVersion: 0.24.4
changelogPolicy: auto
targets:
- name: symbol-collector
includeNames: /libsentry(-android)?\.so/
batchType: android
bundleIdPrefix: sentry-android-ndk-
- name: maven
includeNames: /^sentry.*$/
gradleCliPath: ./gradlew
mavenCliPath: scripts/mvnw
mavenSettingsPath: scripts/settings.xml
mavenRepoId: ossrh
mavenRepoUrl: https://oss.sonatype.org/service/local/staging/deploy/maven2/
android:
distDirRegex: /^sentry-android-.*$/
fileReplaceeRegex: /\d\.\d\.\d(-\w+(\.\d)?)?(-SNAPSHOT)?/
fileReplacerStr: release.aar
- name: github
excludeNames: /^libsentry.*\.so$/
- name: registry
Expand All @@ -20,14 +35,3 @@ targets:
maven:io.sentry:sentry-android-okhttp:
maven:io.sentry:sentry-kotlin-extensions:
maven:io:sentry:sentry-android-fragment:
- name: maven
includeNames: /^sentry.*$/
gradleCliPath: ./gradlew
mavenCliPath: scripts/mvnw
mavenSettingsPath: scripts/settings.xml
mavenRepoId: ossrh
mavenRepoUrl: https://oss.sonatype.org/service/local/staging/deploy/maven2/
android:
distDirRegex: /^sentry-android-.*$/
fileReplaceeRegex: /\d\.\d\.\d(-\w+(\.\d)?)?(-SNAPSHOT)?/
fileReplacerStr: release.aar
1 change: 1 addition & 0 deletions .github/workflows/check-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
- release/**
pull_request:
branches:
- '*'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
- release/**
pull_request:
branches:
- '*'
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

* Feat: Add request body extraction for Spring MVC integration (#1595)

## 5.1.0-beta.4

* Update sentry-native to 0.4.11 (#1591)

## 5.1.0-beta.3

* Feat: Spring Webflux integration (#1529)
Expand Down
13 changes: 1 addition & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all clean compile dryRelease doRelease release update stop checkFormat format api
.PHONY: all clean compile dryRelease update stop checkFormat format api

all: stop clean checkFormat compile dryRelease

Expand All @@ -15,17 +15,6 @@ compile:
dryRelease:
./gradlew publishToMavenLocal --no-daemon

# deploy the current build to maven central
# promotes the release to maven central
doRelease:
cd scripts
kotlinc -script release.kts -- -d ../distributions | sh
cd ..
./gradlew closeAndReleaseRepository

# clean, build, deploy and promote to maven central
release: clean checkFormat compile doRelease

# check for dependencies update
update:
./gradlew dependencyUpdates -Drevision=release
Expand Down
12 changes: 0 additions & 12 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -79,25 +79,13 @@ subprojects {
}
}

val rootDir = this.project.rootProject.projectDir
val distDir = File("${rootDir}${sep}distributions")

// create dir if it does not exist
distDir.mkdirs()

tasks.named("distZip").configure {
this.dependsOn("publishToMavenLocal")
this.doLast {
val distributionFilePath = "${this.project.buildDir}${sep}distributions${sep}${this.project.name}-${this.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")

val newFile = File("${distDir}${sep}${file.name}")
file.copyTo(newFile, overwrite = true)

UnzipUtils.unzip(newFile, distDir.path)
newFile.delete()
}
}

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 @@ -10,7 +10,7 @@ object Config {
val springKotlinCompatibleLanguageVersion = "1.3"

object BuildPlugins {
val androidGradle = "com.android.tools.build:gradle:4.2.1"
val androidGradle = "com.android.tools.build:gradle:4.2.2"
val kotlinGradlePlugin = "gradle-plugin"
val buildConfig = "com.github.gmazzo.buildconfig"
val buildConfigVersion = "3.0.0"
Expand Down
64 changes: 0 additions & 64 deletions buildSrc/src/main/java/UnzipUtils.kt

This file was deleted.

4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ org.gradle.jvmargs=-Xmx4g -XX:MaxPermSize=512m -XX:MaxMetaspaceSize=1536m -XX:+H
android.useAndroidX=true

# Release information
buildVersionCode=20073
versionName=5.1.0-beta.4-SNAPSHOT
buildVersionCode=20074
versionName=5.1.0-beta.5-SNAPSHOT

# disable renderscript, it's enabled by default
android.defaults.buildfeatures.renderscript=false
Expand Down
3 changes: 0 additions & 3 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ cd $SCRIPT_DIR/..
OLD_VERSION="$1"
NEW_VERSION="$2"

echo $OLD_VERSION
echo $NEW_VERSION

GRADLE_FILEPATH="gradle.properties"

# Replace `versionName` with the given version
Expand Down
9 changes: 8 additions & 1 deletion scripts/post-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ cd $SCRIPT_DIR/..
OLD_VERSION="${1}"
NEW_VERSION="${2}"

git checkout main
GRADLE_FILEPATH="gradle.properties"

# Add a new unreleased entry in the changelog
sed -i "" 's/# Changelog/# Changelog\n\n## Unreleased/' CHANGELOG.md

Expand Down Expand Up @@ -34,4 +37,8 @@ sed -i "" -e "s/$VERSION_NAME_PATTERN=.*$/$VERSION_NAME_PATTERN=$new_version-SNA
VERSION_CODE_PATTERN="buildVersionCode"
VERSION_NUMBER="$( awk "/$VERSION_CODE_PATTERN/" $GRADLE_FILEPATH | grep -o '[0-9]\+' )"
((VERSION_NUMBER++))
sed -ie "s/$VERSION_CODE_PATTERN=.*$/$VERSION_CODE_PATTERN=$VERSION_NUMBER/g" $GRADLE_FILEPATH
sed -i "" e "s/$VERSION_CODE_PATTERN=.*$/$VERSION_CODE_PATTERN=$VERSION_NUMBER/g" $GRADLE_FILEPATH

git add .
git commit -m "Prepare $new_version"
git push
96 changes: 0 additions & 96 deletions scripts/release.kts

This file was deleted.

2 changes: 1 addition & 1 deletion sentry-android-ndk/sentry-native
Submodule sentry-native updated 57 files
+1 −1 .clang-format
+5 −16 .craft.yml
+4 −4 .github/workflows/ci.yml
+37 −0 CHANGELOG.md
+1 −0 CMakeLists.txt
+2 −3 Makefile
+24 −0 examples/example.c
+1 −1 external/breakpad
+1 −1 external/crashpad
+1 −1 external/libunwindstack-ndk
+13 −6 include/sentry.h
+39 −5 src/backends/sentry_backend_crashpad.cpp
+1 −0 src/backends/sentry_backend_inproc.c
+27 −17 src/modulefinder/sentry_modulefinder_apple.c
+144 −73 src/modulefinder/sentry_modulefinder_linux.c
+1 −1 src/modulefinder/sentry_modulefinder_linux.h
+2 −1 src/sentry_backend.h
+56 −14 src/sentry_core.c
+14 −0 src/sentry_core.h
+1 −1 src/sentry_envelope.c
+1 −1 src/sentry_envelope.h
+1 −1 src/sentry_json.c
+2 −0 src/sentry_logger.h
+2 −0 src/sentry_options.h
+2 −2 src/sentry_os.c
+1 −1 src/sentry_ratelimiter.c
+1 −1 src/sentry_ratelimiter.h
+2 −35 src/sentry_scope.c
+5 −12 src/sentry_scope.h
+31 −21 src/sentry_session.c
+3 −3 src/sentry_session.h
+21 −5 src/sentry_string.c
+12 −0 src/sentry_string.h
+6 −22 src/sentry_sync.c
+23 −4 src/sentry_sync.h
+1 −1 src/sentry_unix_pageallocator.c
+1 −1 src/sentry_unix_pageallocator.h
+2 −1 src/sentry_utils.c
+11 −5 src/sentry_value.c
+3 −2 src/transports/sentry_disk_transport.c
+3 −2 src/transports/sentry_function_transport.c
+37 −12 src/transports/sentry_transport_winhttp.c
+2 −2 tests/assertions.py
+2 −0 tests/cmake.py
+1 −1 tests/requirements.txt
+20 −0 tests/test_integration_crashpad.py
+38 −3 tests/test_integration_http.py
+1 −0 tests/unit/CMakeLists.txt
+1 −1 tests/unit/main.c
+1 −1 tests/unit/sentry_testsupport.h
+4 −3 tests/unit/test_attachments.c
+5 −4 tests/unit/test_basic.c
+97 −0 tests/unit/test_concurrency.c
+3 −0 tests/unit/test_session.c
+11 −4 tests/unit/test_utils.c
+9 −0 tests/unit/test_value.c
+2 −0 tests/unit/tests.inc

0 comments on commit e6779ba

Please sign in to comment.