forcedotcom / SalesforceMobileSDK-CordovaPlugin

Cordova plugin for the Salesforce Mobile SDK
Other
48 stars 114 forks source link

@W-14182208: [Android][Hybrid] forcehybrid generated applications are broken #625

Closed JohnsonEricAtSalesforce closed 7 months ago

JohnsonEricAtSalesforce commented 7 months ago

🎸 Ready For Review 🥁

After recent updates to SalesforceMobile SDK for Android to utilize Gradle's Kotlin DSL, the module-level includes used by the Cordova templates apps no longer function. MSDK expects to build consistently in its own Gradle workspace at all times rather than being included al la carte module by module.

This updates the bundled version of MSDK plus adapts the update.sh and postinstall-android.sh in such a way that the test suite used in CI will pass all of the Cordova hybrid apps again.

./test/test_force.js --exit-on-failure --cli=forcehybrid --os=android --no-plugin-update

I'll add a little more commentary in the changes. I'm new to all of these scripts, so don't be shy in providing guidance 🙏🏻 Thanks!