Skip to content

Commit d616508

Browse files
committed
Merge remote-tracking branch 'upstream/main' into provenance
* upstream/main: Upgrade gradle version (#300) Resolving main to release-branch conflicts before creating PR from main (#299) Preparing for the next release (#294) Remove compilesdk validation (#292)
2 parents bb15b91 + 7ef9a1d commit d616508

File tree

24 files changed

+72
-53
lines changed

24 files changed

+72
-53
lines changed

.github/workflows/updateVersionBranch.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ jobs:
3434
text: ${{ github.event.pull_request.head.ref }}
3535
regex: 'post-release/(\d+).+'
3636

37-
- run: gh pr create --base ${{ env.BASE_BRANCH }} --title 'Merge main into version branch' --body 'Created by Github action' --reviewer elastic/apm-agent-android
37+
- run: |
38+
CONFLICT_RESOLUTION_BRANCH="post-release/main-to-${{ env.BASE_BRANCH }}"
39+
git switch ${{ env.BASE_BRANCH }}
40+
git checkout -b $CONFLICT_RESOLUTION_BRANCH
41+
git merge main --strategy-option theirs
42+
git push -u origin $CONFLICT_RESOLUTION_BRANCH
43+
gh pr create --base ${{ env.BASE_BRANCH }} --title 'Merge main into version branch' --body 'Created by Github action :robot:' --reviewer elastic/apm-agent-android
3844
env:
3945
GH_TOKEN: ${{ env.GITHUB_TOKEN }}
4046
BASE_BRANCH: "${{ steps.major-version.outputs.group1 }}.x"

.java-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
11
1+
17

CHANGELOG.asciidoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ ${next_release_notes}
3535
* New feature: {pull}000[#000]
3636
////
3737
38+
[[release-notes-0.16.0]]
39+
==== 0.16.0 - 2024/04/03
40+
41+
[float]
42+
===== Bug fixes
43+
44+
* Removing strict version constraint that prevented enforcing compileSdk > 33: {pull}292[#292]
45+
3846
[[release-notes-0.15.0]]
3947
==== 0.15.0 - 2024/03/11
4048

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Copyright 2018-2022 Elasticsearch B.V.
55

66
This product includes software licensed under the 'Apache License Version 2.0' license from the following sources:
77

8-
- Android Lifecycle Process (https://developer.android.com/jetpack/androidx/releases/lifecycle#2.6.1)
8+
- Android Lifecycle Process (https://developer.android.com/jetpack/androidx/releases/lifecycle#2.6.2)
99
- Android Support Library Annotations (https://developer.android.com/jetpack/androidx/releases/annotation#1.4.0)
1010
- Byte Buddy (without dependencies)
1111
- Byte Buddy Gradle plugin

android-sdk/build.gradle

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,4 @@ dependencies {
5757
compileOnly 'co.elastic.apm.compile:processor'
5858
testImplementation libs.bundles.mocking
5959
testImplementation libs.junit
60-
61-
// To avoid enforcing compileSdk > 33:
62-
constraints {
63-
add("implementation", "androidx.navigation:navigation-fragment") {
64-
version {
65-
strictly("2.6.0")
66-
}
67-
}
68-
add("implementation", "androidx.core:core") {
69-
version {
70-
strictly("1.10.1")
71-
}
72-
}
73-
}
7460
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dependencies.hash=F58F6A39BDAD2A7E96BD4C0924CF4A0C
1+
dependencies.hash=77B4570CA3D2C0BA9C3541561D0679C0

android-sdk/src/main/resources/META-INF/NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Copyright 2018-2022 Elasticsearch B.V.
55

66
This product includes software licensed under the 'Apache License Version 2.0' license from the following sources:
77

8-
- Android Lifecycle Process (https://developer.android.com/jetpack/androidx/releases/lifecycle#2.6.1)
8+
- Android Lifecycle Process (https://developer.android.com/jetpack/androidx/releases/lifecycle#2.6.2)
99
- com.github.instacart.truetime-android:library:3.5
1010
- okhttp (https://square.github.io/okhttp/)
1111
- OpenTelemetry Android (https://github.com/open-telemetry/opentelemetry-android)

android-test/app/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ android {
3535

3636
testInstrumentationRunner "co.elastic.apm.android.test.base.TestRunner"
3737
}
38+
buildFeatures {
39+
buildConfig = true
40+
}
3841

3942
buildTypes {
4043
release {
@@ -45,6 +48,7 @@ android {
4548
compileOptions {
4649
sourceCompatibility jvmCompatibility
4750
targetCompatibility jvmCompatibility
51+
coreLibraryDesugaringEnabled true
4852
}
4953
kotlinOptions {
5054
jvmTarget = jvmCompatibility.toString()
@@ -63,10 +67,11 @@ dependencies {
6367
implementation "androidx.test.espresso:espresso-idling-resource:$espresso_version"
6468
implementation project(':android-test-common')
6569
implementation "androidx.fragment:fragment-testing:1.6.1"
70+
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
6671
testImplementation "io.opentelemetry:opentelemetry-exporter-otlp:1.28.0"
6772
testImplementation "org.mockito:mockito-core:$mockito_version"
6873
testImplementation "org.mockito:mockito-inline:$mockito_version"
69-
testImplementation 'org.robolectric:robolectric:4.11.1'
74+
testImplementation 'org.robolectric:robolectric:4.12.1'
7075
testImplementation "com.squareup.okhttp3:mockwebserver:$mockwebserver_version"
7176
androidTestImplementation "androidx.test:core:1.5.0"
7277
androidTestImplementation 'androidx.test.ext:junit:1.1.5'

android-test/app/src/test/java/co/elastic/apm/android/test/attributes/logs/ResourcesTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void whenALogIsCreated_osDescriptionIsSet() {
7171
LogRecordData log = captureLog();
7272

7373
Logs.verifyRecord(log)
74-
.hasResource("os.description", "Android 13, API level 33, BUILD unknown");
74+
.hasResource("os.description", "Android 14, API level 34, BUILD unknown");
7575
}
7676

7777
@Test
@@ -87,7 +87,7 @@ public void whenALogIsCreated_osVersionSet() {
8787
LogRecordData log = captureLog();
8888

8989
Logs.verifyRecord(log)
90-
.hasResource("os.version", "13");
90+
.hasResource("os.version", "14");
9191
}
9292

9393
@Test

android-test/app/src/test/java/co/elastic/apm/android/test/attributes/metrics/ResourcesTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void whenAMetricIsCreated_osDescriptionIsSet() {
7171
MetricData metric = captureMetric();
7272

7373
Metrics.verify(metric)
74-
.hasResource("os.description", "Android 13, API level 33, BUILD unknown");
74+
.hasResource("os.description", "Android 14, API level 34, BUILD unknown");
7575
}
7676

7777
@Test
@@ -87,7 +87,7 @@ public void whenAMetricIsCreated_osVersionSet() {
8787
MetricData metric = captureMetric();
8888

8989
Metrics.verify(metric)
90-
.hasResource("os.version", "13");
90+
.hasResource("os.version", "14");
9191
}
9292

9393
@Test

0 commit comments

Comments
 (0)