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: backwards compatibility with older AGPs #164

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Looskie
Copy link
Contributor

@Looskie Looskie commented Feb 26, 2024

As pointed out by @filipef101, I accidentally removed the namespace here.

Furthermore, this entire patch for newer AGPs (Including this PR, and #152) is actually not even needed anymore considering RN 0.73.3 (Not 0.73.2/0.73.1 though) adds backwards compatibility for packages to use namespace. but, it doesn't hurt to still have it!

Looskie referenced this pull request Feb 26, 2024
* fix: add namespace for AGP <4.2 support

* chore: backwards compatibility

* fix: rm package from manifest for gradle 8.0
Reverting these as I personally think just setting namespace for all AGPs is a better solution
@filipef101
Copy link

Thank you. Sorry for tangent, it's very hard to communicate as the repo doesn't allow for issues, and instead focus on intercom community forum which adds a lot of friction.
That said, could you also take a look at #163

I would also make a suggestion of adding CI flows to build the example app and e2e test, even if just app launch success

@Looskie
Copy link
Contributor Author

Looskie commented Feb 27, 2024

Thank you. Sorry for tangent, it's very hard to communicate as the repo doesn't allow for issues, and instead focus on intercom community forum which adds a lot of friction. That said, could you also take a look at #163

I would also make a suggestion of adding CI flows to build the example app and e2e test, even if just app launch success

No problem at all! I agree, I get why they disable issues, but it does add a ton of friction.

That said, could you also take a look at #163
for the record, I don't work at intercom, just an open source contributor trying to help out the community.

The PR looks fine though, if its installing in that path that the author referenced i think it LGTM. Obviously testing would be a better idea than just looking though ;). Will test it if I get the time!

@@ -23,11 +23,7 @@ def safeExtGet(prop, fallback) {
}

android {
// Compatibility for AGP v. <4.2/Gradle 8
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger()

Choose a reason for hiding this comment

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

You are removing the declaration of agpVersion which is used at line 50😲

Choose a reason for hiding this comment

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

@Looskie Also on rn versions < 0.70 pod install & android build seems to fail with below error (package version - 6.5.0). I'm not sure where issues for this package are tracked as I don't see any Issues section for this repo.

Following this comment react-native-community/cli#1984 (comment), adding package name property seems to fix the issue

Screenshot 2024-02-28 at 4 39 40 PM

@Looskie
Copy link
Contributor Author

Looskie commented Mar 6, 2024

I'm marking this a draft for now as I clearly need to test it. Will test when I get the bandwidth

@Looskie Looskie marked this pull request as draft March 6, 2024 02:38
@filipef101
Copy link

Maybe just merge the namespace? Or that breaks something? @Looskie

@Looskie
Copy link
Contributor Author

Looskie commented Mar 12, 2024

Maybe just merge the namespace? Or that breaks something? @Looskie

Sorry for the late reply, it would break versions 0.73.0 0.73.1 and 0.73.2. 0.73.3 and higher infer these changes by default for backwards compatibility.

I'll make some time this weekend or maybe during the evening to make a permanent solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants