Commit 45c8a181 authored by Thierry BUGEAT's avatar Thierry BUGEAT

Merge branch 'release-1.5.0'

parents efcf3596 9f0d635c
#!/bin/sh
# ============================================================
# --- Get values "version" and "id" from file "config.xml" ---
# ============================================================
VERSION=`cat config.xml| sed -n 's/.*version="\([0-9]\.[0-9]*\.[0-9]*\).*/\1/p'`
ID=`cat config.xml| sed -n 's/.*id="\([a-z]*\.[a-z]*\.[a-z]*\).*/\1/p'`
APP_NAME=myFeeds
# ============================
# --- Build and rename APK ---
# ============================
cordova build android
cp platforms/android/build/outputs/apk/android-debug.apk ${APP_NAME}_${VERSION}.apk
# =============================
# --- Update or Replace APK ---
# =============================
echo ""
echo "Connect your device then..."
read -p "Update APK (u) or Delete and Replace APK (r) ? " choice
case "$choice" in
r|R ) INSTALL=replace;;
u|U ) INSTALL=update;;
* ) exit;;
esac
if [ "$INSTALL" = "replace" ];
then
# Unintall previous version
adb shell pm uninstall -k $ID
# Install APK
adb install ${APP_NAME}_${VERSION}.apk
else
# Update APK
adb install -r ${APP_NAME}_${VERSION}.apk
fi
#!/bin/sh
# ============================================================
# --- Get values "version" and "id" from file "config.xml" ---
# ============================================================
VERSION=`cat config.xml| sed -n 's/.*version="\([0-9]\.[0-9]*\.[0-9]*\).*/\1/p'`
ID=`cat config.xml| sed -n 's/.*id="\([a-z]*\.[a-z]*\.[a-z]*\).*/\1/p'`
APP_NAME=myFeeds
# ============================
# --- Build and rename APP ---
# ============================
cordova build firefoxos
cp platforms/firefoxos/build/package.zip ${APP_NAME}_${VERSION}.zip
# ===============
# --- Ugly :( ---
# ===============
# Remove plugin vibration who does not works on FXOS platform.
# (It works on Android platform)
zip -d ${APP_NAME}_${VERSION}.zip "plugins/cordova-plugin-vibration/*"
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.bugeat.myfeeds" version="1.5.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>myFeeds</name>
<description>
RSS & ATOM feeds reader
</description>
<author email="myfeeds@bugeat.com" href="http://thierry.bugeat.com/myfeeds">
Thierry BUGEAT
</author>
<icon src="www/img/logo.png" />
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" />
<allow-navigation href="*" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
<feature name="SocialSharing">
<param name="android-package" value="nl.xservices.plugins.SocialSharing" />
</feature>
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<platform name="firefoxos">
<permission name="systemXHR" privileged="true" description="load data from server" />
</platform>
</widget>
<!--
#
# 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.
#
-->
# Cordova Hooks
Cordova Hooks represent special scripts which could be added by application and plugin developers or even by your own build system to customize cordova commands. See Hooks Guide for more details: http://cordova.apache.org/docs/en/edge/guide_appdev_hooks_index.md.html#Hooks%20Guide.
<!--
Copyright 2015 Thierry BUGEAT
This file is part of myFeeds.
myFeeds is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
myFeeds is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with myFeeds. If not, see <http://www.gnu.org/licenses/>.
-->
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<meta name="theme-color" content="#CD6723" id="theme-color">
<title data-l10n-id="app-title">my Feeds</title>
<link rel="icon" type="image/png" href="images/icon-128.png">
<link href="style/ffos1.4.css" type="text/css" rel="stylesheet">
<link href="style/vars.css" type="text/css" rel="stylesheet">
<link href="style/colors.css" type="text/css" rel="stylesheet">
<link href="style/fonts.css" type="text/css" rel="stylesheet">
<link href="style/gaia-icons.css" type="text/css" rel="stylesheet">
<link href="style/font-awesome.css" type="text/css" rel="stylesheet">
<link href="style/header.css" type="text/css" rel="stylesheet">
<link href="style/subheader.css" type="text/css" rel="stylesheet">
<link href="style/footer.css" type="text/css" rel="stylesheet">
<link href="style/browser.css" type="text/css" rel="stylesheet">
<link href="style/feeds-list.css" type="text/css" rel="stylesheet">
<link href="style/find-feeds.css" type="text/css" rel="stylesheet">
<link href="style/settings.css" type="text/css" rel="stylesheet">
<link href="style/style.css" type="text/css" rel="stylesheet">
<link href="style/entries-list.css" type="text/css" rel="stylesheet">
<link href="style/switches.css" type="text/css" rel="stylesheet">
<link href="style/buttons.css" type="text/css" rel="stylesheet">
<link href="style/input_areas.css" type="text/css" rel="stylesheet">
<link href="style/main-entry.css" type="text/css" rel="stylesheet">
</head>
<body>
<div id="loading"></div>
<!-- ================= -->
<!-- Find feeds screen -->
<!-- ================= -->
<div role="region" data-type="sidebar" id="find-feeds-container">
<section role="myHeader">
<header class="mySystemHeader">
<h1 data-l10n-id="add-feed">Add Feed</h1>
</header>
</section>
<section role="mySubHeader">
<header class="mySystemHeader">
<form id="findFeeds" action="#" class="_online_">
<input type="text" required="required" placeholder="http://" id="findFeedsText">
<button type="reset" id="findFeedsReset"><span data-icon="delete"></span></button>
<button type="submit" id="findFeedsSubmit"><span data-icon="search"></span></button>
</form>
</header>
</section>
<div id="find-feeds" class="scrollable"></div>
<section role="myFooter" class="">
<header>
<button id="findFeedsClose"><span data-icon="close"></span></button>
</header>
</section>
</div>
<!-- ==================== -->
<!-- Subscriptions screen -->
<!-- ==================== -->
<div role="region" data-type="sidebar" id="feeds-list-container">
<section role="myHeader">
<header class="mySystemHeader">
<h1 data-l10n-id="my-subscriptions">my Subscriptions</h1>
</header>
</section>
<div id="feeds-list" class="scrollable"></div>
<section role="myFooter" class="">
<header>
<button id="closeFeedsList" class="_startAnimation_"><span data-icon="close"></span></button>
<button id="findFeedsOpen" class="_online_"><span data-icon="add"></span></button>
<button id="topupFeedsList"><span data-icon="topup"></span></button>
</header>
</section>
</div>
<!-- =========== -->
<!-- Main screen -->
<!-- =========== -->
<div id="main">
<div id="feeds-entries-container">
<section role="myHeader">
<header>
<button id="nextDay"><span data-icon="back"></span></button>
<h1 data-l10n-id="app-title">my Feeds</h1>
<button id="previousDay"><span data-icon="forward"></span></button>
</header>
</section>
<section role="mySubHeader">
<header class="mySystemHeader">
<h2 id="feedsEntriesNbDaysAgo"></h2>
<span id="displayGrid" class="icone grid"></span>
<span id="displayList" class="icone list"></span>
<span id="displayCard" class="icone card"></span>
</header>
</section>
<div id="feeds-entries" class="scrollable"></div>
<section role="mySubHeader" id="formSearchEntries" class="_hide">
<header class="mySystemHeader">
<form action="#">
<input type="text" required="required" placeholder="search" id="inputSearchEntries">
<button type="reset" id="resetSearchEntries"><span data-icon="delete"></span></button>
<button id="addKeyword"><span data-icon="add"></span></button>
</form>
</header>
</section>
<section role="myFooter" class="">
<header>
<button id="menu" class="_startAnimation_"><span data-icon="menu"></span></button>
<button id="sync" class="_online_"><span data-icon="sync"></span></button>
<button id="topup"><span data-icon="topup"></span></button>
<button id="searchEntries"><span data-icon="search"></span></button>
<button id="settingsOpen" class="_startAnimation_"><span data-icon="settings"></span></button>
</header>
</section>
</div>
<!-- =============== -->
<!-- One news screen -->
<!-- =============== -->
<div id="main-entry-container">
<section role="myHeader">
<header>
<h1 data-l10n-id="my-news">my News</h1>
</header>
</section>
<div id="main-entry" class="scrollable">
<div id="browser"></div>
</div>
<section role="mySubEntry">
<header class="mySystemHeader">
<span><div id="nextEntryTitle"></div></span>
<span><div id="previousEntryTitle"></div></span>
</header>
</section>
<section role="myFooter" class="">
<header>
<button id="closeMainEntry"><span data-icon="close"></span></button>
<button id="share"><span data-icon="share"></span></button>
<button id="nextEntry"><span data-icon="back"></span></button>
<button id="previousEntry"><span data-icon="forward"></span></button>
</header>
</section>
</div>
</div>
<!-- =============== -->
<!-- Settings screen -->
<!-- =============== -->
<div role="region" data-type="sidebar" id="settings-container">
<section role="myHeader">
<header class="mySystemHeader">
<h1 data-l10n-id="my-settings">my Settings</h1>
</header>
</section>
<div id="settings" class="scrollable"></div>
<section role="myFooter" class="">
<header>
<button id="settingsClose" class="_startAnimation_"><span data-icon="close"></span></button>
</header>
</section>
</div>
</body>
<!-- Inline CSS -->
<script type="text/javascript" src="style/inline.css.js"></script>
<!-- App localization -->
<script src="libs/l10n.js"></script>
<link rel="resource" type="application/l10n" href="locales/locales.ini" />
<script type="text/javascript" src="locales/locales.js"></script>
<!-- Libs -->
<script type="text/javascript" src="libs/myCore.js"></script>
<!-- classes -->
<script type="text/javascript" src="scripts/classes/MyFeeds.class.js"></script>
<script type="text/javascript" src="scripts/classes/MyUi.class.js"></script>
<script type="text/javascript" src="scripts/classes/MyFeeds/Feedly.class.js"></script>
<script type="text/javascript" src="scripts/classes/MyFeeds/TheOldReader.class.js"></script>
<script type="text/javascript" src="scripts/classes/MyFeeds/TinyTinyRss.class.js"></script>
<script type="text/javascript" src="scripts/classes/MyFeeds/AolReader.class.js"></script>
<script type="text/javascript" src="scripts/classes/MyFeeds/SimplePie.class.js"></script>
<script type="text/javascript" src="scripts/gestures.js"></script>
<script type="text/javascript" src="scripts/app.js"></script>
</html>
{
"prepare_queue": {
"installed": [],
"uninstalled": []
},
"config_munge": {
"files": {}
},
"installed_plugins": {
"cordova-plugin-device": {
"PACKAGE_NAME": "com.bugeat.myfeeds"
},
"cordova-plugin-file": {
"PACKAGE_NAME": "com.bugeat.myfeeds"
},
"cordova-plugin-inappbrowser": {
"PACKAGE_NAME": "com.bugeat.myfeeds"
},
"cordova-plugin-whitelist": {
"PACKAGE_NAME": "com.bugeat.myfeeds"
},
"cordova-plugin-x-socialsharing": {
"PACKAGE_NAME": "com.bugeat.myfeeds"
},
"cordova-plugin-network-information": {
"PACKAGE_NAME": "com.bugeat.myfeeds"
},
"cordova-plugin-vibration": {
"PACKAGE_NAME": "com.bugeat.myfeeds"
}
},
"dependent_plugins": {}
}
\ No newline at end of file
<!--
#
# 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.
#
-->
# Contributing to Apache Cordova
Anyone can contribute to Cordova. And we need your contributions.
There are multiple ways to contribute: report bugs, improve the docs, and
contribute code.
For instructions on this, start with the
[contribution overview](http://cordova.apache.org/contribute/).
The details are explained there, but the important items are:
- Sign and submit an Apache ICLA (Contributor License Agreement).
- Have a Jira issue open that corresponds to your contribution.
- Run the tests so your patch doesn't break existing functionality.
We look forward to your contributions!
This diff is collapsed.
Apache Cordova
Copyright 2012 The Apache Software Foundation
This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
<!--
# license: 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.
-->
# cordova-plugin-device
This plugin defines a global `device` object, which describes the device's hardware and software.
Although the object is in the global scope, it is not available until after the `deviceready` event.