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

@W-13557285: [Android] Upgrade to Gradle 8.x and AGP 8.x Via RN 0.72.x #387

Conversation

JohnsonEricAtSalesforce
Copy link
Contributor

@JohnsonEricAtSalesforce JohnsonEricAtSalesforce commented Nov 15, 2023

🎸 Ready For Final Review 🥁

Be aware this pull request is one of four related to the React Native 0.72.7, Gradle 8.2 and Android Gradle Plugin 8.2.0 upgrades.
👉🏻 forcedotcom/SalesforceMobileSDK-Android#2492
👉🏻 forcedotcom/SalesforceMobileSDK-CordovaPlugin#631
👉🏻 forcedotcom/SalesforceMobileSDK-ReactNative#345
👉🏻 #387

The bulk of the upgrade effort resides here in the templates. There are impacts for every template except the stand-alone iOS templates. The React Native templates also received the heaviest changes, which was according to the official React Native Upgrade Helper tool.

For testing, I was able to use the package tools to build and run as many permutations of the affected templates as I could. Everything seemed to run as expected.

The difference report is quite long, but I was able to read through it line-for-line and make a few cleanup commits. Let me know if anything looks amiss. Thanks for your patience with this bigger than usual set of interrelated upgrades.

@JohnsonEricAtSalesforce JohnsonEricAtSalesforce changed the title @W-13557285: [Android] Upgrade to Gradle 8.x and AGP 8.x @W-13557285: [Android] Upgrade to Gradle 8.x and AGP 8.x Via RN 0.72.x Nov 16, 2023
ReactNativeDeferredTemplate/package.json Outdated Show resolved Hide resolved
ReactNativeDeferredTemplate/package.json Outdated Show resolved Hide resolved
AndroidIDPTemplate/package.json Outdated Show resolved Hide resolved
AndroidNativeKotlinTemplate/package.json Outdated Show resolved Hide resolved
AndroidNativeTemplate/package.json Outdated Show resolved Hide resolved
HybridLocalTemplate/package.json Outdated Show resolved Hide resolved
HybridLwcTemplate/package.json Outdated Show resolved Hide resolved
HybridRemoteTemplate/package.json Outdated Show resolved Hide resolved
MobileSyncExplorerKotlinTemplate/package.json Outdated Show resolved Hide resolved
…mum iOS Version In ReactNativeTemplate Podfile)
….jvm.target.validation.mode` According To RN 0.72 Release Notes In MobileSyncExplorerReactNative)
….jvm.target.validation.mode` According To RN 0.72 Release Notes In ReactNativeDeferredTemplate)
….jvm.target.validation.mode` According To RN 0.72 Release Notes In ReactNativeTemplate)
….jvm.target.validation.mode` According To RN 0.72 Release Notes In ReactNativeTypescriptTemplate)
…oid Compile SDK Version For Hybrid App Templates)
… iOS Deployment Target In All iOS React Native Templates)
…ile `config` To A Global Variable In All iOS React Native Templates)
…Code Changes In All iOS React Native Templates)
@JohnsonEricAtSalesforce JohnsonEricAtSalesforce force-pushed the feature/w-13557285-gradle-8-react-native-0.72.6 branch from 7261e74 to cef1d4d Compare December 13, 2023 21:30
@JohnsonEricAtSalesforce JohnsonEricAtSalesforce force-pushed the feature/w-13557285-gradle-8-react-native-0.72.6 branch from 4c9ec81 to 0bb565d Compare December 14, 2023 01:30
@@ -55,8 +55,6 @@
</intent-filter>
</activity>
-->

<activity android:name="com.facebook.react.devsupport.DevSettingsActivity"
android:exported="true" />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@brandonpage or @wmathurin - Of the three templates, only this one was producing an inspector warning for this exported activity. Was this needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd not have changed it, except I was comparing all three React Native templates at the directory level to be sure I'd synchronized the updates accurately. This was an outlier in the diff that seemed worthy of cleanup.

@@ -55,6 +55,6 @@
</intent-filter>
</activity>
-->
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="true" />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@brandonpage and @wmathurin - Here's one more activity export warning.

@JohnsonEricAtSalesforce JohnsonEricAtSalesforce merged commit e76d3e3 into forcedotcom:dev Dec 15, 2023
3 checks passed
@JohnsonEricAtSalesforce JohnsonEricAtSalesforce deleted the feature/w-13557285-gradle-8-react-native-0.72.6 branch December 15, 2023 20:06
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.

None yet

3 participants