<?xml version="1.0" encoding="UTF-8" ?>
<!--
  Copyright (c) 2014 The Chromium Authors. All rights reserved.
  Use of this source code is governed by a BSD-style license that can be
  found in the LICENSE file.
-->
<plugin xmlns="http://cordova.apache.org/ns/plugins/1.0"
    id="cordova-plugin-chrome-apps-system-memory"
    version="1.1.1">
  <engines>
    <engine name="cordova" version=">=3.0.0" />
  </engines>

  <name>Chrome System Memory API</name>
  <keywords>chrome,system,memory</keywords>
  <repo>https://github.com/MobileChromeApps/cordova-plugin-chrome-apps-system-memory.git</repo>
  <issue>https://github.com/MobileChromeApps/cordova-plugin-chrome-apps-system-memory/issues</issue>

  <js-module src="system.memory.js" name="system.memory">
    <clobbers target="chrome.system.memory" />
  </js-module>

  <platform name="android">
    <source-file src="src/android/ChromeSystemMemory.java" target-dir="src/org/chromium" />

    <config-file target="res/xml/config.xml" parent="/widget">
      <feature name="ChromeSystemMemory">
        <param name="android-package" value="org.chromium.ChromeSystemMemory"/>
      </feature>
    </config-file>
  </platform>

  <platform name="ios">
    <source-file src="src/ios/ChromeSystemMemory.m" />

    <config-file target="config.xml" parent="/widget">
      <feature name="ChromeSystemMemory">
        <param name="ios-package" value="ChromeSystemMemory"/>
      </feature>
    </config-file>
  </platform>
</plugin>
