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

feat: support for android gradle plugin 8 #117

Merged
merged 9 commits into from
Apr 18, 2024
Merged

Conversation

mrehan27
Copy link
Contributor

@mrehan27 mrehan27 commented Apr 9, 2024

closes: MBL-232
blocked by: release of customerio/customerio-android#296

Highlights

  • Support for Android Gradle Plugin 8.0
  • JDK Version is updated to 17 from 1.8

Changes

  • Updated flutter plugin to make it compatible with changes for Android Gradle Plugin 8.0 in native SDK
  • Updated sample app to use same gradle plugin version

Tasks

  • Update Android SDK version to actual required value

@mrehan27 mrehan27 self-assigned this Apr 9, 2024
@mrehan27 mrehan27 requested a review from a team April 9, 2024 07:09
<!-- Register Customer.io Firebase Messaging Service as we want our SDK to handle all push
notifications -->
<service
android:name="io.customer.messagingpush.CustomerIOFirebaseMessagingService"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The notifications were not working for Android apps, so I added Option 2 so our SDK handles everything in it.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great thanks, can you also make sure Android devices are well registered with this update ?

#113

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @AristideVB, thanks for bringing this to our attention. Unfortunately, I haven’t dived into the details of shared issue yet, so I can't confirm immediately, but it seems related to Gradle 8 and its associated updates. While we're still verifying the changes with Gradle 8, we've also released an update recently which includes a fix with proguard rules for R8's strict mode. Can you please try version 1.3.2 and let us know if it resolves the issue for you?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mrehan27 I've just tested version 1.3.2 & it does seem to have resolved the issue #113 🙂

Thank you 🙏

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad to hear. Thanks for confirming 👍🏻

Copy link
Collaborator

@Shahroz16 Shahroz16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Adding the blocked label to wait until Android SDK gets merged its already added.

Copy link
Contributor

@levibostian levibostian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking because of manifest file conversation. I think that the PR as it is now is not a backwards compatible change.

Copy link
Contributor

@levibostian levibostian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Team responded back to my concerns on backwards compatibility. Approved!

@mrehan27 mrehan27 merged commit 48b4e06 into main Apr 18, 2024
5 checks passed
@mrehan27 mrehan27 deleted the rehan/mbl-232-agp-8 branch April 18, 2024 09:53
github-actions bot pushed a commit that referenced this pull request Apr 18, 2024
## [1.4.0](1.3.2...1.4.0) (2024-04-18)

### Features

* support for android gradle plugin 8 ([#117](#117)) ([48b4e06](48b4e06))
github-actions bot pushed a commit to AristideVB/customerio-flutter that referenced this pull request Oct 12, 2024
## 1.0.0 (2024-10-12)

### Features

* added missing methods ([customerio#17](https://github.com/AristideVB/customerio-flutter/issues/17)) ([73f29e6](73f29e6))
* added SDK config  ([customerio#1](https://github.com/AristideVB/customerio-flutter/issues/1)) ([e8ed7dd](e8ed7dd))
* do not show modal message if screen changes and page rule mismatches ([customerio#131](https://github.com/AristideVB/customerio-flutter/issues/131)) ([a563055](a563055))
* in-app dismiss support ([customerio#51](https://github.com/AristideVB/customerio-flutter/issues/51)) ([c4d21f2](c4d21f2))
* in-app message persistence ([customerio#97](https://github.com/AristideVB/customerio-flutter/issues/97)) ([71d85cc](71d85cc))
* process push notifications received outside CIO SDK ([customerio#38](https://github.com/AristideVB/customerio-flutter/issues/38)) ([7b5cb7e](7b5cb7e))
* support for android gradle plugin 8 ([customerio#117](https://github.com/AristideVB/customerio-flutter/issues/117)) ([48b4e06](48b4e06))
* tracking and in-app added ([customerio#2](https://github.com/AristideVB/customerio-flutter/issues/2)) ([c23f2d9](c23f2d9))

### Bug Fixes

* add test coverage and refactored scripts ([customerio#34](https://github.com/AristideVB/customerio-flutter/issues/34)) ([f7f2387](f7f2387))
* added proguard rules for R8 strict mode ([customerio#116](https://github.com/AristideVB/customerio-flutter/issues/116)) ([9946fe7](9946fe7))
* autoupdate to latest major version of iOS SDK ([customerio#40](https://github.com/AristideVB/customerio-flutter/issues/40)) ([974a342](974a342))
* formatting issues ([d67fa7e](d67fa7e))
* hardcode android native SDK version ([customerio#61](https://github.com/AristideVB/customerio-flutter/issues/61)) ([587f559](587f559))
* improve android push click behavior ([customerio#89](https://github.com/AristideVB/customerio-flutter/issues/89)) ([62b9e61](62b9e61))
* improve in-app logs ([customerio#139](https://github.com/AristideVB/customerio-flutter/issues/139)) ([b10cc75](b10cc75))
* in-app concurrency issue android ([customerio#73](https://github.com/AristideVB/customerio-flutter/issues/73)) ([93332a4](93332a4))
* in-app crash for no browser ([customerio#94](https://github.com/AristideVB/customerio-flutter/issues/94)) ([8b859ed](8b859ed))
* in-app messages not displaying for release builds on Android ([customerio#65](https://github.com/AristideVB/customerio-flutter/issues/65)) ([1d742c2](1d742c2))
* in-app remove gist org id ([customerio#19](https://github.com/AristideVB/customerio-flutter/issues/19)) ([ce4cc9e](ce4cc9e))
* iOS crash on forced unwrapping  ([customerio#59](https://github.com/AristideVB/customerio-flutter/issues/59)) ([f514174](f514174))
* missing methods and extra dependency ([2c5deca](2c5deca))
* missing opened metric on android 12 and above ([customerio#43](https://github.com/AristideVB/customerio-flutter/issues/43)) ([1a61e0e](1a61e0e))
* obj-c bindings issue ([0dbe4ef](0dbe4ef))
* plugin version in user-agent ([a10e482](a10e482))
* release script typo ([2a8b7ae](2a8b7ae))
* send native to flutter messages on main thread ([customerio#134](https://github.com/AristideVB/customerio-flutter/issues/134)) ([bc8704b](bc8704b))
* stack-overflow caused by BQ recursion ([customerio#90](https://github.com/AristideVB/customerio-flutter/issues/90)) ([ebc7511](ebc7511))
* typo fixed ([customerio#9](https://github.com/AristideVB/customerio-flutter/issues/9)) ([a5107df](a5107df)), closes [customerio#7](https://github.com/AristideVB/customerio-flutter/issues/7) [customerio#8](https://github.com/AristideVB/customerio-flutter/issues/8)
* updated android dependency to auto update ([customerio#24](https://github.com/AristideVB/customerio-flutter/issues/24)) ([040cef2](040cef2))
* updated icon and typo ([57c6eef](57c6eef))
* updated module name from common to CioInternalCommon ([customerio#55](https://github.com/AristideVB/customerio-flutter/issues/55)) ([d81f8df](d81f8df))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants