You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2015/03/31 19:57:51 UTC

[1/6] cordova-plugin-battery-status git commit: CB-7971 Add cordova-plugin-battery-status support for Windows Phone 8.1

Repository: cordova-plugin-battery-status
Updated Branches:
  refs/heads/old-ID c8dc4b93b -> 3aa0dfad1


CB-7971 Add cordova-plugin-battery-status support for Windows Phone 8.1

Added Windows Phone 8.1 support
Updated the documentation

github close #19


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/commit/c29fdde2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/tree/c29fdde2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/diff/c29fdde2

Branch: refs/heads/old-ID
Commit: c29fdde22f0e65dcdac4942302248e15019e4672
Parents: c8dc4b9
Author: sgrebnov <v-...@microsoft.com>
Authored: Thu Mar 19 17:41:13 2015 +0300
Committer: sgrebnov <v-...@microsoft.com>
Committed: Thu Mar 19 17:41:13 2015 +0300

----------------------------------------------------------------------
 README.md                                       |  16 ++++
 plugin.xml                                      |   9 ++
 src/windows/BatteryProxy.js                     |  76 ++++++++++++++++
 src/windows/BatteryStatus.winmd                 | Bin 0 -> 9216 bytes
 src/windows/BatteryStatus/BatteryStatus.sln     |  22 +++++
 .../BatteryStatus/BatteryStatus/.gitignore      |   3 +
 .../BatteryStatus/BatteryStatus.cs              |  90 +++++++++++++++++++
 .../BatteryStatus/BatteryStatus.csproj          |  54 +++++++++++
 .../BatteryStatus/Properties/AssemblyInfo.cs    |  30 +++++++
 9 files changed, 300 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/c29fdde2/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 829d40d..3c6247f 100644
--- a/README.md
+++ b/README.md
@@ -55,6 +55,7 @@ attach an event listener after the `deviceready` event fires.
 - Android
 - BlackBerry 10
 - Windows Phone 7 and 8
+- Windows (Windows Phone 8.1 only)
 - Tizen
 - Firefox OS
 
@@ -64,6 +65,11 @@ Windows Phone 7 does not provide native APIs to determine battery
 level, so the `level` property is unavailable.  The `isPlugged`
 parameter _is_ supported.
 
+### Windows Quirks
+
+Windows Phone 8.1 does not support `isPlugged` parameter.
+The `level` parameter _is_ supported.
+
 ### Example
 
     window.addEventListener("batterystatus", onBatteryStatus, false);
@@ -96,6 +102,11 @@ an event listener once the `deviceready` event fires.
 - BlackBerry 10
 - Tizen
 - Firefox OS
+- Windows (Windows Phone 8.1 only)
+
+### Windows Quirks
+
+Windows Phone 8.1 will fire `batterycritical` event regardless of plugged state as it is not supported.
 
 ### Example
 
@@ -129,6 +140,11 @@ attach an event listener once the `deviceready` event fires.
 - BlackBerry 10
 - Tizen
 - Firefox OS
+- Windows (Windows Phone 8.1 only)
+
+### Windows Quirks
+
+Windows Phone 8.1 will fire `batterylow` event regardless of plugged state as it is not supported.
 
 ### Example
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/c29fdde2/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 63e72f4..4c7cff6 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -101,6 +101,15 @@
         <source-file src="src/wp/Battery.cs" />
     </platform>
 
+    <!-- windows -->
+    <platform name="windows">	
+        <js-module src="src/windows/BatteryProxy.js" name="Battery">
+            <runs />
+        </js-module>
+        
+        <framework src="src/windows/BatteryStatus.winmd" custom="true"/>
+    </platform>
+
     <!-- tizen -->
     <platform name="tizen">
         <js-module src="src/tizen/BatteryStatusProxy.js" name="BatteryStatusProxy">

http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/c29fdde2/src/windows/BatteryProxy.js
----------------------------------------------------------------------
diff --git a/src/windows/BatteryProxy.js b/src/windows/BatteryProxy.js
new file mode 100644
index 0000000..b6644c0
--- /dev/null
+++ b/src/windows/BatteryProxy.js
@@ -0,0 +1,76 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+var stopped;
+
+function handleResponse(successCb, errorCb, jsonResponse) {
+    var info = JSON.parse(jsonResponse);
+
+    if (info.hasOwnProperty("exceptionMessage")) {
+        errorCb(info.exceptionMessage);
+        return;
+    }
+
+    successCb(info, { keepCallback: true });
+}
+
+var Battery = {
+    start: function (win, fail, args, env) {
+        stopped = false;
+        try {
+            if (!WinJS.Utilities.isPhone) {
+                fail("The operation is not supported by this platform.");
+                return;
+            }
+
+            function getBatteryStatus(success, error) {
+                handleResponse(success, error, BatteryStatus.BatteryStatus.start());
+            }
+
+            function getBatteryStatusLevelChangeEvent(success, error) {
+                return BatteryStatus.BatteryStatus.getBatteryStatusChangeEvent().done(function (result) {
+                    if (stopped) {
+                        return;
+                    }
+
+                    handleResponse(success, error, result);
+
+                    setTimeout(function() { getBatteryStatusLevelChangeEvent(success, error); }, 0);
+                }, function(err) {
+                    fail(err);
+                });
+            }
+
+            getBatteryStatus(win, fail);
+
+            getBatteryStatusLevelChangeEvent(win, fail);
+        } catch(e) {
+            fail(e);
+        }        
+    },
+
+    stop: function () {
+        stopped = true;
+        BatteryStatus.BatteryStatus.stop();
+    }
+};
+
+require("cordova/exec/proxy").add("Battery", Battery);

http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/c29fdde2/src/windows/BatteryStatus.winmd
----------------------------------------------------------------------
diff --git a/src/windows/BatteryStatus.winmd b/src/windows/BatteryStatus.winmd
new file mode 100644
index 0000000..5000045
Binary files /dev/null and b/src/windows/BatteryStatus.winmd differ

http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/c29fdde2/src/windows/BatteryStatus/BatteryStatus.sln
----------------------------------------------------------------------
diff --git a/src/windows/BatteryStatus/BatteryStatus.sln b/src/windows/BatteryStatus/BatteryStatus.sln
new file mode 100644
index 0000000..1b69524
--- /dev/null
+++ b/src/windows/BatteryStatus/BatteryStatus.sln
@@ -0,0 +1,22 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.30723.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BatteryStatus", "BatteryStatus\BatteryStatus.csproj", "{9749E0FB-CDCF-4D80-8953-AAB577B44234}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{9749E0FB-CDCF-4D80-8953-AAB577B44234}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{9749E0FB-CDCF-4D80-8953-AAB577B44234}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{9749E0FB-CDCF-4D80-8953-AAB577B44234}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{9749E0FB-CDCF-4D80-8953-AAB577B44234}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+EndGlobal

http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/c29fdde2/src/windows/BatteryStatus/BatteryStatus/.gitignore
----------------------------------------------------------------------
diff --git a/src/windows/BatteryStatus/BatteryStatus/.gitignore b/src/windows/BatteryStatus/BatteryStatus/.gitignore
new file mode 100644
index 0000000..b84aa9d
--- /dev/null
+++ b/src/windows/BatteryStatus/BatteryStatus/.gitignore
@@ -0,0 +1,3 @@
+/bin/
+/obj/
+*.suo
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/c29fdde2/src/windows/BatteryStatus/BatteryStatus/BatteryStatus.cs
----------------------------------------------------------------------
diff --git a/src/windows/BatteryStatus/BatteryStatus/BatteryStatus.cs b/src/windows/BatteryStatus/BatteryStatus/BatteryStatus.cs
new file mode 100644
index 0000000..4887d76
--- /dev/null
+++ b/src/windows/BatteryStatus/BatteryStatus/BatteryStatus.cs
@@ -0,0 +1,90 @@
+using System;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Runtime.Serialization.Json;
+using System.Threading;
+using System.Threading.Tasks;
+using Windows.Foundation;
+using Windows.Phone.Devices.Power;
+
+namespace BatteryStatus
+{
+    public sealed class BatteryStatus
+    {
+        private static Battery battery = Battery.GetDefault();
+        private static TaskCompletionSource<string> levelCompletionSource = new TaskCompletionSource<string>();
+
+        public static string start()
+        {
+            battery.RemainingChargePercentChanged += BatteryOnRemainingChargePercentChanged;
+
+            return getBatteryStatus();
+        }
+
+        public static void stop()
+        {
+            battery.RemainingChargePercentChanged -= BatteryOnRemainingChargePercentChanged;
+        }
+
+        public static string getBatteryStatus()
+        {
+            try
+            {
+                return Serialize(typeof(BatteryInfo), new BatteryInfo
+                {
+                    Level = battery.RemainingChargePercent
+                });
+            }
+            catch (Exception ex)
+            {
+                return Serialize(typeof(ExceptionInfo), new ExceptionInfo { Message = ex.Message });
+            }
+        }
+
+        public static IAsyncOperation<string> getBatteryStatusChangeEvent()
+        {
+            return GetBatteryStatusChangeEvent().AsAsyncOperation();
+        }
+
+        private static async Task<string> GetBatteryStatusChangeEvent()
+        {
+            levelCompletionSource = new TaskCompletionSource<string>();
+
+            return await levelCompletionSource.Task;
+        }
+
+        private static void BatteryOnRemainingChargePercentChanged(object sender, object o)
+        {
+            levelCompletionSource.SetResult(getBatteryStatus());
+        }
+
+        private static string Serialize(Type type, object obj)
+        {
+            using (var stream = new MemoryStream())
+            {
+                var jsonSer = new DataContractJsonSerializer(type);
+                jsonSer.WriteObject(stream, obj);
+                stream.Position = 0;
+                return new StreamReader(stream).ReadToEnd();
+            }
+        }
+
+        [DataContract]
+        private class BatteryInfo
+        {
+            [DataMember(Name = "level")]
+            public int Level;
+
+            // Not supported by native API
+            [DataMember(Name = "isPlugged")]
+            public string IsPlugged;
+        };
+
+        [DataContract]
+        private class ExceptionInfo
+        {
+            [DataMember(Name = "exceptionMessage")]
+            public string Message = string.Empty;
+        };
+    }
+}

http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/c29fdde2/src/windows/BatteryStatus/BatteryStatus/BatteryStatus.csproj
----------------------------------------------------------------------
diff --git a/src/windows/BatteryStatus/BatteryStatus/BatteryStatus.csproj b/src/windows/BatteryStatus/BatteryStatus/BatteryStatus.csproj
new file mode 100644
index 0000000..ef6cc65
--- /dev/null
+++ b/src/windows/BatteryStatus/BatteryStatus/BatteryStatus.csproj
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+  <PropertyGroup>
+    <MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProjectGuid>{9749E0FB-CDCF-4D80-8953-AAB577B44234}</ProjectGuid>
+    <OutputType>winmdobj</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>BatteryStatus</RootNamespace>
+    <AssemblyName>BatteryStatus</AssemblyName>
+    <DefaultLanguage>en-US</DefaultLanguage>
+    <FileAlignment>512</FileAlignment>
+    <ProjectTypeGuids>{76F1466A-8B6D-4E39-A767-685A06062A39};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+    <TargetPlatformIdentifier>WindowsPhoneApp</TargetPlatformIdentifier>
+    <TargetPlatformVersion>8.1</TargetPlatformVersion>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <!-- A reference to the entire .NET Framework is automatically included -->
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="BatteryStatus.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
+  <PropertyGroup>
+    <PostBuildEvent>xcopy /Y /Q "$(TargetPath)" "$(SolutionDir).."</PostBuildEvent>
+  </PropertyGroup>
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/c29fdde2/src/windows/BatteryStatus/BatteryStatus/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/windows/BatteryStatus/BatteryStatus/Properties/AssemblyInfo.cs b/src/windows/BatteryStatus/BatteryStatus/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..d3ebea5
--- /dev/null
+++ b/src/windows/BatteryStatus/BatteryStatus/Properties/AssemblyInfo.cs
@@ -0,0 +1,30 @@
+using System.Resources;
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("BatteryStatus")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("BatteryStatus")]
+[assembly: AssemblyCopyright("Copyright ©  2014")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+[assembly: NeutralResourcesLanguage("en")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers 
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[6/6] cordova-plugin-battery-status git commit: CB-8653 updated translated docs to use new id

Posted by st...@apache.org.
CB-8653 updated translated docs to use new id


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/commit/3aa0dfad
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/tree/3aa0dfad
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/diff/3aa0dfad

Branch: refs/heads/old-ID
Commit: 3aa0dfad15e089269aa66636e2751c5be02799f5
Parents: 09dc325
Author: Steve Gill <st...@gmail.com>
Authored: Tue Mar 31 10:53:30 2015 -0700
Committer: Steve Gill <st...@gmail.com>
Committed: Tue Mar 31 10:53:30 2015 -0700

----------------------------------------------------------------------
 doc/de/index.md | 4 ++--
 doc/es/index.md | 6 +++---
 doc/fr/index.md | 4 ++--
 doc/it/index.md | 4 ++--
 doc/ja/index.md | 4 ++--
 doc/ko/index.md | 4 ++--
 doc/pl/index.md | 4 ++--
 doc/ru/index.md | 6 +++---
 doc/zh/index.md | 4 ++--
 9 files changed, 20 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/3aa0dfad/doc/de/index.md
----------------------------------------------------------------------
diff --git a/doc/de/index.md b/doc/de/index.md
index a442715..6e581a5 100644
--- a/doc/de/index.md
+++ b/doc/de/index.md
@@ -31,7 +31,7 @@ Es fügt die folgenden drei `window` Events hinzu:
 
 ## Installation
 
-    cordova plugin add org.apache.cordova.battery-status
+    cordova plugin add cordova-plugin-battery-status
     
 
 ## batterystatus
@@ -129,4 +129,4 @@ Anwendungen sollten in der Regel `window.addEventListener` verwenden, um einen E
     function onBatteryLow(info) {
         // Handle the battery low event
         alert("Battery Level Low " + info.level + "%");
-    }
\ No newline at end of file
+    }

http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/3aa0dfad/doc/es/index.md
----------------------------------------------------------------------
diff --git a/doc/es/index.md b/doc/es/index.md
index d13fb1b..9f39223 100644
--- a/doc/es/index.md
+++ b/doc/es/index.md
@@ -17,7 +17,7 @@
     under the License.
 -->
 
-# org.apache.cordova.battery-status
+# cordova-plugin-battery-status
 
 Este plugin proporciona una implementación de una versión antigua de la [Batería estado eventos API][1].
 
@@ -31,7 +31,7 @@ Agrega los siguientes tres `window` eventos:
 
 ## Instalación
 
-    cordova plugin add org.apache.cordova.battery-status
+    cordova plugin add cordova-plugin-battery-status
     
 
 ## batterystatus
@@ -129,4 +129,4 @@ Las aplicaciones normalmente deben utilizar `window.addEventListener` para conec
     function onBatteryLow(info) {
         // Handle the battery low event
         alert("Battery Level Low " + info.level + "%");
-    }
\ No newline at end of file
+    }

http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/3aa0dfad/doc/fr/index.md
----------------------------------------------------------------------
diff --git a/doc/fr/index.md b/doc/fr/index.md
index a7572f1..a8c1a65 100644
--- a/doc/fr/index.md
+++ b/doc/fr/index.md
@@ -31,7 +31,7 @@ Il ajoute les trois `window` des événements :
 
 ## Installation
 
-    cordova plugin add org.apache.cordova.battery-status
+    cordova plugin add cordova-plugin-battery-status
     
 
 ## batterystatus
@@ -129,4 +129,4 @@ Les applications devraient en général utiliser `window.addEventListener` pour
     function onBatteryLow(info) {
         // Handle the battery low event
         alert("Battery Level Low " + info.level + "%");
-    }
\ No newline at end of file
+    }

http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/3aa0dfad/doc/it/index.md
----------------------------------------------------------------------
diff --git a/doc/it/index.md b/doc/it/index.md
index 8bab4e3..c207ce9 100644
--- a/doc/it/index.md
+++ b/doc/it/index.md
@@ -31,7 +31,7 @@ Aggiunge i seguenti tre `window` eventi:
 
 ## Installazione
 
-    cordova plugin add org.apache.cordova.battery-status
+    cordova plugin add cordova-plugin-battery-status
     
 
 ## batterystatus
@@ -129,4 +129,4 @@ Applicazioni in genere è necessario utilizzare `window.addEventListener` per fi
     function onBatteryLow(info) {
         // Handle the battery low event
         alert("Battery Level Low " + info.level + "%");
-    }
\ No newline at end of file
+    }

http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/3aa0dfad/doc/ja/index.md
----------------------------------------------------------------------
diff --git a/doc/ja/index.md b/doc/ja/index.md
index 6e05e4e..bfa1890 100644
--- a/doc/ja/index.md
+++ b/doc/ja/index.md
@@ -31,7 +31,7 @@
 
 ## インストール
 
-    cordova plugin add org.apache.cordova.battery-status
+    cordova plugin add cordova-plugin-battery-status
     
 
 ## batterystatus
@@ -129,4 +129,4 @@ Windows Phone 7 は、バッテリーのレベルを決定するネイティブ
     function onBatteryLow(info) {
         // Handle the battery low event
         alert("Battery Level Low " + info.level + "%");
-    }
\ No newline at end of file
+    }

http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/3aa0dfad/doc/ko/index.md
----------------------------------------------------------------------
diff --git a/doc/ko/index.md b/doc/ko/index.md
index 2fdce66..2650a30 100644
--- a/doc/ko/index.md
+++ b/doc/ko/index.md
@@ -31,7 +31,7 @@
 
 ## 설치
 
-    cordova plugin add org.apache.cordova.battery-status
+    cordova plugin add cordova-plugin-battery-status
     
 
 ## batterystatus
@@ -129,4 +129,4 @@ Windows Phone 7 배터리 수준을 확인 하려면 네이티브 Api를 제공
     function onBatteryLow(info) {
         // Handle the battery low event
         alert("Battery Level Low " + info.level + "%");
-    }
\ No newline at end of file
+    }

http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/3aa0dfad/doc/pl/index.md
----------------------------------------------------------------------
diff --git a/doc/pl/index.md b/doc/pl/index.md
index ee0ce66..28487d5 100644
--- a/doc/pl/index.md
+++ b/doc/pl/index.md
@@ -31,7 +31,7 @@ To dodaje następujące trzy `window` zdarzenia:
 
 ## Instalacja
 
-    cordova plugin add org.apache.cordova.battery-status
+    cordova plugin add cordova-plugin-battery-status
     
 
 ## batterystatus
@@ -129,4 +129,4 @@ Aplikacje zwykle należy użyć `window.addEventListener` Aby dołączyć słuch
     function onBatteryLow(info) {
         // Handle the battery low event
         alert("Battery Level Low " + info.level + "%");
-    }
\ No newline at end of file
+    }

http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/3aa0dfad/doc/ru/index.md
----------------------------------------------------------------------
diff --git a/doc/ru/index.md b/doc/ru/index.md
index 214ad54..5cd28ef 100644
--- a/doc/ru/index.md
+++ b/doc/ru/index.md
@@ -17,7 +17,7 @@
     under the License.
 -->
 
-# org.apache.cordova.battery-status
+# cordova-plugin-battery-status
 
 Этот плагин предоставляет реализацию старой версии [API Событий Статуса Батареи][1].
 
@@ -31,7 +31,7 @@ API добавляет следующие три события для объе
 
 ## Установка
 
-    cordova plugin add org.apache.cordova.battery-status
+    cordova plugin add cordova-plugin-battery-status
     
 
 ## batterystatus
@@ -129,4 +129,4 @@ Windows Phone 7 не обеспечивает API, чтобы определит
     function onBatteryLow(info) {
         // Handle the battery low event
         alert("Battery Level Low " + info.level + "%");
-    }
\ No newline at end of file
+    }

http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/3aa0dfad/doc/zh/index.md
----------------------------------------------------------------------
diff --git a/doc/zh/index.md b/doc/zh/index.md
index 22a5fc1..246e7e3 100644
--- a/doc/zh/index.md
+++ b/doc/zh/index.md
@@ -31,7 +31,7 @@
 
 ## 安裝
 
-    cordova plugin add org.apache.cordova.battery-status
+    cordova plugin add cordova-plugin-battery-status
     
 
 ## batterystatus
@@ -129,4 +129,4 @@ Windows Phone 7 並不提供本機 Api 來確定電池計量水準,所以 `lev
     function onBatteryLow(info) {
         // Handle the battery low event
         alert("Battery Level Low " + info.level + "%");
-    }
\ No newline at end of file
+    }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[4/6] cordova-plugin-battery-status git commit: Doc correction, Use the apostrophe to show possession

Posted by st...@apache.org.
Doc correction, Use the apostrophe to show possession


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/commit/5d98ddab
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/tree/5d98ddab
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/diff/5d98ddab

Branch: refs/heads/old-ID
Commit: 5d98ddabe160ba5d68ad244b7892d9a532ef5803
Parents: 0977076
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Tue Mar 24 22:18:36 2015 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Tue Mar 24 22:18:36 2015 -0700

----------------------------------------------------------------------
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/5d98ddab/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index d1cd359..833adab 100644
--- a/README.md
+++ b/README.md
@@ -61,7 +61,7 @@ attach an event listener after the `deviceready` event fires.
 
 ### Android and Amazon Fire OS Quirks
 
-- Warning: the Android + Fire OS implementations are greedy and prolonged use will drain the users battery. 
+- Warning: the Android + Fire OS implementations are greedy and prolonged use will drain the user's battery. 
 
 ### Windows Phone 7 and 8 Quirks
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[2/6] cordova-plugin-battery-status git commit: add Android+FireOS warning to tell devs that prolonged use will drain the battery.

Posted by st...@apache.org.
add Android+FireOS warning to tell devs that prolonged use will drain the battery.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/commit/16740d61
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/tree/16740d61
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/diff/16740d61

Branch: refs/heads/old-ID
Commit: 16740d612db8dec22fd34ca26a9302abb6d63b1b
Parents: c29fdde
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Tue Mar 24 22:05:04 2015 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Tue Mar 24 22:05:04 2015 -0700

----------------------------------------------------------------------
 README.md | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/16740d61/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 3c6247f..d1cd359 100644
--- a/README.md
+++ b/README.md
@@ -59,6 +59,10 @@ attach an event listener after the `deviceready` event fires.
 - Tizen
 - Firefox OS
 
+### Android and Amazon Fire OS Quirks
+
+- Warning: the Android + Fire OS implementations are greedy and prolonged use will drain the users battery. 
+
 ### Windows Phone 7 and 8 Quirks
 
 Windows Phone 7 does not provide native APIs to determine battery


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[3/6] cordova-plugin-battery-status git commit: Fix travis+paramedic pathing issue

Posted by st...@apache.org.
Fix travis+paramedic pathing issue


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/commit/09770768
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/tree/09770768
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/diff/09770768

Branch: refs/heads/old-ID
Commit: 0977076836eb9ad783a23a3b68bc05846fa8a221
Parents: 16740d6
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Tue Mar 24 22:10:37 2015 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Tue Mar 24 22:10:37 2015 -0700

----------------------------------------------------------------------
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/09770768/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 44014c7..4bffcfe 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,4 +10,4 @@ install:
   - npm install -g cordova
   - npm install -g ios-sim
 script:
-  - cordova-paramedic --platform ios --plugin ../cordova-plugin-battery-status
\ No newline at end of file
+  - cordova-paramedic --platform ios --plugin ./cordova-plugin-battery-status
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[5/6] cordova-plugin-battery-status git commit: Use TRAVIS_BUILD_DIR, install paramedic by npm

Posted by st...@apache.org.
Use TRAVIS_BUILD_DIR, install paramedic by npm


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/commit/09dc325f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/tree/09dc325f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/diff/09dc325f

Branch: refs/heads/old-ID
Commit: 09dc325f25f04a9eb9a9a3dfdfd7e24c45f870ae
Parents: 5d98dda
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Tue Mar 24 23:21:47 2015 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Tue Mar 24 23:21:47 2015 -0700

----------------------------------------------------------------------
 .travis.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/09dc325f/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 4bffcfe..fa7ae7d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,8 +6,8 @@ node_js:
 install:
   - echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config 
   - cd ..
-  - npm install -g purplecabbage/cordova-paramedic
+  - npm install -g cordova-paramedic
   - npm install -g cordova
   - npm install -g ios-sim
 script:
-  - cordova-paramedic --platform ios --plugin ./cordova-plugin-battery-status
\ No newline at end of file
+  - cordova-paramedic --platform ios --plugin ${TRAVIS_BUILD_DIR}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org