-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,42 @@ | ||
mobile-messaging | ||
================ | ||
Chamilo LMS Mobile Messaging app | ||
================================ | ||
|
||
PhoneGap mobile app to get notifications of new messages from the Chamilo LMS campus of your choice | ||
This is a PhoneGap mobile app to get notifications of new messages from the | ||
Chamilo LMS campus of your choice. | ||
|
||
The finished application should: | ||
* allow you to connect to one or more Chamilo LMS campuses | ||
* notify you when you have a new message on the Chamilo LMS campus(es) | ||
* store your messages locally (but not allow you to answer just yet) | ||
|
||
Spirit of this project | ||
---------------------- | ||
|
||
This is developed as a side project and it might require a few updates to | ||
Chamilo itself for the first version to work (web services in Chamilo will have | ||
to be extended for it to work). | ||
|
||
As a consequence, we will try to use PSR-1 and PSR-2 coding conventions as a | ||
base, but we know they will not be adapted to our development, so we *will* | ||
update that in the future. | ||
|
||
Installation | ||
------------ | ||
|
||
At this time, the mobile app is not finished, but you can try it out by | ||
[installing PhoneGap on your machine][1], cloning this repository and installing | ||
the PhoneGap Developer app from the Android Play Store (or any other app store | ||
that works for you). | ||
|
||
Contributing | ||
------------ | ||
|
||
This development is taken as a side-project, so it might advance slowly at | ||
first. Please feel free to send Pull Requests through Github, we will review | ||
and include them if we feel they're bringing value. | ||
|
||
Coding conventions are not clear at this time as we're mainly PHP developers | ||
trying out HTML+JS stuff to generate a mobile app, but we have good grounds with | ||
PSR-1 and PSR-2, so we will not accept ugly code, but we will comment on it. | ||
|
||
[1]: http://beeznest.wordpress.com/2014/09/05/quick-phonegap-setup-on-ubuntu/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<!-- | ||
# | ||
# 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 | ||
|
||
This directory may contain scripts used to customize cordova commands. This | ||
directory used to exist at `.cordova/hooks`, but has now been moved to the | ||
project root. Any scripts you add to these directories will be executed before | ||
and after the commands corresponding to the directory name. Useful for | ||
integrating your own build systems or integrating with version control systems. | ||
|
||
__Remember__: Make your scripts executable. | ||
|
||
## Hook Directories | ||
The following subdirectories will be used for hooks: | ||
|
||
after_build/ | ||
after_compile/ | ||
after_docs/ | ||
after_emulate/ | ||
after_platform_add/ | ||
after_platform_rm/ | ||
after_platform_ls/ | ||
after_plugin_add/ | ||
after_plugin_ls/ | ||
after_plugin_rm/ | ||
after_plugin_search/ | ||
after_prepare/ | ||
after_run/ | ||
after_serve/ | ||
before_build/ | ||
before_compile/ | ||
before_docs/ | ||
before_emulate/ | ||
before_platform_add/ | ||
before_platform_rm/ | ||
before_platform_ls/ | ||
before_plugin_add/ | ||
before_plugin_ls/ | ||
before_plugin_rm/ | ||
before_plugin_search/ | ||
before_prepare/ | ||
before_run/ | ||
before_serve/ | ||
pre_package/ <-- Windows 8 and Windows Phone only. | ||
|
||
## Script Interface | ||
|
||
All scripts are run from the project's root directory and have the root directory passes as the first argument. All other options are passed to the script using environment variables: | ||
|
||
* CORDOVA_VERSION - The version of the Cordova-CLI. | ||
* CORDOVA_PLATFORMS - Comma separated list of platforms that the command applies to (e.g.: android, ios). | ||
* CORDOVA_PLUGINS - Comma separated list of plugin IDs that the command applies to (e.g.: org.apache.cordova.file, org.apache.cordova.file-transfer) | ||
* CORDOVA_HOOK - Path to the hook that is being executed. | ||
* CORDOVA_CMDLINE - The exact command-line arguments passed to cordova (e.g.: cordova run ios --emulate) | ||
|
||
If a script returns a non-zero exit code, then the parent cordova command will be aborted. | ||
|
||
## Writing hooks | ||
|
||
We highly recommend writting your hooks using Node.js so that they are | ||
cross-platform. Some good examples are shown here: | ||
|
||
[http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/](http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/) | ||
|
||
Also, note that even if you are working on Windows, and in case your hook scripts aren't bat files (which is recommended, if you want your scripts to work in non-Windows operating systems) Cordova CLI will expect a shebang line as the first line for it to know the interpreter it needs to use to launch the script. The shebang line should match the following example: | ||
|
||
#!/usr/bin/env [name_of_interpreter_executable] | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.