-
Notifications
You must be signed in to change notification settings - Fork 385
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
Facing issues while updating salesforce mobile SDK from 10 to 12 #2572
Comments
Before 11.1, generated hybrid apps always got MSDK from sources (bundled in the MSDK cordova plugin) at Since 11.1, generated hybrid apps get MSDK from Maven Central in production (tagged version) and from sources in pre-release (dev branch). However when getting them from sources, they are expected from a different location In your case I recommend you check our the MSDK in the git clone --tag v12.0.1 --single-branch --depth 1 https://github.com/forcedotcom/SalesforceMobileSDK-Android ./platforms/android/mobile_sdk Then apply your changes Then the exiting code in settings.gradle will ensure it gets picked up include ":app"
def salesforceMobileSdkRoot = new File('mobile_sdk/SalesforceMobileSDK-Android');
if (salesforceMobileSdkRoot.exists()) {
includeBuild(salesforceMobileSdkRoot)
} On our side, we will clean SalesforceMobileSDK-CordovaPlugin so that it no longer embeds source files from SalesforceMobileSDK-Android since they are never used. |
After making the changes you suggested, drawable resources related to salesforce sdk are not being found. error: package com.salesforce.androidsdk.accounts does not exist |
So you have a clone of your SalesforceMobileSDK-Android fork in a folder mobile_sdk ? From Android Studio, you can tell it's picking the code from there ? Did you gradle sync and then did a clean rebuild ? |
You settings.gradle points to your correct folder?
expects a |
Closing due to a lack of activity. |
We are trying to update Salesforce Mobile SDK from 10.2 to 12.1, So we created a new project using forcehybrid create command, We identified that the SDK dependencies like SalesforceSDk, SmartStore, SalesforceHybrid etc. are included as a composite gradle module in the new project.
̇We have our custom local changes in Salesforce Mobile SDK files and also we have created a cordova plugin which is directly importing SDK libraries.
Now the imports are broken in our custom plugin and changes we are doing inside the root directory/plugins.com.salesforce are not reflecting.
Please provide a solution so we can safely upgrade MobileSDK.
Thanks
The text was updated successfully, but these errors were encountered: