Skip to content

Commit b164424

Browse files
abdulraqeeb33AR Abdul Azeez
andauthored
fix: R8 AutoValue suppressions + Huawei release in CI (#2592)
Co-authored-by: AR Abdul Azeez <abdul@onesignal.com>
1 parent 0827c61 commit b164424

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ jobs:
4141
working-directory: OneSignalSDK
4242
run: |
4343
./gradlew testDebugUnitTest --console=plain --continue
44-
- name: "[Build] Demo app (minified release)"
44+
- name: "[Build] Demo app (minified GMS + Huawei release)"
4545
working-directory: OneSignalSDK
4646
run: |
47-
./gradlew :app:assembleGmsRelease --console=plain
47+
./gradlew :app:assembleGmsRelease :app:assembleHuaweiRelease --console=plain
4848
- name: "[Diff Coverage] Check for bypass"
4949
id: coverage_bypass
5050
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
# OpenTelemetry OTLP exporter references Jackson core classes that are optional on Android.
22
# Suppress R8 missing-class errors when apps don't include jackson-core.
33
-dontwarn com.fasterxml.jackson.core.**
4+
5+
# OTel / disk buffering reference Google Auto Value types that are not on the app classpath.
6+
-dontwarn com.google.auto.value.AutoValue
7+
-dontwarn com.google.auto.value.AutoValue$Builder
8+
-dontwarn com.google.auto.value.AutoValue$CopyAnnotations

examples/demo/app/proguard-rules.pro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile
2222

23-
# Demo-only suppression for optional OTel transitive classes.
23+
# Demo-only: optional transitive classes pulled in via OneSignal OTel / R8 (GMS + Huawei minified builds).
2424
-dontwarn com.fasterxml.jackson.core.JsonFactory
2525
-dontwarn com.fasterxml.jackson.core.JsonGenerator
26+
-dontwarn com.google.auto.value.AutoValue
27+
-dontwarn com.google.auto.value.AutoValue$Builder
2628
-dontwarn com.google.auto.value.AutoValue$CopyAnnotations

0 commit comments

Comments
 (0)