Skip to Content
Author's profile photo Claudia Pacheco

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

Assigned Tags

      8 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Hi Claudia, this is a good tutorial I followed it but I found this way a little eassier Setting Up Android Studio for Native SDK Development - Developer - SAP Library  and I just have to do it one time for the all my apps. Thanks.

      Author's profile photo Claudia Pacheco
      Claudia Pacheco
      Blog Post Author

      Thanks Denis for sharing the link, it's good to know.

      Author's profile photo Former Member
      Former Member

      Thanks for the help. Was really scratching my head.

      Author's profile photo Former Member
      Former Member

      Thanks for your help Claudia .

      I'm Returning to world SMP and this is first post That I read.

      Excelent.  🙂

      Author's profile photo Emanuel Affatati
      Emanuel Affatati

      Hi Caludia,

      I've been able to add the aar files into my android project.

      Now I am trying to use the MAF Logon module, and I cannot do it because it tells me that the "LogonUIFacade" is deprecated.

      I am following the following post:

      http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/201f502f-d7b9-3210-45a4-f0495c2e2f7f?QuickLink=index&…

      Are you aware about which is the component that replaced the LogonUIFacade object?

      Thanks in advance,

      Emanuel

      Author's profile photo Claudia Pacheco
      Claudia Pacheco
      Blog Post Author

      Thanks Emanuel for the heads up. I recently noticed it. When I get more details I'll let you know.

      Author's profile photo Emanuel Affatati
      Emanuel Affatati

      Thanks Claudia.

      Please keep me updated.

      I am writing a blog about the he MAF Logon module and I want to share all the last information.

      Regards,

      Emanuel

      Author's profile photo Former Member
      Former Member

      Hi Claudia,

      I am trying to develop android application using MAF Logon module in eclipse.SMP SDK which I used is SMP 3.0 SP11. I am unable to find the resource folder and .apklib files. Please help me.

      Regards,

      Ramakrishna.A