Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NullPointerException issues getting advertising id #1550

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

tonidero
Copy link
Contributor

@tonidero tonidero commented Jan 5, 2024

Description

This was reported in #1548. I wasn't able to reproduce but from looking around, seems that an update to the the latest version of the library should fix it. However, the latest version is pretty old (from 1/2022). Just in case, I added a catch to that block of code with a log, so it doesn't crash.

@tonidero tonidero force-pushed the fix-google-ads-null-pointer-issues branch from bc4a1bb to 3ca41e4 Compare January 5, 2024 15:07
@tonidero tonidero marked this pull request as ready for review January 5, 2024 15:11
@tonidero tonidero requested a review from a team January 5, 2024 15:11
Copy link

codecov bot commented Jan 5, 2024

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (ecf6ddb) 84.14% compared to head (3ca41e4) 84.08%.
Report is 1 commits behind head on main.

❗ Current head 3ca41e4 differs from pull request most recent head 0b0865e. Consider uploading reports for the commit 0b0865e to get more accurate results

Files Patch % Lines
...ogle/attribution/GoogleDeviceIdentifiersFetcher.kt 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1550      +/-   ##
==========================================
- Coverage   84.14%   84.08%   -0.06%     
==========================================
  Files         218      218              
  Lines        7196     7201       +5     
  Branches     1007     1007              
==========================================
  Hits         6055     6055              
- Misses        750      755       +5     
  Partials      391      391              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tonidero tonidero enabled auto-merge (squash) January 5, 2024 15:34
@tonidero tonidero merged commit 79e9c6b into main Jan 5, 2024
7 checks passed
@tonidero tonidero deleted the fix-google-ads-null-pointer-issues branch January 5, 2024 15:54
vegaro pushed a commit that referenced this pull request Jan 11, 2024
**This is an automatic release.**

### Bugfixes
* Fix NullPointerException issues getting advertising id (#1550) via
Toni Rico (@tonidero)
### Dependency Updates
* Bump fastlane from 2.218.0 to 2.219.0 (#1549) via dependabot[bot]
(@dependabot[bot])

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
tonidero added a commit that referenced this pull request Jan 18, 2024
### Description
We bumped the ad library version in #1550. However, that version of the
library adds the `AD_ID` permission, forcing our customers to have it as
well, which is not intended. This reverts that bump but keeps the null
pointer exception handling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants