Skip to Content

SDK SP10 files are now delivered as JAR and AAR files

The SP10 release has simplified the process of integrating MAF logon components into your project.If you want to know more about the new features, please visit this blog SMP SDK SP10 released – What is new ?

Once you have your Android Project created, follow these steps to include the MAF dependencies with SP10:

1. Right click on app and select New -> Module from the context menu

/wp-content/uploads/2015/11/step1_830325.jpg

2. Select Import .JAR or .AAR Package.

Note: The ‘aar’ bundle is the binary distribution of an Android Library Project.

/wp-content/uploads/2015/11/step2_830326.jpg

3. Click on the Browse button and navigate to the SMP 3.0 SDK installation folder and find the mafsettingscreen-res-xxx resource folder. Click on Next

<Client SDK dir>\NativeSDK\MAFReuse\Android\libraries\mafsettingscreen-xxx.aar

/wp-content/uploads/2015/11/step3_830324.jpg

4. Repeat steps 1-3 to import mafuicomponents-xxx.aar

<Client SDK dir>\NativeSDK\MAFReuse\Android\libraries\ mafuicomponents-xxx.aar

/wp-content/uploads/2015/11/step4_830307.jpg

5. Repeat steps 1-3 to import maflogonui-xxx.aar

<Client SDK dir>\NativeSDK\ODataFramework\Android\libraries\ maflogonui-xxx.aar

/wp-content/uploads/2015/11/step5_830308.jpg

6. Repeat steps 1-3 to import MobilePlace-xxx.aar. MobilePlace jar was replaced by the .aar package, so it needs to be included in the same way as the MAF packages.

<Client SDK dir>\NativeSDK\ODataFramework\Android\libraries\ MobilePlace-xxx.aar

/wp-content/uploads/2015/11/step6_830315.jpg

Your project should look like the image below

/wp-content/uploads/2015/11/step6_1_830316.jpg

7. Right-click the dependent module and select Open -> Module Settings

/wp-content/uploads/2015/11/step7_830317.jpg

8. Click the plus icon to add new dependencies

/wp-content/uploads/2015/11/step8_830321.jpg

9. Select them all and click OK

/wp-content/uploads/2015/11/step9_830322.jpg

10. Now you can import the rest of the libraries. Using the project view, copy the following jar libraries from the SDK installation folders and paste it into the libs folder in Android Studio

Notice that maflogonui.jar, mafuicomponent.jar, mafsettingscreen.jar and MobilePlace.jar does not longer exist. Once you include the .aar packages, you don’t need to include additional .jar libraries to your project.

  • AfariaSLL.jar
  • ClientHubSLL
  • ClientLog.jar
  • Common.jar
  • Connectivity.jar
  • CoreServices.jar
  • DataVaultLib.jar
  • E2ETrace.jar
  • HttpConvAuthFlows.jar
  • HttpConversation.jar
  • maflogger.jar
  • maflogoncore.jar
  • ODataAPI.jar
  • odataoffline.jar (offline store)
  • ODataOnline.jar (online store)
  • perflib.jar
  • Request.jar
  • sap-e2etrace.jar
  • SupportabilityFacade.jar
  • XscriptParser.jar

/wp-content/uploads/2015/11/step10_830323.jpg

The rest is business as usual,

You can continue with step 4.6 Import SMP Libraries from this guide How To… Setup MAF resources in Android Studio

Hope this helps,

Claudia

8 Comments
You must be Logged on to comment or reply to a post.