Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ jobs:
submodules: recursive
persist-credentials: false

- name: set up JDK 17
- name: set up JDK 21
uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v5
with:
java-version: "17"
java-version: "21"
distribution: "temurin"

- name: Set up Gradle (caching)
Expand Down Expand Up @@ -148,10 +148,10 @@ jobs:
submodules: recursive
persist-credentials: false

- name: set up JDK 17
- name: set up JDK 21
uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v5
with:
java-version: "17"
java-version: "21"
distribution: "temurin"

- name: Set up Gradle (caching)
Expand Down Expand Up @@ -202,10 +202,10 @@ jobs:
submodules: recursive
persist-credentials: false

- name: set up JDK 17
- name: set up JDK 21
uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v5
with:
java-version: "17"
java-version: "21"
distribution: "temurin"

- name: Set up Gradle (caching)
Expand Down Expand Up @@ -275,10 +275,10 @@ jobs:
submodules: recursive
persist-credentials: false

- name: set up JDK 17
- name: set up JDK 21
uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v5
with:
java-version: "17"
java-version: "21"
distribution: "temurin"

- name: Set up Gradle (caching)
Expand Down Expand Up @@ -413,10 +413,10 @@ jobs:
submodules: recursive
persist-credentials: false

- name: set up JDK 17
- name: set up JDK 21
uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v5
with:
java-version: "17"
java-version: "21"
distribution: "temurin"

- name: Set up Gradle (caching)
Expand Down Expand Up @@ -518,10 +518,10 @@ jobs:
submodules: recursive
persist-credentials: false

- name: set up JDK 17
- name: set up JDK 21
uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v5
with:
java-version: "17"
java-version: "21"
distribution: "temurin"

- name: Set up Gradle (caching)
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/uploadArchives.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
token: ${{ secrets.ACCESS_TOKEN }}
persist-credentials: false

- name: set up JDK 17
- name: set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 17.0.10
distribution: "adopt"
java-version: 21
distribution: "temurin"

- name: Add Maven Central Repository credentials and keys to gradle.properties
run: |
Expand Down
39 changes: 25 additions & 14 deletions backtrace-library/build.gradle
Comment thread
BartoszLitwiniuk marked this conversation as resolved.
Comment thread
BartoszLitwiniuk marked this conversation as resolved.
Comment thread
KishanPRao marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,22 @@ androidGitVersion {
format '%tag%%-count%%-commit%%-branch%'
}

def libVersion = androidGitVersion.name()

if (libVersion == null || libVersion.trim().isEmpty() || libVersion.trim() == 'null') {
throw new GradleException("androidGitVersion.name() resolved to '${libVersion}'. " +
"The library version could not be determined. Make sure the git history and tags are available.")
}

android {
namespace "backtraceio.library"
namespace = "backtraceio.library"
enableKotlin = false
compileSdk = 36
defaultConfig {
minSdkVersion 21
compileSdk 36
targetSdkVersion 36
ndkVersion '27.3.13750724'
versionName androidGitVersion.name()
buildConfigField("String", "VERSION_NAME", "\"${versionName}\"")
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
minSdk = 21
ndkVersion = '27.3.13750724'
buildConfigField("String", "VERSION_NAME", "\"${libVersion}\"")
testInstrumentationRunner = 'androidx.test.runner.AndroidJUnitRunner'

externalNativeBuild {
cmake {
Expand All @@ -39,12 +45,13 @@ android {
}

buildTypes {
debug {
testCoverageEnabled true
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
minifyEnabled = false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
enableUnitTestCoverage = true
enableAndroidTestCoverage = true
}
}

Expand All @@ -66,15 +73,19 @@ android {

lint {
abortOnError = true
targetSdk = 36
checkReleaseBuilds = true
baseline = file('lint-baseline.xml')
}
testOptions {
targetSdk = 36
}
}

mavenPublishing {
publishToMavenCentral()
signAllPublications()
coordinates(GROUP, POM_NAME, android.defaultConfig.versionName)
coordinates(GROUP, POM_NAME, libVersion)

pom {
name = POM_NAME
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.13.2'
classpath 'com.android.tools.build:gradle:9.3.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
44 changes: 21 additions & 23 deletions example-app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
apply plugin: 'com.android.application'

android {
namespace "backtraceio.backtraceio"
namespace = "backtraceio.backtraceio"
compileSdk = 36
defaultConfig {
compileSdk 36
applicationId "backtraceio.backtraceio"
minSdkVersion 21
targetSdkVersion 36
versionCode 1
versionName "1.0"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
applicationId = "backtraceio.backtraceio"
minSdk = 21
targetSdk = 36
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = 'androidx.test.runner.AndroidJUnitRunner'
ndk {
// -PqualificationAbi=<abi> builds a single-ABI qualification app for the hardware
// release gate (for example a 32-bit-only install on a 64-bit device). The library's
Expand All @@ -36,7 +36,7 @@ android {

buildTypes {
release {
minifyEnabled false
minifyEnabled = false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand All @@ -48,20 +48,18 @@ android {
}
}

android {
lint {
abortOnError = true
checkReleaseBuilds = true
baseline = file('lint-baseline.xml')
}
defaultConfig {
buildConfigField ("String", "BACKTRACE_SUBMISSION_URL", getProperty("BACKTRACE_SUBMISSION_URL", "null"))
buildConfigField ("String", "BACKTRACE_CORONER_URL", getProperty("BACKTRACE_CORONER_URL", "null"))
buildConfigField ("String", "BACKTRACE_CORONER_TOKEN", getProperty("BACKTRACE_CORONER_TOKEN", "null"))
}
buildFeatures {
buildConfig = true
}
lint {
abortOnError = true
checkReleaseBuilds = true
baseline = file('lint-baseline.xml')
}
defaultConfig {
buildConfigField ("String", "BACKTRACE_SUBMISSION_URL", getProperty("BACKTRACE_SUBMISSION_URL", "null"))
buildConfigField ("String", "BACKTRACE_CORONER_URL", getProperty("BACKTRACE_CORONER_URL", "null"))
buildConfigField ("String", "BACKTRACE_CORONER_TOKEN", getProperty("BACKTRACE_CORONER_TOKEN", "null"))
}
buildFeatures {
buildConfig = true
}
packagingOptions {
jniLibs {
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ org.gradle.jvmargs=-Xmx4g
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
org.gradle.parallel=true
org.gradle.tooling.parallel=true

GROUP=com.github.backtrace-labs.backtrace-android
POM_NAME=backtrace-library
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Jul 04 21:28:55 CEST 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion gson/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'com.gradleup.shadow' version '9.6.1'
}

repositories {
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ pluginManagement {
mavenCentral()
}
plugins {
id 'com.android.application' version '8.13.2' apply false
id 'com.android.library' version '8.13.2' apply false
id 'com.android.application' version '9.3.2' apply false
id 'com.android.library' version '9.3.2' apply false
}
}
include ':example-app', ':backtrace-library', ':coroner-client', ':gson'
Loading