[
  {
    "path": ".gitignore",
    "content": "# built application files\n*.apk\n*.ap_\n\n# files for the dex VM\n*.dex\n\n# Java class files\n*.class\n\n# generated files\nbin/\ngen/\n\n# Local configuration file (sdk path, etc)\nlocal.properties\n\n# Eclipse project files\n.classpath\n.project\n"
  },
  {
    "path": "README.md",
    "content": "# Android Plugin Framework\n> This project is pre-mature and may be changed very frequently.\n\n## Introduction\n\nAndroid Plugin Framework (APF) aims to providing a flexible, extensible framework, for Android applications, like OSGi for Java applications. App developers can design their Android applications in a totally new way: declar the interface of a application component, put the actual implementations of the component on the remote server, use APF library to load the actual implementations at runtime. In this way, app developers can dynamically update application components, or add features to an already installed application, without requiring the application being updated throught Android System Framework. A typical usage scenario can be skin: designers design various skins for an application according to pre-defined format and then put those skin files online. App users can then find and use skins through `skin store`, without having to installing a new version of the app.   \nAnother using scenario is for game design: design the `hard` level of a game in a different package that can be dynamically load into the game. When an user passes the `low` level of the game, the app can load the `hard` level of game code using APF dynamically. The user gets a seemlessly upgrade experience.\n \nThe project consists 3 major components: \n\n### APF core\nThe core library to find, verify and load plugin code from remote servers. Now, the architecture and the remote server is still pre-mature and is subject to change, so it is not open sourced yet. But it will be soon. \n\n### Plugin Build Scripts\nThe instructions to create your own plugins. Check [Creating Your APF Plugin] for details.\n\n### Example\nExample contains: \n\n1. Host application, Android Application Project. \n2. Plugin Interface, as an Android Library Project\n3. Plugin Implementation, as an Android Application Project\n  \nThere is already an example plugin implementation signed by [Umeng](http://www.umeng.com) and hosted on [Umeng](http://www.umeng.com)'s server side. If you want to try it out and have a different implementation, please contact xuxianming @ umeng.com\n\n\n## Creating Your APF Plugin\nTo create a effective APD plugin, you will need to design plugin interface first in an Android Library Project. Next, implement the declared interface in an Android Application Project. \n\n### Plugin Interface\n* Create an Android Library Project. \n\n```bash\nandroid create lib-project -n com_example_plugin1_ifs -t android-17 -k com.example.plugin1.ifs -p com.example.plugin1.ifs\n```\n\n* Update ant.properties according to the template file `apf-plugin-build/ant.properties.example`\n```bash\n/apf-opensource/com.example.plugin1$ cat ../apf-plugin-build/ant.properties.example >> ant.properties \n```\nThe `ant.properties` looks like:\n\n```bash\n# This file is used to override default values used by the Ant build system.\n#\n# This file must be checked into Version Control Systems, as it is\n# integral to the build system of your project.\n\n# This file is only used by the Ant script.\n\n# You can use this to override default values such as\n#  'source.dir' for the location of your java source folder and\n#  'out.dir' for the location of your output folder.\n\n# You can also use it define how the release builds are signed by declaring\n# the following properties:\n#  'key.store' for the location of your keystore and\n#  'key.alias' for the name of the key to use.\n# The password will be asked during the build when you use the 'release' target.\nkey.store=../apf-plugin-build/debug.keystore\nkey.store.password=android\nkey.alias=androiddebugkey\nkey.alias.password=android\n```\n\n\n* Update `build.xml` according to the template file `build.xml.plugin.ifs.example`\n```bash\napf-opensource/com.example.plugin1.ifs$ cp ../apf-plugin-build/build.xml.plugin.ifs.example build.xml \n```\n\n* Design the interface to be used by the host application. Check: `src/com/example/plugin1/ifs/`\n\n### Plugin Implementation\n* Create an Android Application Project. \n\n```bash\nandroid create project -n com_example_plugin1 -t android-17 -k com.example.plugin1 -p com.example.plugin1 -a PluginActivity\ncd com.example.plugin1\nandroid update project -p ./ --library ../com.example.plugin1.ifs\n\n```\n\n* Update ant.properties according to the template file `ant.properties.example`\n\n* Update `build.xml` according to the template file `build.xml.plugin.ifs.example`\n```bash\napf-opensource/com.example.plugin1$ cp ../apf-plugin-build/build.xml.plugin.example build.xml \n```\n\n* Design the interface to be used by the host application.\n  `src/com/example/plugin1/ifs/`\n\n\n\n\n> `Plugin Implementation` project will be will packaged/exported as `${package-name}.apk` and `Plugin Interface` project will be packaged to `${package-name}.ifs.jar`.\n\nFor example, `com.umeng.analytics.apk` for plugin, and `com.umeng.analytics.ifs.jar` for interfaces declarations.\n \n### Build\n```bash\n> ant deploy\n```\n\nThe output will be at `${project.dir}/bin/com.example.plugina.apk` and `${project.dir}/bin/com.example.plugina.ifs.jar`.\n                                                             \n> Note: if the plugin implementation projec ifself is a android library project, for example, like com.umeng.common, you need a little \"hack\" to the ant build system. First change ant.properties, change `android.library=true` to `android.library=false`. After successfully `ant deploy`, change it back to `android.library=true`, as is required by the upper stream application project. \n\n### Example\nSee [com.example.host] and [com.example.plugin1]. \n\nTo Run the example: \n```bash\nant \n```\n\n\n\n\n\n\n## Signing plugin\nAll plugins must be signed with private key. APF adopts similar mechanisms as Android app signing. See [Signing Your Applications](http://developer.android.com/tools/publishing/app-signing.html) for help.\n\n### Sign the plugin apk\n\n1. Make sure that you can build your plugin interface and implementation with `ant` successfully before preceeding.\n2. Configure `ant.properties`. Add the content of `ant.properties.example` to your plugin implementation project's `ant.properties`.\n3. Use `ant deploy` to build the release apk package.\nThis will build a *release* mode plugin apk called *[project-name]-release.apk* under bin/ directory. \n\n\n### Warning\n> When to release your plugin, remember to update the key and keystore. Do not use the example key store used here. \n> Caution: Since APF is in very pre-mature state, it's architecture and server side design is subject to change very frequently. For now, APF provided by [Umeng](http://www.umeng.com) does not allow any plugin signed by third party. If you want to try this out and want to deploy your plugin on [Umeng](http://www.umeng.com)'s platform, please develop your plugin first and contact us. After we check out that your plugin is secure, we can sign the plugin for you and host your plugin on  [Umeng](http://www.umeng.com)'s server. Please email to xuxianming at umeng.com. \nWe will open source implementation of APF when it's architecture design is freezed. \n\n\n\n\n"
  },
  {
    "path": "apf-plugin-build/ant.properties.example",
    "content": "key.store=../apf-plugin-build/debug.keystore\nkey.store.password=android\nkey.alias=androiddebugkey\nkey.alias.password=android\n"
  },
  {
    "path": "apf-plugin-build/apf-create-plugin.sh",
    "content": "#!bin/sh\n# input: name of interface: com.example.plugin.ifs \n# create android lib project. \nandroid create lib-project $\n\n# create android application project implementing the interface\nandroid create project \n\nandroid update project \n\n\n# update build.xml for plugin and its implementation\n\n\n# create host example. "
  },
  {
    "path": "apf-plugin-build/build.xml.plugin.example",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project name=\"com.umeng.analytics\" default=\"help\">\n\n\t<!-- START: Customized build target ant: deploy. Added by Lucas Xu at 2013/03/18 -->\n\n\t<tstamp>\n\n\t\t<format pattern=\"yyyy-MM-dd HH:mm z\" property=\"TODAY\" />\n\t</tstamp>\n\n\t<tstamp>\n\n\t\t<format pattern=\"yyyyMMddHHmm\" property=\"TIME\" />\n\t</tstamp>\n\n\t<property name=\"version\" value=\"${TIME}\" />\n\n\t<property name=\"user.name\" value=\"Umeng\" />\n\n\t<!-- END: Customized build target ant: deploy. Added by Lucas Xu at 2013/03/18 -->\n\n\n\t<!-- The local.properties file is created and updated by the 'android' tool. \n\t\tIt contains the path to the SDK. It should *NOT* be checked into Version \n\t\tControl Systems. -->\n\n\t<property file=\"local.properties\" />\n\n\t<!-- The ant.properties file can be created by you. It is only edited by \n\t\tthe 'android' tool to add properties to it. This is the place to change some \n\t\tAnt specific build properties. Here are some properties you may want to change/update: \n\t\tsource.dir The name of the source directory. Default is 'src'. out.dir The \n\t\tname of the output directory. Default is 'bin'. For other overridable properties, \n\t\tlook at the beginning of the rules files in the SDK, at tools/ant/build.xml \n\t\tProperties related to the SDK location or the project target should be updated \n\t\tusing the 'android' tool with the 'update' action. This file is an integral \n\t\tpart of the build system for your application and should be checked into \n\t\tVersion Control Systems. -->\n\n\t<property file=\"ant.properties\" />\n\n\t<!-- if sdk.dir was not set from one of the property file, then get it from \n\t\tthe ANDROID_HOME env var. This must be done before we load project.properties \n\t\tsince the proguard config can use sdk.dir -->\n\n\t<property environment=\"env\" />\n\n\t<condition property=\"sdk.dir\" value=\"${env.ANDROID_HOME}\">\n\n\t\t<isset property=\"env.ANDROID_HOME\" />\n\t</condition>\n\n\t<!-- The project.properties file is created and updated by the 'android' \n\t\ttool, as well as ADT. This contains project specific properties such as project \n\t\ttarget, and library dependencies. Lower level build properties are stored \n\t\tin ant.properties (or in .classpath for Eclipse projects). This file is an \n\t\tintegral part of the build system for your application and should be checked \n\t\tinto Version Control Systems. -->\n\n\t<loadproperties srcFile=\"project.properties\" />\n\n\t<!-- quick check on sdk.dir -->\n\n\t<fail message=\"sdk.dir is missing. Make sure to generate local.properties using &apos;android update project&apos; or to inject it through the ANDROID_HOME environment variable.\" unless=\"sdk.dir\" />\n\n\t<!-- START: Customized build target ant: deploy. Added by Lucas Xu at 2013/03/18 -->\n\n\t<!-- Converts this project's .class files into .dex files -->\n\t<target name=\"-pre-deploy\" depends=\"release\">\n\t\t<delete>\n\t\t\t<fileset dir=\"${out.absolute.dir}\" includes=\"*.dex\" />\n\t\t\t<fileset dir=\"${out.absolute.dir}\" includes=\"*.dex.d\" />\n\t\t\t<fileset dir=\"${out.absolute.dir}\" includes=\"*.apk\" />\n\t\t\t<fileset dir=\"${out.absolute.dir}/dexedLibs\" includes=\"*\" />\n\t\t</delete>\n\t\t<echo> executable=\"${dx}\" output=\"${intermediate.dex.file}\" nolocals=\"@{nolocals}\" forceJumbo=\"${dex.force.jumbo}\" disableDexMerger=\"true\" verbose=\"true\"</echo>\n\t\t<dex executable=\"${dx}\" output=\"${intermediate.dex.file}\" nolocals=\"@{nolocals}\" forceJumbo=\"${dex.force.jumbo}\" disableDexMerger=\"true\" verbose=\"true\">\n\t\t\t<path path=\"${out.absolute.dir}/classes\" />\n\t\t</dex>\n\t\t<package-helper />\n\t\t <antcall target=\"-release-sign\"/>\n\t</target>\n\t<target name=\"deploy\" depends=\"-pre-deploy\" />\n\n\n\n\n\n\t<!-- END: Customized build target ant: deploy. Added by Lucas Xu at 2013/03/18 -->\n\n\n\t<!-- Import per project custom build rules if present at the root of the \n\t\tproject. This is the place to put custom intermediary targets such as: -pre-build \n\t\t-pre-compile -post-compile (This is typically used for code obfuscation. \n\t\tCompiled code location: ${out.classes.absolute.dir} If this is not done in \n\t\tplace, override ${out.dex.input.absolute.dir}) -post-package -post-build \n\t\t-pre-clean -->\n\n\t<import file=\"custom_rules.xml\" optional=\"true\" />\n\n\t<!-- Import the actual build file. To customize existing targets, there \n\t\tare two options: - Customize only one target: - copy/paste the target into \n\t\tthis file, *before* the <import> task. - customize it to your needs. - Customize \n\t\tthe whole content of build.xml - copy/paste the content of the rules files \n\t\t(minus the top node) into this file, replacing the <import> task. - customize \n\t\tto your needs. *********************** ****** IMPORTANT ****** *********************** \n\t\tIn all cases you must update the value of version-tag below to read 'custom' \n\t\tinstead of an integer, in order to avoid having your file be overridden by \n\t\ttools such as \"android update project\" -->\n\t<!-- version-tag: custom -->\n\n\t<import file=\"${sdk.dir}/tools/ant/build.xml\" />\n\n</project>\n"
  },
  {
    "path": "apf-plugin-build/build.xml.plugin.ifs.example",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project name=\"com.umeng.analytics.ifs\" default=\"help\">\n\n\t<!--\n         The local.properties file is created and updated by the 'android' tool.\n         It contains the path to the SDK. It should *NOT* be checked into\n         Version Control Systems.\n    -->\n\n\t<property file=\"local.properties\" />\n\n\t<!--\n         The ant.properties file can be created by you. It is only edited by the\n         'android' tool to add properties to it.\n         This is the place to change some Ant specific build properties.\n         Here are some properties you may want to change/update:\n\n         source.dir\n             The name of the source directory. Default is 'src'.\n         out.dir\n             The name of the output directory. Default is 'bin'.\n\n         For other overridable properties, look at the beginning of the rules\n         files in the SDK, at tools/ant/build.xml\n\n         Properties related to the SDK location or the project target should\n         be updated using the 'android' tool with the 'update' action.\n\n         This file is an integral part of the build system for your\n         application and should be checked into Version Control Systems.\n    -->\n\n\t<property file=\"ant.properties\" />\n\n\t<!--\n         if sdk.dir was not set from one of the property file, then\n         get it from the ANDROID_HOME env var.\n         This must be done before we load project.properties since\n         the proguard config can use sdk.dir\n    -->\n\n\t<property environment=\"env\" />\n\n\t<condition property=\"sdk.dir\" value=\"${env.ANDROID_HOME}\">\n\n\t\t<isset property=\"env.ANDROID_HOME\" />\n\t</condition>\n\n\t<!--\n         The project.properties file is created and updated by the 'android'\n         tool, as well as ADT.\n\n         This contains project specific properties such as project target, and library\n         dependencies. Lower level build properties are stored in ant.properties\n         (or in .classpath for Eclipse projects).\n\n         This file is an integral part of the build system for your\n         application and should be checked into Version Control Systems.\n    -->\n\n\t<loadproperties srcFile=\"project.properties\" />\n\n\t<!-- quick check on sdk.dir -->\n\n\t<fail message=\"sdk.dir is missing. Make sure to generate local.properties using &apos;android update project&apos; or to inject it through the ANDROID_HOME environment variable.\" unless=\"sdk.dir\" />\n\n\t<!-- START: Customized build target ant: deploy. Added by Lucas Xu at 2013/03/18 -->\n\n\t<target name=\"help\">\n\n\t\t<!-- displays starts at col 13 |13 80| -->\n\n\t\t<echo>\n Android Ant Build. Available targets:\n        </echo>\n\n\t\t<echo>\n deploy: Build library jar file. The generated output is at \"${out.absolute.dir}/com.umeng.apf.jar\"\n        </echo>\n\n\t\t<echo>\n clean: Removes output files created by other targets.\n        </echo>\n\t</target>\n\n\t<target name=\"deploy\" depends=\"-compile\" description=\"package the library as a normal java jar file which will used by Android host application.\">\n\t\t<copy file=\"${out.library.jar.file}\" tofile=\"${out.dir}/${ant.project.name}.jar\" />\n\t\t<echo message=\"library jar file created at ${out.absolute.dir}/${ant.project.name}.jar .\" />\n\t</target>\n\n\t<!-- END: Customized build target ant: deploy. Added by Lucas Xu at 2013/03/18 -->\n\n\n\t<!--\n        Import per project custom build rules if present at the root of the project.\n        This is the place to put custom intermediary targets such as:\n            -pre-build\n            -pre-compile\n            -post-compile (This is typically used for code obfuscation.\n                           Compiled code location: ${out.classes.absolute.dir}\n                           If this is not done in place, override ${out.dex.input.absolute.dir})\n            -post-package\n            -post-build\n            -pre-clean\n    -->\n\n\t<import file=\"custom_rules.xml\" optional=\"true\" />\n\n\t<!--\n         Import the actual build file.\n\n         To customize existing targets, there are two options:\n         - Customize only one target:\n             - copy/paste the target into this file, *before* the\n               <import> task.\n             - customize it to your needs.\n         - Customize the whole content of build.xml\n             - copy/paste the content of the rules files (minus the top node)\n               into this file, replacing the <import> task.\n             - customize to your needs.\n\n         ***********************\n         ****** IMPORTANT ******\n         ***********************\n         In all cases you must update the value of version-tag below to read 'custom' instead of an integer,\n         in order to avoid having your file be overridden by tools such as \"android update project\"\n    -->\n\t<!-- version-tag: custom -->\n\n\t<import file=\"${sdk.dir}/tools/ant/build.xml\" />\n\n</project>\n"
  },
  {
    "path": "com.example.host/.settings/org.eclipse.core.resources.prefs",
    "content": "#Fri Jul 20 17:17:22 CST 2012\r\neclipse.preferences.version=1\r\nencoding/<project>=UTF-8\r\n"
  },
  {
    "path": "com.example.host/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    package=\"com.example.host\"\r\n    android:versionCode=\"2\"\r\n    android:versionName=\"1.5\" >\r\n\r\n    <uses-sdk\r\n        android:minSdkVersion=\"8\"\r\n        android:targetSdkVersion=\"8\" />\r\n\r\n    <uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\" >\r\n    </uses-permission>\r\n    <uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\" >\r\n    </uses-permission>\r\n    <uses-permission android:name=\"android.permission.INTERNET\" >\r\n    </uses-permission>\r\n    <uses-permission android:name=\"android.permission.WAKE_LOCK\" >\r\n    </uses-permission>\r\n    <uses-permission android:name=\"android.permission.READ_PHONE_STATE\" >\r\n    </uses-permission>\r\n    <uses-permission android:name=\"android.permission.READ_LOGS\" >\r\n    </uses-permission>\r\n    <uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" >\r\n    </uses-permission>\r\n\r\n    <application\r\n        android:icon=\"@drawable/ic_launcher\"\r\n        android:label=\"@string/app_name\" >\r\n        <activity\r\n            android:name=\".MainActivity\"\r\n            android:label=\"@string/app_name\" >\r\n            <intent-filter>\r\n                <action android:name=\"android.intent.action.MAIN\" />\r\n\r\n                <category android:name=\"android.intent.category.LAUNCHER\" />\r\n            </intent-filter>\r\n        </activity>\r\n  \r\n        <meta-data\r\n            android:name=\"UMENG_APPKEY\"\r\n            android:value=\"5009274e5270154d14000001\" >\r\n        </meta-data>\r\n        <meta-data\r\n            android:name=\"UMENG_CHANNEL\"\r\n            android:value=\"Channel ID\" />\r\n\r\n        <service\r\n            android:name=\"com.umeng.common.net.DownloadingService\"\r\n            android:exported=\"false\">\r\n        </service>\r\n    </application>\r\n\r\n</manifest>"
  },
  {
    "path": "com.example.host/proguard.cfg",
    "content": "-optimizationpasses 5\n-dontusemixedcaseclassnames\n-dontskipnonpubliclibraryclasses\n-dontpreverify\n-verbose\n-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*\n\n-keep public class * extends android.app.Activity\n-keep public class * extends android.app.Application\n-keep public class * extends android.app.Service\n-keep public class * extends android.content.BroadcastReceiver\n-keep public class * extends android.content.ContentProvider\n-keep public class * extends android.app.backup.BackupAgentHelper\n-keep public class * extends android.preference.Preference\n-keep public class com.android.vending.licensing.ILicensingService\n\n-keepclasseswithmembernames class * {\n    native <methods>;\n}\n\n-keepclasseswithmembers class * {\n    public <init>(android.content.Context, android.util.AttributeSet);\n}\n\n-keepclasseswithmembers class * {\n    public <init>(android.content.Context, android.util.AttributeSet, int);\n}\n\n-keepclassmembers class * extends android.app.Activity {\n   public void *(android.view.View);\n}\n\n-keepclassmembers enum * {\n    public static **[] values();\n    public static ** valueOf(java.lang.String);\n}\n\n-keep class * implements android.os.Parcelable {\n  public static final android.os.Parcelable$Creator *;\n}\n"
  },
  {
    "path": "com.example.host/project.properties",
    "content": "# This file is automatically generated by Android Tools.\n# Do not modify this file -- YOUR CHANGES WILL BE ERASED!\n#\n# This file must be checked in Version Control Systems.\n#\n# To customize properties used by the Ant build system use,\n# \"ant.properties\", and override values to adapt the script to your\n# project structure.\n\n# Project target.\ntarget=android-16\nandroid.library.reference.1=../com.example.plugin1.ifs\n"
  },
  {
    "path": "com.example.host/res/layout/main.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    android:layout_width=\"fill_parent\"\r\n    android:layout_height=\"fill_parent\"\r\n    android:orientation=\"vertical\" >\r\n\r\n    <EditText\r\n        android:id=\"@+id/edit_a\"\r\n        android:layout_width=\"fill_parent\"\r\n        android:layout_height=\"wrap_content\" \r\n        android:hint=\"a\"\r\n        android:inputType=\"numberSigned\"/>\"\n\r\n    <EditText\r\n        android:id=\"@+id/edit_b\"\r\n        android:layout_width=\"fill_parent\"\r\n        android:layout_height=\"wrap_content\" \r\n        android:hint=\"b\"\r\n        android:inputType=\"numberSigned\"/>\r\n\r\n    <Button\r\n        android:id=\"@+id/button_add\"\r\n        android:layout_width=\"fill_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:text=\"+\" />\r\n\r\n    <Button\r\n        android:id=\"@+id/button_minus\"\r\n        android:layout_width=\"fill_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:text=\"-\" />\r\n\r\n    <Button\r\n        android:id=\"@+id/button_multiply\"\r\n        android:layout_width=\"fill_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:text=\"*\" />\r\n\r\n    <Button\r\n        android:id=\"@+id/button_divide\"\r\n        android:layout_width=\"fill_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:text=\"/\" />\r\n\r\n    <TextView\r\n        android:id=\"@+id/text_result\"\r\n        android:layout_width=\"fill_parent\"\r\n        android:layout_height=\"wrap_content\" \r\n        android:hint=\"result\"/>\r\n</LinearLayout>"
  },
  {
    "path": "com.example.host/res/layout/second.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    android:orientation=\"vertical\" >\r\n\t<TextView \r\n\t    android:layout_width=\"fill_parent\"\r\n\t    android:layout_height=\"wrap_content\"\r\n\t    android:text=\"I'm just for test!\"/>\n</LinearLayout>"
  },
  {
    "path": "com.example.host/res/values/strings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<resources>\r\n\r\n    <string name=\"hello\">Hello World, TestUmengSdkActivity!</string>\r\n    <string name=\"app_name\">APF Example Host</string>\r\n    <string name=\"check\">Check</string>\r\n    <string name=\"go\">Go</string>\r\n\r\n</resources>"
  },
  {
    "path": "com.example.host/src/com/example/host/MainActivity.java",
    "content": "package com.example.host;\n\nimport android.app.Activity;\nimport android.os.Bundle;\nimport android.util.Log;\nimport android.view.View;\nimport android.view.View.OnClickListener;\nimport android.widget.EditText;\nimport android.widget.TextView;\n\nimport com.example.plugin1.ifs.ExampleApfService;\nimport com.umeng.apf.ApfException;\nimport com.umeng.apf.PluginManager;\n\npublic class MainActivity extends Activity {\n\tprivate static final String TAG = MainActivity.class.getName();\n\tprivate ExampleApfService service;\n\n\tEditText edit_a;\n\tEditText edit_b;\n\n\tTextView result;\n\n\t@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.main);\n\t\tLog.d(TAG, \"onCreate\");\n\t\t//\n\t\tnew Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tPluginManager.registerPlugin(\"com.example.plugin1\");\n\t\t\t\t\tPluginManager.loadPlugins(getApplicationContext());\n\t\t\t\t\tservice = (ExampleApfService) PluginManager\n\t\t\t\t\t\t\t.newInstance(\"com.example.plugin1.ExampleApfServiceImpl\");\n\t\t\t\t\tif (service == null)\n\t\t\t\t\t\tthrow new ApfException(\"unable to initialize plugin\");\n\t\t\t\t} catch (ApfException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}.start();\n\n\t\tedit_a = (EditText) findViewById(R.id.edit_a);\n\t\tedit_b = (EditText) findViewById(R.id.edit_b);\n\t\tresult = (TextView) findViewById(R.id.text_result);\n\t\tthis.findViewById(R.id.button_add).setOnClickListener(\n\t\t\t\tnew OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tint a = Integer.parseInt(edit_a.getText().toString());\n\t\t\t\t\t\tint b = Integer.parseInt(edit_b.getText().toString());\n\n\t\t\t\t\t\tif (service != null) {\n\t\t\t\t\t\t\tresult.setText(service.add(a, b));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t});\n\n\t\tthis.findViewById(R.id.button_minus).setOnClickListener(\n\t\t\t\tnew OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tint a = Integer.parseInt(edit_a.getText().toString());\n\t\t\t\t\t\tint b = Integer.parseInt(edit_b.getText().toString());\n\n\t\t\t\t\t\tif (service != null) {\n\t\t\t\t\t\t\tresult.setText(service.minus(a, b));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\tthis.findViewById(R.id.button_multiply).setOnClickListener(\n\t\t\t\tnew OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tint a = Integer.parseInt(edit_a.getText().toString());\n\t\t\t\t\t\tint b = Integer.parseInt(edit_b.getText().toString());\n\n\t\t\t\t\t\tif (service != null) {\n\t\t\t\t\t\t\tresult.setText(service.multiply(a, b));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\tthis.findViewById(R.id.button_divide).setOnClickListener(\n\t\t\t\tnew OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tint a = Integer.parseInt(edit_a.getText().toString());\n\t\t\t\t\t\tint b = Integer.parseInt(edit_b.getText().toString());\n\n\t\t\t\t\t\tif (service != null) {\n\t\t\t\t\t\t\tresult.setText(service.divide(a, b));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t}\n\n\t@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tLog.d(TAG, \"onPause\");\n\t}\n\n\t@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tLog.d(TAG, \"onResume\");\n\t}\n}"
  },
  {
    "path": "com.example.plugin1/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n      package=\"com.example.plugin1\"\n      android:versionCode=\"1\"\n      android:versionName=\"1.0\">\n    <application android:label=\"@string/app_name\" android:icon=\"@drawable/ic_launcher\">\n        <activity android:name=\"PluginActivity\"\n                  android:label=\"@string/app_name\">\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n        </activity>\n    </application>\n</manifest>\n"
  },
  {
    "path": "com.example.plugin1/ant.properties",
    "content": "# This file is used to override default values used by the Ant build system.\n#\n# This file must be checked into Version Control Systems, as it is\n# integral to the build system of your project.\n\n# This file is only used by the Ant script.\n\n# You can use this to override default values such as\n#  'source.dir' for the location of your java source folder and\n#  'out.dir' for the location of your output folder.\n\n# You can also use it define how the release builds are signed by declaring\n# the following properties:\n#  'key.store' for the location of your keystore and\n#  'key.alias' for the name of the key to use.\n# The password will be asked during the build when you use the 'release' target.\n\nkey.store=../apf-plugin-build/debug.keystore\nkey.store.password=android\nkey.alias=androiddebugkey\nkey.alias.password=android\n"
  },
  {
    "path": "com.example.plugin1/build.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project name=\"com.example.plugin1\" default=\"help\">\n\n\t<!-- START: Customized build target ant: deploy. Added by Lucas Xu at 2013/03/18 -->\n\n\t<tstamp>\n\n\t\t<format pattern=\"yyyy-MM-dd HH:mm z\" property=\"TODAY\" />\n\t</tstamp>\n\n\t<tstamp>\n\n\t\t<format pattern=\"yyyyMMddHHmm\" property=\"TIME\" />\n\t</tstamp>\n\n\t<property name=\"version\" value=\"${TIME}\" />\n\n\t<property name=\"user.name\" value=\"Umeng\" />\n\n\t<!-- END: Customized build target ant: deploy. Added by Lucas Xu at 2013/03/18 -->\n\n\n\t<!-- The local.properties file is created and updated by the 'android' tool. \n\t\tIt contains the path to the SDK. It should *NOT* be checked into Version \n\t\tControl Systems. -->\n\n\t<property file=\"local.properties\" />\n\n\t<!-- The ant.properties file can be created by you. It is only edited by \n\t\tthe 'android' tool to add properties to it. This is the place to change some \n\t\tAnt specific build properties. Here are some properties you may want to change/update: \n\t\tsource.dir The name of the source directory. Default is 'src'. out.dir The \n\t\tname of the output directory. Default is 'bin'. For other overridable properties, \n\t\tlook at the beginning of the rules files in the SDK, at tools/ant/build.xml \n\t\tProperties related to the SDK location or the project target should be updated \n\t\tusing the 'android' tool with the 'update' action. This file is an integral \n\t\tpart of the build system for your application and should be checked into \n\t\tVersion Control Systems. -->\n\n\t<property file=\"ant.properties\" />\n\n\t<!-- if sdk.dir was not set from one of the property file, then get it from \n\t\tthe ANDROID_HOME env var. This must be done before we load project.properties \n\t\tsince the proguard config can use sdk.dir -->\n\n\t<property environment=\"env\" />\n\n\t<condition property=\"sdk.dir\" value=\"${env.ANDROID_HOME}\">\n\n\t\t<isset property=\"env.ANDROID_HOME\" />\n\t</condition>\n\n\t<!-- The project.properties file is created and updated by the 'android' \n\t\ttool, as well as ADT. This contains project specific properties such as project \n\t\ttarget, and library dependencies. Lower level build properties are stored \n\t\tin ant.properties (or in .classpath for Eclipse projects). This file is an \n\t\tintegral part of the build system for your application and should be checked \n\t\tinto Version Control Systems. -->\n\n\t<loadproperties srcFile=\"project.properties\" />\n\n\t<!-- quick check on sdk.dir -->\n\n\t<fail message=\"sdk.dir is missing. Make sure to generate local.properties using &apos;android update project&apos; or to inject it through the ANDROID_HOME environment variable.\" unless=\"sdk.dir\" />\n\n\t<!-- START: Customized build target ant: deploy. Added by Lucas Xu at 2013/03/18 -->\n\n\t<!-- Converts this project's .class files into .dex files -->\n\t<target name=\"-pre-deploy\" depends=\"release\">\n\t\t<delete>\n\t\t\t<fileset dir=\"${out.absolute.dir}\" includes=\"*.dex\" />\n\t\t\t<fileset dir=\"${out.absolute.dir}\" includes=\"*.dex.d\" />\n\t\t\t<fileset dir=\"${out.absolute.dir}\" includes=\"*.apk\" />\n\t\t\t<fileset dir=\"${out.absolute.dir}/dexedLibs\" includes=\"*\" />\n\t\t</delete>\n\t\t<echo> executable=\"${dx}\" output=\"${intermediate.dex.file}\" nolocals=\"@{nolocals}\" forceJumbo=\"${dex.force.jumbo}\" disableDexMerger=\"true\" verbose=\"true\"</echo>\n\t\t<dex executable=\"${dx}\" output=\"${intermediate.dex.file}\" nolocals=\"@{nolocals}\" forceJumbo=\"${dex.force.jumbo}\" disableDexMerger=\"true\" verbose=\"true\">\n\t\t\t<path path=\"${out.absolute.dir}/classes\" />\n\t\t</dex>\n\t\t<package-helper />\n\t\t <antcall target=\"-release-sign\"/>\n\t</target>\n\t<target name=\"deploy\" depends=\"-pre-deploy\" />\n\n\n\n\n\n\t<!-- END: Customized build target ant: deploy. Added by Lucas Xu at 2013/03/18 -->\n\n\n\t<!-- Import per project custom build rules if present at the root of the \n\t\tproject. This is the place to put custom intermediary targets such as: -pre-build \n\t\t-pre-compile -post-compile (This is typically used for code obfuscation. \n\t\tCompiled code location: ${out.classes.absolute.dir} If this is not done in \n\t\tplace, override ${out.dex.input.absolute.dir}) -post-package -post-build \n\t\t-pre-clean -->\n\n\t<import file=\"custom_rules.xml\" optional=\"true\" />\n\n\t<!-- Import the actual build file. To customize existing targets, there \n\t\tare two options: - Customize only one target: - copy/paste the target into \n\t\tthis file, *before* the <import> task. - customize it to your needs. - Customize \n\t\tthe whole content of build.xml - copy/paste the content of the rules files \n\t\t(minus the top node) into this file, replacing the <import> task. - customize \n\t\tto your needs. *********************** ****** IMPORTANT ****** *********************** \n\t\tIn all cases you must update the value of version-tag below to read 'custom' \n\t\tinstead of an integer, in order to avoid having your file be overridden by \n\t\ttools such as \"android update project\" -->\n\t<!-- version-tag: custom -->\n\n\t<import file=\"${sdk.dir}/tools/ant/build.xml\" />\n\n</project>\n"
  },
  {
    "path": "com.example.plugin1/proguard-project.txt",
    "content": "# To enable ProGuard in your project, edit project.properties\n# to define the proguard.config property as described in that file.\n#\n# Add project specific ProGuard rules here.\n# By default, the flags in this file are appended to flags specified\n# in ${sdk.dir}/tools/proguard/proguard-android.txt\n# You can edit the include path and order by changing the ProGuard\n# include property in project.properties.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# Add any project specific keep options here:\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n"
  },
  {
    "path": "com.example.plugin1/project.properties",
    "content": "# This file is automatically generated by Android Tools.\n# Do not modify this file -- YOUR CHANGES WILL BE ERASED!\n#\n# This file must be checked in Version Control Systems.\n#\n# To customize properties used by the Ant build system edit\n# \"ant.properties\", and override values to adapt the script to your\n# project structure.\n#\n# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):\n#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt\n\n# Project target.\ntarget=android-17\nandroid.library.reference.1=../com.example.plugin1.ifs\n"
  },
  {
    "path": "com.example.plugin1/res/layout/main.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:orientation=\"vertical\"\n    android:layout_width=\"fill_parent\"\n    android:layout_height=\"fill_parent\"\n    >\n<TextView\n    android:layout_width=\"fill_parent\"\n    android:layout_height=\"wrap_content\"\n    android:text=\"Hello World, PluginActivity\"\n    />\n</LinearLayout>\n\n"
  },
  {
    "path": "com.example.plugin1/res/values/strings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <string name=\"app_name\">PluginActivity</string>\n</resources>\n"
  },
  {
    "path": "com.example.plugin1/src/com/example/plugin1/ExampleApfServiceImpl.java",
    "content": "package com.example.plugin1;\n\nimport android.util.Log;\n\n/**\n * Implementation of plugin interface\n * {@link com.example.plugin1.ifs.ExampleApfService}\n * \n * @author lucas\n * \n */\npublic class ExampleApfServiceImpl implements\n\t\tcom.example.plugin1.ifs.ExampleApfService {\n\tprivate static final String TAG = ExampleApfServiceImpl.class.getName();\n\n\t/**\n\t * Flawed implementation, mind overflow.\n\t */\n\t@Override\n\tpublic int add(int a, int b) {\n\t\tLog.d(TAG, \"calling implementation add.\");\n\t\treturn a + b;\n\t}\n\n\t@Override\n\tpublic int minus(int a, int b) {\n\t\tLog.d(TAG, \"calling implementation minus.\");\n\t\treturn a - b;\n\t}\n\n\t/**\n\t * Flawed implementation of {@link #multiply(int, int)}. Mind overflow.\n\t */\n\t@Override\n\tpublic int multiply(int a, int b) {\n\t\tLog.d(TAG, \"calling implementation multiply.\");\n\t\treturn a * b;\n\t}\n\n\t/**\n\t * Flawed implementation, mind divided by zero.\n\t */\n\t@Override\n\tpublic int divide(int a, int b) {\n\t\tLog.d(TAG, \"calling implementation divide.\");\n\t\treturn a / b;\n\t}\n}\n"
  },
  {
    "path": "com.example.plugin1/src/com/example/plugin1/PluginActivity.java",
    "content": "package com.example.plugin1;\n\nimport android.app.Activity;\nimport android.os.Bundle;\n\npublic class PluginActivity extends Activity\n{\n    /** Called when the activity is first created. */\n    @Override\n    public void onCreate(Bundle savedInstanceState)\n    {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.main);\n    }\n}\n"
  },
  {
    "path": "com.example.plugin1.ifs/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n      package=\"com.example.plugin1.ifs\"\n      android:versionCode=\"1\"\n      android:versionName=\"1.0\">\n    <application android:label=\"@string/app_name\" android:icon=\"@drawable/ic_launcher\">\n        <activity android:name=\"ACTIVITY_ENTRY_NAME\"\n                  android:label=\"@string/app_name\">\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n        </activity>\n    </application>\n</manifest>\n"
  },
  {
    "path": "com.example.plugin1.ifs/ant.properties",
    "content": "# This file is used to override default values used by the Ant build system.\n#\n# This file must be checked into Version Control Systems, as it is\n# integral to the build system of your project.\n\n# This file is only used by the Ant script.\n\n# You can use this to override default values such as\n#  'source.dir' for the location of your java source folder and\n#  'out.dir' for the location of your output folder.\n\n# You can also use it define how the release builds are signed by declaring\n# the following properties:\n#  'key.store' for the location of your keystore and\n#  'key.alias' for the name of the key to use.\n# The password will be asked during the build when you use the 'release' target.\n\nkey.store=../apf-plugin-build/debug.keystore\nkey.store.password=android\nkey.alias=androiddebugkey\nkey.alias.password=android\n"
  },
  {
    "path": "com.example.plugin1.ifs/build.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project name=\"com.example.plugin1.ifs\" default=\"help\">\n\n\t<!--\n         The local.properties file is created and updated by the 'android' tool.\n         It contains the path to the SDK. It should *NOT* be checked into\n         Version Control Systems.\n    -->\n\n\t<property file=\"local.properties\" />\n\n\t<!--\n         The ant.properties file can be created by you. It is only edited by the\n         'android' tool to add properties to it.\n         This is the place to change some Ant specific build properties.\n         Here are some properties you may want to change/update:\n\n         source.dir\n             The name of the source directory. Default is 'src'.\n         out.dir\n             The name of the output directory. Default is 'bin'.\n\n         For other overridable properties, look at the beginning of the rules\n         files in the SDK, at tools/ant/build.xml\n\n         Properties related to the SDK location or the project target should\n         be updated using the 'android' tool with the 'update' action.\n\n         This file is an integral part of the build system for your\n         application and should be checked into Version Control Systems.\n    -->\n\n\t<property file=\"ant.properties\" />\n\n\t<!--\n         if sdk.dir was not set from one of the property file, then\n         get it from the ANDROID_HOME env var.\n         This must be done before we load project.properties since\n         the proguard config can use sdk.dir\n    -->\n\n\t<property environment=\"env\" />\n\n\t<condition property=\"sdk.dir\" value=\"${env.ANDROID_HOME}\">\n\n\t\t<isset property=\"env.ANDROID_HOME\" />\n\t</condition>\n\n\t<!--\n         The project.properties file is created and updated by the 'android'\n         tool, as well as ADT.\n\n         This contains project specific properties such as project target, and library\n         dependencies. Lower level build properties are stored in ant.properties\n         (or in .classpath for Eclipse projects).\n\n         This file is an integral part of the build system for your\n         application and should be checked into Version Control Systems.\n    -->\n\n\t<loadproperties srcFile=\"project.properties\" />\n\n\t<!-- quick check on sdk.dir -->\n\n\t<fail message=\"sdk.dir is missing. Make sure to generate local.properties using &apos;android update project&apos; or to inject it through the ANDROID_HOME environment variable.\" unless=\"sdk.dir\" />\n\n\t<!-- START: Customized build target ant: deploy. Added by Lucas Xu at 2013/03/18 -->\n\n\t<target name=\"help\">\n\n\t\t<!-- displays starts at col 13 |13 80| -->\n\n\t\t<echo>\n Android Ant Build. Available targets:\n        </echo>\n\n\t\t<echo>\n deploy: Build library jar file. The generated output is at \"${out.absolute.dir}/com.umeng.apf.jar\"\n        </echo>\n\n\t\t<echo>\n clean: Removes output files created by other targets.\n        </echo>\n\t</target>\n\n\t<target name=\"deploy\" depends=\"-compile\" description=\"package the library as a normal java jar file which will used by Android host application.\">\n\t\t<copy file=\"${out.library.jar.file}\" tofile=\"${out.dir}/${ant.project.name}.jar\" />\n\t\t<echo message=\"library jar file created at ${out.absolute.dir}/${ant.project.name}.jar .\" />\n\t</target>\n\n\t<!-- END: Customized build target ant: deploy. Added by Lucas Xu at 2013/03/18 -->\n\n\n\t<!--\n        Import per project custom build rules if present at the root of the project.\n        This is the place to put custom intermediary targets such as:\n            -pre-build\n            -pre-compile\n            -post-compile (This is typically used for code obfuscation.\n                           Compiled code location: ${out.classes.absolute.dir}\n                           If this is not done in place, override ${out.dex.input.absolute.dir})\n            -post-package\n            -post-build\n            -pre-clean\n    -->\n\n\t<import file=\"custom_rules.xml\" optional=\"true\" />\n\n\t<!--\n         Import the actual build file.\n\n         To customize existing targets, there are two options:\n         - Customize only one target:\n             - copy/paste the target into this file, *before* the\n               <import> task.\n             - customize it to your needs.\n         - Customize the whole content of build.xml\n             - copy/paste the content of the rules files (minus the top node)\n               into this file, replacing the <import> task.\n             - customize to your needs.\n\n         ***********************\n         ****** IMPORTANT ******\n         ***********************\n         In all cases you must update the value of version-tag below to read 'custom' instead of an integer,\n         in order to avoid having your file be overridden by tools such as \"android update project\"\n    -->\n\t<!-- version-tag: custom -->\n\n\t<import file=\"${sdk.dir}/tools/ant/build.xml\" />\n\n</project>\n"
  },
  {
    "path": "com.example.plugin1.ifs/proguard-project.txt",
    "content": "# To enable ProGuard in your project, edit project.properties\n# to define the proguard.config property as described in that file.\n#\n# Add project specific ProGuard rules here.\n# By default, the flags in this file are appended to flags specified\n# in ${sdk.dir}/tools/proguard/proguard-android.txt\n# You can edit the include path and order by changing the ProGuard\n# include property in project.properties.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# Add any project specific keep options here:\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n"
  },
  {
    "path": "com.example.plugin1.ifs/project.properties",
    "content": "# This file is automatically generated by Android Tools.\n# Do not modify this file -- YOUR CHANGES WILL BE ERASED!\n#\n# This file must be checked in Version Control Systems.\n#\n# To customize properties used by the Ant build system edit\n# \"ant.properties\", and override values to adapt the script to your\n# project structure.\n#\n# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):\n#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt\n\nandroid.library=true\n# Project target.\ntarget=android-17\n"
  },
  {
    "path": "com.example.plugin1.ifs/res/layout/main.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:orientation=\"vertical\"\n    android:layout_width=\"fill_parent\"\n    android:layout_height=\"fill_parent\"\n    >\n<TextView\n    android:layout_width=\"fill_parent\"\n    android:layout_height=\"wrap_content\"\n    android:text=\"Hello World, ACTIVITY_ENTRY_NAME\"\n    />\n</LinearLayout>\n\n"
  },
  {
    "path": "com.example.plugin1.ifs/res/values/strings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <string name=\"app_name\">ACTIVITY_ENTRY_NAME</string>\n</resources>\n"
  },
  {
    "path": "com.example.plugin1.ifs/src/com/example/plugin1/ifs/ExampleApfService.java",
    "content": "package com.example.plugin1.ifs;\n\n/**\n * Example APF Plugin interface. Declar the interface methods here and implement\n * the interface in project .com.example.plugin1\n * \n * @author lucas\n * \n */\npublic interface ExampleApfService {\n\tpublic int add(int a, int b);\n\n\tpublic int minus(int a, int b);\n\n\tpublic int multiply(int a, int b);\n\n\tpublic int divide(int a, int b);\n}\n"
  }
]