Skip to content

Commit

Permalink
Merge branch 'main' into gh-1334
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-garcia authored Jul 14, 2021
2 parents 996d462 + a545cbc commit 49b17b4
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 82 deletions.
4 changes: 2 additions & 2 deletions .craft.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
minVersion: 0.25.0
minVersion: 0.24.4
changelogPolicy: auto
targets:
- name: symbol-collector
includeNames: /libsentry(-android)?\.so/
batchType: android
bundleIdPrefix: android-ndk-
bundleIdPrefix: sentry-android-ndk-
- name: maven
includeNames: /^sentry.*$/
gradleCliPath: ./gradlew
Expand Down
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
## Unreleased

* 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
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
7 changes: 6 additions & 1 deletion scripts/post-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ cd $SCRIPT_DIR/..
OLD_VERSION="${1}"
NEW_VERSION="${2}"

git checkout main
GRADLE_FILEPATH="gradle.properties"

# Add a new unreleased entry in the changelog
Expand Down Expand Up @@ -36,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

0 comments on commit 49b17b4

Please sign in to comment.