This page describes a way to inject a custom Native Plugin (NPI) into the Android and iOS Mobile Application Framework (MAF) Platforms. The NPI is a standalone/self contained part of an application and gives you a way to incorporate your own functionality into your Apps through the MAF Platforms.
Android Native Plug-in Information
Native Plugin Requirement
For the NPI, the following information is needed:
- Android Library Project packaged into an Android Archive File (AAR).
- A JSON Configuration file that provides the following (The JSON string will be passed to the Fragment):
- Fragment Classname (Full Class Name including the package name) of the initial custom Fragment included in the Library Project.
- Any arguments/parameters that the NPI needs.
Example JSON File:
{ “FragmentClassName”: “com.mobilesmith.rallyconnector.ui.LoginFragment”, “rally_url”: “https://rally1.rallydev.com”, “company_name”: “MobileSmith” }
System Frameworks
The Android MAF Platform builds towards the following versions of the Android Platform:
- Compile SDK Version: 22
- Build Tools Version 22.0.1
- Target API Version: 22
- Minimum SDK Version: 14
- The builds include the following libraries:
- Android Support Compat Library v7:22.0.0 - ‘com.android.support:appcompat-v7:22.0.0’
- Google Play Services Locaion v7.0.0 - ‘com.google.android.gms:play-services-location:7.0.0’
- Google Play Services Maps v7.0.0 - ‘com.google.android.gms:play-services-maps:7.0.0’
- Google Play Services Analytics v7.0.0 - ‘com.google.android.gms:play-services-analytics:7.0.0’
- DiskLRUCache Library v2.0.2 - ‘com.jakewharton:disklrucache:2.0.2’
- HttpMine v4.2 - ‘org.apache.httpcomponents:httpmime:4.2’
- Flurry Analytics v3.4.0
- Google Cloud Messaging Library
- Picasso Library v 2.5.2 - ‘com.squareup.picasso:picasso:2.5.2’
- Spring Android v1.0.1
- ‘org.springframework.android:spring-android-core:1.0.1.RELEASE’
- ‘org.springframework.android:spring-android-rest-template:1.0.1.RELEASE’
- Scribe (OAuth Library) v1.3.7 - ‘org.scribe:scribe:1.3.7’
- GreenRobot EventBus v2.4.0 - ‘de.greenrobot:eventbus:2.4.0’
The NPI must provide any 3rd party libraries in the deployed AAR file.
The MAF builds are currently built towards JDK 1.5.